-
-
Notifications
You must be signed in to change notification settings - Fork 601
Misc: panelWizard.js Quality #4592
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
* Removed the 22 quality "blocker" issues by declaring the javascript variables properly. * Removed easy to remove high->low quality issues. 8 issues left (XWiki.widgets.Notification unused instantiations and Cognitive Complexity)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I left a few suggestions, but can be merged as is.
...orm-web/xwiki-platform-web-war/src/main/webapp/resources/js/xwiki/panelwizard/panelWizard.js
Show resolved
Hide resolved
...orm-web/xwiki-platform-web-war/src/main/webapp/resources/js/xwiki/panelwizard/panelWizard.js
Outdated
Show resolved
Hide resolved
...orm-web/xwiki-platform-web-war/src/main/webapp/resources/js/xwiki/panelwizard/panelWizard.js
Outdated
Show resolved
Hide resolved
...orm-web/xwiki-platform-web-war/src/main/webapp/resources/js/xwiki/panelwizard/panelWizard.js
Outdated
Show resolved
Hide resolved
...orm-web/xwiki-platform-web-war/src/main/webapp/resources/js/xwiki/panelwizard/panelWizard.js
Outdated
Show resolved
Hide resolved
...orm-web/xwiki-platform-web-war/src/main/webapp/resources/js/xwiki/panelwizard/panelWizard.js
Outdated
Show resolved
Hide resolved
* Updated `let` assignments to be `const` Co-authored-by: Marius Dumitru Florea <[email protected]>
* Updated `let` assignments to be `const` Co-authored-by: Marius Dumitru Florea <[email protected]>
* Updated `let` assignments to be `const` Co-authored-by: Marius Dumitru Florea <[email protected]>
* Updated `let` assignments to be `const` Co-authored-by: Marius Dumitru Florea <[email protected]>
* Updated syntax Co-authored-by: Marius Dumitru Florea <[email protected]>
* Removed unused variable assignment
Thanks for the help @mflorea ! This PR is ready for further review or a merge :) |
Reference URL
Instead of the usual Jira issue, here is a link to the list of quality problems found on SonarQube:
https://sonarcloud.io/project/issues?fileUuids=AXnpASDXDDFOvAKXAP6t&languages=js&issueStatuses=OPEN%2CCONFIRMED&id=org.xwiki.platform%3Axwiki-platform
Changes
Description
Clarifications
Screenshots & Video
Test issue only.

Executed Tests
SonarQube validation (see screenshot above)
Built the change successfully with
mvn clean install -f xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-war -Pquality
Then passed the test suite successfully:
mvn clean install -f xwiki-platform-core/xwiki-platform-panels/xwiki-platform-panels-test/xwiki-platform-panels-test-docker/
Tested manually on a local instance to make sure that changes did not influence functionality. At some point I tried changing the scope of variables and this broke toolTip.js (which relies on values of globally defined variables...) but the current solution works well.
Expected merging strategy