Cs-contrib.unkrig.de: Difference between revisions
Jump to navigation
Jump to search
Line 15: | Line 15: | ||
= Checks and Quickfixes = | = Checks and Quickfixes = | ||
;[[Cs-contrib.unkrig.de / Checks / | ;[[Cs-contrib.unkrig.de / Checks / Alignment|<code>Alignment</code>]] | ||
:Verifies that Java elements are vertically aligned. | :Verifies that Java elements are vertically aligned. | ||
;[[Cs-contrib.unkrig.de / Checks / | ;[[Cs-contrib.unkrig.de / Checks / C++-style comment alignment|<code>C++-style comment alignment</code>]] | ||
:Verifies that C++ comments ('// ...') are correctly aligned. | :Verifies that C++-style comments ('// ...') are correctly aligned. | ||
;[[Cs-contrib.unkrig.de / Checks / | ;[[Cs-contrib.unkrig.de / Checks / Inner assignment|<code>Inner assignment</code>]] | ||
:Verifies that assignments in expressions are parenthesized. | :Verifies that assignments in expressions are parenthesized. | ||
;[[Cs-contrib.unkrig.de / Checks / | ;[[Cs-contrib.unkrig.de / Checks / Name spelling|<code>Name spelling</code>]] | ||
:Verifies that the names of Java elements match, respectively no not match given patterns. | :Verifies that the names of Java elements match, respectively no not match given patterns. | ||
;[[Cs-contrib.unkrig.de / Checks / | ;[[Cs-contrib.unkrig.de / Checks / Parenthesis padding|<code>Parenthesis padding</code>]] | ||
:Enhanced version of "ParenPad". <span style="color: red">Superseded by '[[Cs-contrib.unkrig.de / Checks / de.unkrig.Whitespace|de.unkrig.Whitespace]]'.</span> | :Enhanced version of "ParenPad". <span style="color: red">Superseded by '[[Cs-contrib.unkrig.de / Checks / de.unkrig.Whitespace|de.unkrig.Whitespace]]'.</span> | ||
;[[Cs-contrib.unkrig.de / Checks / | ;[[Cs-contrib.unkrig.de / Checks / Whitespace|<code>Whitespace</code>]] | ||
:Verifies that tokens are, respectively are not preceded with (and/or followed by) whitespace. | :Verifies that tokens are, respectively are not preceded with (and/or followed by) whitespace. | ||
;[[Cs-contrib.unkrig.de / Checks / | ;[[Cs-contrib.unkrig.de / Checks / Whitespace around|<code>Whitespace around</code>]] | ||
: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 / | ;[[Cs-contrib.unkrig.de / Checks / Wrap and indent|<code>Wrap and indent</code>]] | ||
:Verifies that statements are uniformly wrapped and indented. | :Verifies that statements are uniformly wrapped and indented. | ||
;[[Cs-contrib.unkrig.de / Checks / | ;[[Cs-contrib.unkrig.de / Checks / Zero-parameter superconstructor invocation|<code>Zero-parameter superconstructor invocation</code>]] | ||
:Verifies that no constructor calls the zero-parameter superconstructor. | :Verifies that no constructor calls the zero-parameter superconstructor. | ||
Revision as of 16:12, 30 December 2014
Introduction
This project adds custom checks, filters and quickfixes for CheckStyle and Eclipse-CS.
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 and indent
- Verifies that statements are uniformly wrapped and indented.
Zero-parameter superconstructor invocation
- Verifies that no constructor calls the zero-parameter superconstructor.
Filters
<de.unkrig.SuppressionLine>
- 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