[xwiki-contrib/documentation] 992555: OP#149: Add a check for version macros older than ...
Branch: refs/heads/op-149-old-version-macros Home: https://github.com/xwiki-contrib/documentation Commit: 992555ccd07f7e66f0838bf076f3f68f1e1539d8 https://github.com/xwiki-contrib/documentation/commit/992555ccd07f7e66f0838b... Author: Vincent Massol <[email protected]> Date: 2026-10-06 (Tue, 06 Oct 2026) Changed paths: A documentation-xwikiorg/documentation-xwikiorg-api/src/main/java/org/xwiki/contrib/documentation/internal/xwikiorg/VersionMacroCheck.java M documentation-xwikiorg/documentation-xwikiorg-api/src/main/resources/META-INF/components.txt A documentation-xwikiorg/documentation-xwikiorg-api/src/test/java/org/xwiki/contrib/documentation/internal/xwikiorg/VersionMacroCheckTest.java Log Message: ----------- OP#149: Add a check for version macros older than the supported LTS cycle * Add a `versionMacro` check reporting, as a Warning, every `{{version}}` macro without a `product` parameter whose `since` (or, when `since` is empty, `before`) versions are all older than the oldest supported XWiki version * Read the oldest supported version from the new `documentation.oldestSupportedVersion` property of `xwiki.properties`; do nothing when it is not set * Look in the page content, the FAQ and inside macros whose content is wiki content (including other version macros) * Compare versions with the xwiki-commons extension `DefaultVersion`, already a transitive dependency Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> To unsubscribe from these emails, change your notification settings at https://github.com/xwiki-contrib/documentation/settings/notifications
participants (1)
-
XWiki Notifications