. .


ST 4U 265: SmallLint in VA Smalltalk

August 1, 2012 11:07:50.520

Today's Smalltalk 4 You looks at the Small Lint tools in VA Smalltalk. These exist in most other Smalltalk implementations as well. If you have trouble viewing it here in the browser, you can also navigate directly to YouTube. To watch now, click on the image below:

Small Lint.

If you have trouble viewing that directly, you can click here to download the video directly. If you need the video in a Windows Media format, then download that here.

You can also watch it on YouTube:

It's a good idea to periodically run some "sanity checks" over your code. SUnit tests are one form of that; Small Lint is another. If you load the "Mastering Envy Developer" feature into VA Smalltalk, one of the tools you get access to is Small Lint:


Small Lint

After launching the tool from the VA Launcher, you need to pick applications and classes to run it over. Select one or more applications, and then select one or more classes. You need to use the Add or Add All options in the context menu, which adds a check next to all of the selected items. That will get you to the next step, where you need to decide which lint checks to use:

Lint Checks

Select all, or a subset from the menu seen above. Then just run them:

Lint Checks

The window that comes up will show you all of the possible issues - and we say "possible", because Lint can be overly aggressive. You can select an issue and browse the specifics in the code you had it check, and then decide whether or not you need to make changes.

Need more help? There's a screencast for other topics like this which you may want to watch. Questions? Try the "Chat with James" Google gadget over in the sidebar.

Technorati Tags: , ,

[st4u265-iPhone.m4v ( Size: 5321272 )]

posted by James Robertson


Re: ST 4U 265: SmallLint in VA Smalltalk

[Joachim] August 2, 2012 2:25:14.271

Hi James,

thanks for covering SmallLint, which can be a great help for replacing code and searching for patterns.

I think there is one little mistake: SmallLint is part of the Refactoring Browser, not Mastering Envy Developer.

Keep up the good work and happy Smalltalking


Re: ST 4U 265: SmallLint in VA Smalltalk

[Joachim] August 2, 2012 2:28:46.239

...oops. So I've added a new mistake: I've mixed SmallLint with the Rewrite Tool ;-)

Both come with the Refactoring Browser, and Lint / SmallLint is what the Refactoring Browser, lint Checks and the Rewrite Tool are built upon.

So SmallLint is great for searching, analyzing code errors and improving code.


 Share Tweet This