Cs-contrib.unkrig.de: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
|||
Line 38: | Line 38: | ||
:Verifies that a token is surrounded by whitespace. <span style="color: red">Superseded by '[[Cs-contrib.unkrig.de / Checks / de.unkrig.Whitespace|de.unkrig.Whitespace]]'.</span> | :Verifies that a token is surrounded by whitespace. <span style="color: red">Superseded by '[[Cs-contrib.unkrig.de / Checks / de.unkrig.Whitespace|de.unkrig.Whitespace]]'.</span> | ||
;[[Cs-contrib.unkrig.de / Checks / Wrap and | ;[[Cs-contrib.unkrig.de / Checks / Wrap annotation|<code>Wrap annotation</code>]] | ||
:Verifies that statements are uniformly wrapped and indented. | :Verifies that annotations and annotation type declarations are uniformly wrapped and indented. | ||
;[[Cs-contrib.unkrig.de / Checks / Wrap anonymous class|<code>Wrap anonymous class</code>]] | |||
:Verifies that anonymous class declarations are uniformly wrapped and indented. | |||
;[[Cs-contrib.unkrig.de / Checks / Wrap array initializer|<code>Wrap array initializer</code>]] | |||
:Verifies that array initializers are uniformly wrapped and indented. | |||
;[[Cs-contrib.unkrig.de / Checks / Wrap binary operator|<code>Wrap binary operator</code>]] | |||
:Verifies that binary operations are uniformly wrapped before and/or after the operator. | |||
;[[Cs-contrib.unkrig.de / Checks / Wrap class|<code>Wrap class</code>]] | |||
:Verifies that class declarations are uniformly wrapped and indented. | |||
;[[Cs-contrib.unkrig.de / Checks / Wrap constructor|<code>Wrap constructor</code>]] | |||
:Verifies that constructore declarations, parameters and arguments are uniformly wrapped and indented. | |||
;[[Cs-contrib.unkrig.de / Checks / Wrap DO statement|<code>Wrap DO statement</code>]] | |||
:Verifies that DO statements are uniformly wrapped and indented. | |||
;[[Cs-contrib.unkrig.de / Checks / Wrap enum|<code>Wrap enum</code>]] | |||
:Verifies that enum declarations and constants are uniformly wrapped and indented. | |||
;[[Cs-contrib.unkrig.de / Checks / Wrap field|<code>Wrap field</code>]] | |||
:Verifies that field declarations are uniformly wrapped and indented. | |||
;[[Cs-contrib.unkrig.de / Checks / Wrap interface|<code>Wrap interface</code>]] | |||
:Verifies that interface declarations are uniformly wrapped and indented. | |||
;[[Cs-contrib.unkrig.de / Checks / Wrap local variable|<code>Wrap local variable</code>]] | |||
:Verifies that local variable declarations are uniformly wrapped and indented. | |||
;[[Cs-contrib.unkrig.de / Checks / Wrap method|<code>Wrap method</code>]] | |||
:Verifies that method declarations, parameters and call arguments are uniformly wrapped and indented. | |||
;[[Cs-contrib.unkrig.de / Checks / Wrap package|<code>Wrap package</code>]] | |||
:Verifies that package declarations are uniformly wrapped and indented. | |||
;[[Cs-contrib.unkrig.de / Checks / Wrap switch block statement group|<code>Wrap switch block statement group</code>]] | |||
:Verifies that switch block statement groups are uniformly wrapped and indented. | |||
;[[Cs-contrib.unkrig.de / Checks / Wrap TRY statement|<code>Wrap TRY statement</code>]] | |||
:Verifies that TRY statements are uniformly wrapped and indented. | |||
;[[Cs-contrib.unkrig.de / Checks / Zero-parameter superconstructor invocation|<code>Zero-parameter superconstructor invocation</code>]] | ;[[Cs-contrib.unkrig.de / Checks / Zero-parameter superconstructor invocation|<code>Zero-parameter superconstructor invocation</code>]] |
Revision as of 21:44, 16 August 2015
Introduction
This project adds custom checks, filters and quickfixes for CheckStyle and Eclipse-CS.
This project uses the CS doclet (internally) to generate its CheckStyle and eclipse-cs metadata files.
Download
Install the ECLIPSE plug-in from this update site:
http://cs-contrib.unkrig.de/update
If you're only interested in the checks (and not the ECLIPSE plug-in), you can download the most recent 'de.unkrig.cs-contrib.core_*.jar' file from
http://cs-contrib.unkrig.de/update/plugins/
and put it on CheckStyle's classpath.
A change log is also available.
Checks and Quickfixes
Alignment
- Verifies that Java elements are vertically aligned.
C++-style comment alignment
- Verifies that C++-style comments ('// ...') are correctly aligned.
Inner assignment
- Verifies that assignments in expressions are parenthesized.
Name spelling
- Verifies that the names of Java elements match, respectively no not match given patterns.
Parenthesis padding
- Enhanced version of "ParenPad". Superseded by 'de.unkrig.Whitespace'.
Whitespace
- Verifies that tokens are, respectively are not preceded with (and/or followed by) whitespace.
Whitespace around
- Verifies that a token is surrounded by whitespace. Superseded by 'de.unkrig.Whitespace'.
Wrap annotation
- Verifies that annotations and annotation type declarations are uniformly wrapped and indented.
Wrap anonymous class
- Verifies that anonymous class declarations are uniformly wrapped and indented.
Wrap array initializer
- Verifies that array initializers are uniformly wrapped and indented.
Wrap binary operator
- Verifies that binary operations are uniformly wrapped before and/or after the operator.
Wrap class
- Verifies that class declarations are uniformly wrapped and indented.
Wrap constructor
- Verifies that constructore declarations, parameters and arguments are uniformly wrapped and indented.
Wrap DO statement
- Verifies that DO statements are uniformly wrapped and indented.
Wrap enum
- Verifies that enum declarations and constants are uniformly wrapped and indented.
Wrap field
- Verifies that field declarations are uniformly wrapped and indented.
Wrap interface
- Verifies that interface declarations are uniformly wrapped and indented.
Wrap local variable
- Verifies that local variable declarations are uniformly wrapped and indented.
Wrap method
- Verifies that method declarations, parameters and call arguments are uniformly wrapped and indented.
Wrap package
- Verifies that package declarations are uniformly wrapped and indented.
Wrap switch block statement group
- Verifies that switch block statement groups are uniformly wrapped and indented.
Wrap TRY statement
- Verifies that TRY statements are uniformly wrapped and indented.
Zero-parameter superconstructor invocation
- Verifies that no constructor calls the zero-parameter superconstructor.
Filters
Suppression line
- Events (i.e. CheckStyle warnings) are switched off by a 'magic line' ('offCommentFormat') or back on by another 'magic line' ('onCommentFormat').
License
CS-CONTRIB.UNKRIG.DE is published under the "New BSD License".
Source Code
The source code is available through SVN:
https://svn.code.sf.net/p/loggifier/code