Tobias: I make get some time to try SwaLint. The truth is that for me, this is very user friendly, intuitive and easy to use. In addition, It is very customizable as you can modify your preferences with the tests. In fact, I was very surprised and glad with it.
Ahh I have some questions:
1) I see there is one test that checks the "length" of a method. I like to document and put all the necessary comments in my tests. So, in many tests, I get "long method" but actually most of those methods are comments with "". So, the questions is, can be comments ignored in this test?
2) I think when you have take care of the results and analyse them to fix them, the common way doing this is going test for test. So, It would be fantastic being able to browse a test. And when you do this, this browse, takes all the classes that has occurrences. Example: "long methods" , right button, "browse all". And this opens the browser with all the classes that has the long method occurrences.
3) What does "Data class" mean ? are all the test detailed deeply somewhere ? like a webpage, wiki, or just SwaLint browser ?
4) What does "Dot after return consistency" mean ? I don't understand the % and when it is average, low or high.
Thanks a lot.
Cheers,
Mariano
Ok. Thanks a lot. I will then try it.
Cheers,
MarianoOn Wed, Jan 28, 2009 at 8:41 AM, Tobias Pape <Das.Linux@gmx.de> wrote:
Hello, Mariano
Am 2009-01-28 um 02:00 schrieb Mariano Martinez Peck:I will do.
Ok. Thanks. Let me know when It is up.
here, a short synopsis.
I would like to do a revision with SwaLint before the first stable release of SqueakDBX and I don't know how to install and use it.
You need
- a Squeak Image >= 3.9
- AST from SqueakMap
- Refactoring Engine from SqueakMap (provides SmallLint, btw).
- SwaLint form SqueakMap
Then, you should be able to find SwaLint in the open
Menu. (Or, do 'SwaLint open')
Usage as follows:
- Select the categories to test in the leftmost pane
(right-click gives you more advanced selection possibilities)
- Select the classes to test in the right next pane
(again, right-click gives you more advanced selection possibilities)
- Select the test categories in the upper right pane
- Select the actual tests to carry out in the lower right pane
(again, right-click gives you more advanced selection possibilities)
-Click "Configure" to set some preferences for the test
(e.g., which SmallLint test shall show up)
-Click "Run Tests" to run the tests
Then, a window should appear, presenting the test results.
- In the lower pane, right clicking will give you advanced sorting and selecting options
You can browse the targets of the tests there, too
- Selecting in the upper panes selects, with tests/classes results will be shown
I hope this provides enough information to start using SwaLint.
Don't hesitate to ask further questions.
So long,
-Tobias