com.puppycrawl.tools.checkstyle.meta.checks.coding.ParameterAssignmentCheck.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of checkstyle Show documentation
Show all versions of checkstyle Show documentation
Checkstyle is a development tool to help programmers write Java code
that adheres to a coding standard
<?xml version="1.0" encoding="UTF-8"?> <checkstyle-metadata> <module> <check fully-qualified-name="com.puppycrawl.tools.checkstyle.checks.coding.ParameterAssignmentCheck" name="ParameterAssignment" parent="com.puppycrawl.tools.checkstyle.TreeWalker"> <description><p> Disallows assignment of parameters. </p> <p> Rationale: Parameter assignment is often considered poor programming practice. Forcing developers to declare parameters as final is often onerous. Having a check ensure that parameters are never assigned would give the best of both worlds. </p></description> <message-keys> <message-key key="parameter.assignment"/> </message-keys> </check> </module> </checkstyle-metadata>