Branch: refs/heads/master Home: https://github.com/xwiki/xwiki-platform Commit: 7c9eeb74f6392a0ce2200aaa1fc893886c947c3f https://github.com/xwiki/xwiki-platform/commit/7c9eeb74f6392a0ce2200aaa1fc89... Author: Vincent Massol <[email protected]> Date: 2026-06-11 (Thu, 11 Jun 2026) Changed paths: M xwiki-platform-core/xwiki-platform-filter/xwiki-platform-filter-streams/xwiki-platform-filter-stream-xar/src/main/java/org/xwiki/filter/xar/internal/input/AttachmentReader.java Log Message: ----------- [Misc] Reduce cognitive complexity of AttachmentReader.read() reported by SonarQube * Extract the per-element handling of the XAR attachment reading loop into a dedicated private method so that the cognitive complexity of read() drops below the allowed threshold. * Flatten the nested else/if chain into an else-if chain to further reduce nesting. Co-authored-by: Claude <[email protected]> To unsubscribe from these emails, change your notification settings at https://github.com/xwiki/xwiki-platform/settings/notifications