Branch: refs/heads/master Home: https://github.com/xwiki/xwiki-platform Commit: fc9466aa405b94f6bd8c8d06ad88ee875dd8db38 https://github.com/xwiki/xwiki-platform/commit/fc9466aa405b94f6bd8c8d06ad88e... Author: claude[bot] <209825114+claude[bot]@users.noreply.github.com> Date: 2026-09-07 (Mon, 07 Sep 2026) Changed paths: M xwiki-platform-core/xwiki-platform-oldcore/src/test/java/com/xpn/xwiki/XWikiTest.java M xwiki-platform-core/xwiki-platform-oldcore/src/test/java/com/xpn/xwiki/doc/XWikiDocumentTest.java M xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-war/src/main/webapp/resources/js/xwiki/create.js M xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-war/src/main/webapp/resources/js/xwiki/usersandgroups/usersandgroups.js M xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-war/src/main/webapp/resources/js/xwiki/xwiki.js M xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-war/src/main/webapp/resources/uicomponents/extension/clean.js M xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-war/src/main/webapp/resources/uicomponents/lock/lock.js M xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-war/src/main/webapp/resources/uicomponents/widgets/confirmedAjaxRequest.js M xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-war/src/main/webapp/resources/uicomponents/widgets/gallery/gallery.js M xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-war/src/main/webapp/resources/uicomponents/widgets/locationPicker.js M xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-war/src/main/webapp/resources/uicomponents/widgets/notification.js M xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-war/src/main/webapp/resources/uicomponents/widgets/sortPicker.js Log Message: ----------- [Misc] Fix various SonarQube issues in oldcore tests and the WAR JavaScript (#6303) * java:S1117 (13): rename the local `document` that hides the `document` field in XWikiTest and XWikiDocumentTest. * javascript:S6557 (3): use String#startsWith() instead of indexOf(x) == 0 and charAt(0) == c. * javascript:S7781 (4): use String#replaceAll() with a literal pattern instead of String#replace() with a global regex. * javascript:S2814 (6) + javascript:S2392 (2): declare `denymessage` and `clearmessage` once, at the top of the function that uses them. * javascript:S3504 (16): use const/let instead of var, except for the two module-global `var XWiki` IIFE assignments, which must stay `var`. * javascript:S4138 (1): iterate the image elements with for-of. Claude-Session: https://claude.ai/code/session_019rz5ncf6YfgvDPSTqygjoL Co-authored-by: Vincent Massol <[email protected]> Co-authored-by: Claude Opus 5 <[email protected]> To unsubscribe from these emails, change your notification settings at https://github.com/xwiki/xwiki-platform/settings/notifications