diff --git a/README.md b/README.md index 3386ec4..146ff6d 100644 --- a/README.md +++ b/README.md @@ -135,7 +135,7 @@ You need to include `checkstyle` as the version bundled with the `maven-checksty * [FileTabCharacter](#filetabcharacter) - checkstyle - enabled * [FinalClass](#finalclass) - checkstyle - enabled * [FinalizeImplementation](#finalizeimplementation) - sevntu - disabled -* [FinalLocalVariable](#finallocalvariable) - checkstyle - disabled +* [FinalLocalVariable](#finallocalvariable) - checkstyle - enabled * [FinalParameters](#finalparameters) - checkstyle - enabled * [ForbidAnnotation](#forbidannotation) - sevntu - disabled * [ForbidCCommentsInMethods](#forbidccommentsinmethods) - sevntu - enabled @@ -1038,6 +1038,10 @@ class Invalid { } ```` +#### [FinalLocalVariable](http://checkstyle.sourceforge.net/config_coding.html#FinalLocalVariable) + +Checks that local variables are `final` if they are never modified after declaration. + #### [FinalParameters](http://checkstyle.sourceforge.net/config_misc.html#FinalParameters) Parameters to a method must be `final`. @@ -2629,10 +2633,6 @@ These checks are not enabled. Notes are included for each explaining why. Couldn't get my IDE's (IntelliJ) code style to match. -#### [FinalLocalVariable](http://checkstyle.sourceforge.net/config_coding.html#FinalLocalVariable) - -> TODO: enable - #### [Header](http://checkstyle.sourceforge.net/config_header.html#Header) > TODO: enable diff --git a/src/main/resources/net/kemitix/checkstyle.xml b/src/main/resources/net/kemitix/checkstyle.xml index 47e8301..d6ac91e 100644 --- a/src/main/resources/net/kemitix/checkstyle.xml +++ b/src/main/resources/net/kemitix/checkstyle.xml @@ -81,6 +81,7 @@ +