Updates tasks.checkstyleMain.maxErrors to 26842
Remove a trailing space in RequestHandler I used to test the pre-push hook.
In the previous commit (c4b5f5e) I have pushed a pre-push hook rather than a
pre-commit hook. I think it makes sense. I noticed that this does not clear the
existing pre-commit hook in .git\hooks. You have to clear it by hand.
But anyway I believe we should rather use a webhook as Suggested by Samuel and
proposed by Infra. This for at least 3 reasons:
Handles PRs and not only local commits
Minimise the CPU usage locally
Simplify usage for custom projects
I think it's the best solution but I'll continue the discussion on dev ML about
* Implemented: pre commit hook to check staged files with list issues
(OFBIZ-11304)
Used git-hooks-gradle-plugin with MIT license that helps configure shared Git hooks with Gradle buildscript
https://github.com/jakemarsden/git-hooks-gradle-plugin
* Improved: used exisiting checkstyleMain to check for the voilations
(OFBIZ-11304)
checkstyleMain will only fail in case when maxErrors increases
Thank you Jacques for the suggestion
* Improved: getChangedFiles() to check all the files
(OFBIZ-11304)
Initially the method only checks for the java files, so removed the code to filter java files
* Removed: custom checkstyle gradle task
(OFBIZ-11304)
Existing checkstyleMain task fulfills the requirement
Thank you Jacques, Mathieu, Samuel, and Pierre for your valuable inputs.
In .gitignore in root ofbiz directory there is plugins/
so all directory plugins are ignored
if the line is replace by /plugins/ only root directory plugins is ignored
Thanks: Olivier
* Fixed: Check embedded Javascript libs vulnerabilities using retire.js
(OFBIZ-11752)
Upgraded jQuery to 3.5.2 and jQuery migrate to 3.3.0 to vulnerabilities of medium severity
Regex in its jQuery.htmlPrefilter sometimes may introduce XSS; https://blog.jquery.com/2020/04/10/jquery-3-5-0-released/
* Fixed: console error TypeError: document is undefined
(OFBIZ-11752)
As the document object was not passed to the IFFE call for the FORMALIZE function, it gives console error for the missing document object when accessed
(OFBIZ-11796)
Instead of updating all product facilities records on one inventory item change, we should be changing only specific product facility record for that the inventory item belongs to. Thanks Jacques, Pierre, Pawan and Arun for the review.
(OFBIZ-11693)
Migrate CommonExtHelData.xml to added some <set field="helpAnchor" to
the correct screens
Now in commonext component only asciidoc documents are used, help link
area now link to userDocUri
(ci.apache.org/projects/ofbiz/site/trunk/ofbizdoc as default value in
general.property)
* [Improved]: Use GroovyBaseScript's logging utility methods instead of using Debug
- Replaced the debug.log methods with the respective groovy utility method
- Enhanced the GroovyBaseScript to entertain the fetch the current class name as the module name for logging
- Overloaded the logError method to entertain throwbale object for better logging
- Removed unused import statements and module variables.
(OFBIZ-11762)
* [Removed]: Extra line spaces. (OFBIZ-11762)
* [Revert]: Unwanted changes. (OFBIZ-11762)
* [Added] Same changes to these files. (OFBIZ-11762)
Co-authored-by: Priya Sharma <priya.sharma@example.com>
(OFBIZ-11693)
Migrate AccountingHelData.xml to added some <set field="helpAnchor" to
the correct screens
Now in accounting component only asciidoc documents are used, help link
area now link to userDocUri
(ci.apache.org/projects/ofbiz/site/trunk/ofbizdoc as default value in
general.property)
(OFBIZ-11723)
Made class as final, added private constructor, also made data members as private, defined getter methods and changed related occurrences.
(OFBIZ-11693)
Change release for all asciidoc files, now there area 3 publish site,
one per release
* site/trunk
* site/next currently for the 18.12
* site/stable currently for the 17.12
1. Add a general property: userDocUri containing uri for
ofbiz.apache.org html user-documentation generated by Buildbot
2. in each theme, add a test on helpAnchor field, if it's define help
link is now on ${userDocUri}#${helpAnchor}
* if userDocUri is not defined, the general property is used