Content

Localization Support

Checkstyle supports localization of the output messages. If your language is not supported, please consider translating the messages in the messages.properties file. Please let us know if you translate the file.

Enable External DTD load

The property checkstyle.enableExternalDtdLoad defines ability use custom DTD files in config and load them from some location. The property type is boolean and defaults to false.

Property chaining support

Checkstyle supports property expansion within property definitions, also known as property chaining. This feature allows you to define properties using other properties. For example:

checkstyle.dir=/home/user/checkstyle
config.dir=configs
checkstyle.suppressions.file=${checkstyle.dir}/${config.dir}/suppressions.xml
        
You can then use ${checkstyle.suppressions.file} in your checkstyle configuration, which will resolve to /home/user/checkstyle/configs/suppressions.xml.

Notes

Note that property variable expression must be of the form ${expression}.

It is not necessary to define chained properties sequentially.