Closed daniilyar closed 10 years ago
confusing.condition.check and avoid.return.in.finally fixes.
https://github.com/VadimPanasiuk/sevntu.checkstyle/commit/d26bfd3db20ff9f5473e3d40425f3a106e4997a8
@VadimPanasiuk, please do pull request.
One more suggestion: MaximumLineLengthExtended should print the current line length in warnings.
last request was moved to separate issue - https://github.com/sevntu-checkstyle/sevntu.checkstyle/issues/181.
Issue is closed.
Please fix common rules for all messages:
A. Check messages should not include redundant words/phrases such as 'please, ...'. If check generates warnings or errors, there should be no 'please' word, but should be something like 'avoid' , 'fix', 'do' or smth else with short problem description.
Example: message of Confusing condition check ('confusing.condition.check=Please Avoid negation within an "if" expression with an "else" clause.')
B. Check messages should not confuse people with different terminology. Example: incorrect.getter.name=Unexpected getter name. incorrect.setter.name=Unexpected setter name. 'Unexpected' for this case should be changed to 'Incorrect' as message key contains 'incorrect' word already. Second example: mutable.exception=The field ''{0}'' must be declared final. instantiation.avoid=Instantiation of {0} should be avoided.
either 'must' or 'should' have to be used in all messages. Must is a bad variant for most cases so I propose to use 'should' where possible.
Please remove all redundant messages in all messages.properties files. For example, message 'avoid.declare.constants=Please avoid to declare constant(s) in the interface.' is not used at all and should be removed.
Also, please, update some check messages to be both more correct and pithy:
Propose your variants if you dislike something above