diff --git a/README.md b/README.md index 5e9c3ad..006a88e 100644 --- a/README.md +++ b/README.md @@ -154,7 +154,7 @@ You need to include `checkstyle` as the version bundled with the `maven-checksty * [IllegalImport](#illegalimport) - checkstyle - enabled * [IllegalInstantiation](#illegalinstantiation) - checkstyle - disabled * [IllegalThrows](#illegalthrows) - checkstyle - enabled -* [IllegalToken](#illegaltoken) - checkstyle - disabled +* [IllegalToken](#illegaltoken) - checkstyle - enabled * [IllegalTokenText](#illegaltokentext) - checkstyle - disabled * [IllegalType](#illegaltype) - checkstyle - enabled * [ImportControl](#importcontrol) - checkstyle - disabled @@ -1191,6 +1191,10 @@ Invalid: throw new RuntimeException("boom!"); ```` +#### [IllegalToken](http://checkstyle.sourceforge.net/config_coding.html#IllegalToken) + +Checks that labels are not used. + #### [IllegalType](http://checkstyle.sourceforge.net/config_coding.html#IllegalType) Prevents variables, parameters and method returns from being one of the following: @@ -2641,10 +2645,6 @@ Couldn't get my IDE's (IntelliJ) code style to match. Not really suitable for a template ruleset as it requires an explicit list of classes to apply to. -#### [IllegalToken](http://checkstyle.sourceforge.net/config_coding.html#IllegalToken) - -> TODO: enable - #### [IllegalTokenText](http://checkstyle.sourceforge.net/config_coding.html#IllegalTokenText) Generic rule; doesn't embody a 'quality' check. diff --git a/src/main/resources/net/kemitix/checkstyle.xml b/src/main/resources/net/kemitix/checkstyle.xml index 4c0fe71..82440f0 100644 --- a/src/main/resources/net/kemitix/checkstyle.xml +++ b/src/main/resources/net/kemitix/checkstyle.xml @@ -99,6 +99,7 @@ +