I would like to suggest a patch so users can choose the preferred
Checkstyle configuration to be used when checking projects that do not have
a .checkstyle file.
Motivation:
In our (huge) team we used Checkstyle half-heartedly. But it was not
enforceable (too many errors :-). So it was dropped. I still want to use
it, but I got tired of having the CVS projects flagged as modified just
because I want to run Checkstyle (the .checkstyle file). And if I do not
specify a check configuration for a project I am stuck with the built-in
Sun Checks configuration, which finds thousands of problems on our average
projects.
What the patch does:
It is strictly limited to the global configurations. It does not affect
local check configurations of a project (you have excellent flexibilty if
you are free to use a .checkstyle file in your projects).
A checkbox "Use when checking projects without local Check Configurations"
was added to the properties dialogs for internal, external and remote
configurations (not for the others). If you mark one of your configurations
with this checkbox as the preferred one it will be used in place of the
built-in Sun Checks when doing an "on-the-fly" check of a project that does
not have a .checkstyle file. The big advantage: You can modify the
behaviour of your preferred check, which is not possible for the built-in
Sun Checks.
The patch should work against version 4.3.3 of project CheckstylePlugin as
it was available in CVS around the time of this posting (November 14 2007).
[I did not find any CVS tags?]
German translation is included, French is missing.
If you do not like my modifications to the code you may want to consider
implementing such a feature in a later version. Although it may not be a
common situation, I find it useful to have my own global check
configuration that I can quickly run against any project.
Lars Koedderitzsch
None
None
Public
|
Date: 2007-12-17 16:39
|
|
Date: 2007-12-15 13:36
|
|
Date: 2007-12-14 19:41
|
|
Date: 2007-12-14 19:37
|
|
Date: 2007-12-14 19:31
|
|
Date: 2007-12-14 19:29
|
|
Date: 2007-11-23 13:34
|
|
Date: 2007-11-21 18:47
|
|
Date: 2007-11-18 09:14
|
|
Date: 2007-11-16 21:39
|
| Filename | Description | Download |
|---|---|---|
| Checkstyle_preferredGlobalConfig_patch.txt | Patch for project CheckstylePlugin (4.3.3), let's you choose a preferred global configuration when checking projects without a .checkstyle file. | Download |
| Checkstyle_defaultGlobalConfig_patch.txt | Patch to be applied to project CheckstylePlugin, implements selection of default global checkstyle configuration in table. | Download |
| tick.gif | Icon required in addition to Checkstyle_defaultGlobalConfig_patch.txt. Put in CheckstylePlugin/icons | Download |
| Field | Old Value | Date | By |
|---|---|---|---|
| status_id | Open | 2007-12-15 13:36 | lkoe |
| resolution_id | None | 2007-12-15 13:36 | lkoe |
| assigned_to | nobody | 2007-12-15 13:36 | lkoe |
| close_date | - | 2007-12-15 13:36 | lkoe |
| File Added | 258616: tick.gif | 2007-12-14 19:31 | kappert |
| File Added | 258615: Checkstyle_defaultGlobalConfig_patch.txt | 2007-12-14 19:29 | kappert |
| File Added | 254477: Checkstyle_preferredGlobalConfig_patch.txt | 2007-11-15 19:32 | kappert |