Commit Graph
8 Commits
Author SHA1 Message Date
Suraj Khurana d6ebef6193 Improved: Improved: Changed lineSplit value to 150.
(OFBIZ-11737)
Earlier it was 120, as per discussion over ML we decided to make it 150 instead.
2020-05-25 17:24:30 +05:30
Jacques Le Roux 00ec6c677b Improvement: Upgrade Gradle and Groovy
(OFBIZ-11661)

Fixes a known issue with config/checkstyle/checkstyle.xml:

TreeWalker is not allowed as a parent of LineLength Please review 'Parent Module'
section for this Check in web documentation if Check is standard
2020-05-06 15:08:57 +02:00
Jacques Le Roux b95fa36bf4 Improved: follow checkstyle conventions in files committed for CSRF token defense
Mostly manually-automated, so some changes are not perfect. I have manually
changed back excessive ones

Comments out ArrayTypeStyle checkstyle
Updates checkstyleMain.maxErrors
2020-04-06 12:05:16 +02:00
Daniel Watford e665f9dc68 Improved: Set checkstyle to use LF line endings
(OFBIZ-11428)

Setting checkstyle to use LF line endings means that a newline at the
end of a source file is correctly detected no matter whether it is
checked out with LF or CRLF line endings.
2020-02-28 10:37:02 +00:00
Samuel Trégouët 7044af8a6f Implemented: Add a generic directed graph utilitary class
(OFBIZ-11275)
2019-11-08 18:19:51 +01:00
Mathieu Lirzin f5aac701c6 Implemented: Allow deprecated public fields
(OFBIZ-11256)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1868627 13f79535-47bb-0310-9956-ffa450edef68
2019-10-19 14:24:34 +00:00
Jacques Le Roux 2de3b83eca Improved: no functional change
Adds missing ASL2 header

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1868619 13f79535-47bb-0310-9956-ffa450edef68
2019-10-19 08:57:14 +00:00
Mathieu Lirzin 5363a7773a 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


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1868597 13f79535-47bb-0310-9956-ffa450edef68
2019-10-18 14:56:50 +00:00