/[Apache-SVN]
ViewVC logotype

Revision 1868597


Jump to revision: Previous Next
Author: mthl
Date: Fri Oct 18 14:56:50 2019 UTC (4 years, 6 months ago)
Changed paths: 4
Log Message:
Improved: Use ‘checkstyle’ linting tool
(OFBIZ-11251)

Linting [1] is a software engineering practice which make the code more
readable and maintainable by improving its consistency and avoiding
potential programming mistakes.  Gradle provides a core plugin for the
‘checkstyle’ tool [2][3] which implement a linting facility for the Java
language.

The check is done with the ‘gradlew check’ command.

There are currently a lot reported errors that will need to be fixed
incrementally in the future.  We ensure that new errors will not be
introduced by defining a global threshold of “allowed” errors
corresponding to the sum of errors found in the framework and in the
official plugins.

[1] https://en.wikipedia.org/wiki/Lint_(software)
[2] https://checkstyle.org/
[3] https://docs.gradle.org/current/userguide/checkstyle_plugin.html

Thanks: Taher Alkhateeb and Jacques Le Roux for their feedback


Changed paths

Path Details
Directoryofbiz/ofbiz-framework/trunk/build.gradle modified , text changed
Directoryofbiz/ofbiz-framework/trunk/config/ added
Directoryofbiz/ofbiz-framework/trunk/config/checkstyle/ added
Directoryofbiz/ofbiz-framework/trunk/config/checkstyle/checkstyle.xml added

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26