Branch: refs/heads/da-95-script-macros Home: https://github.com/xwiki-contrib/documentation Commit: 4799eb2f785bd247d9398e2793a3e09325c108ab https://github.com/xwiki-contrib/documentation/commit/4799eb2f785bd247d9398e... Author: Vincent Massol <[email protected]> Date: 2026-10-06 (Tue, 06 Oct 2026) Changed paths: M documentation-xwikiorg/documentation-xwikiorg-api/pom.xml A documentation-xwikiorg/documentation-xwikiorg-api/src/main/java/org/xwiki/contrib/documentation/internal/xwikiorg/ScriptMacroCheck.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/ScriptMacroCheckTest.java Log Message: ----------- DA-95: Add a check for script macros in documentation pages * Add the scriptMacro check (ScriptMacroCheck), which reports a Warning for every script macro in the page content, the FAQ and inside macros whose content is wiki content, since an example result must be shown with a screenshot rather than generated. A macro is a script macro when its implementation is a ScriptMacro, so Velocity, Groovy, Python, Script and any other JSR-223 script macro are covered. Code shown inside a code macro is not reported. The context holds the macro id and the first characters of its content. * Depend on xwiki-platform-rendering-macro-script for the ScriptMacro interface. * Add ScriptMacroCheckTest. 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