Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(jelly): Add jelly xml declaration (#75)
* Add recipe to add XML declaration to Jelly files Fixes #1 Implement the `AddJellyXmlDeclaration` recipe to add the XML declaration to Jelly files. * **AddJellyXmlDeclaration.java** - Implement the `AddJellyXmlDeclaration` class to add the XML declaration to Jelly files. - Use `PlainTextVisitor` to modify the content of `.jelly` files. - Ensure the XML declaration `<?jelly escape-by-default='true'?>` is present in all `.jelly` files. * **AddJellyXmlDeclarationTest.java** - Implement the `AddJellyXmlDeclarationTest` class to test the `AddJellyXmlDeclaration` recipe. - Write tests to verify the XML declaration is added to Jelly files. - Ensure tests cover cases where the declaration is already present and where it is missing. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/gounthar/rewrite-jenkins/issues/1?shareId=XXXX-XXXX-XXXX-XXXX). * fix(jelly): Add documentation. * Apply suggestions from code review Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * fix(jelly): Corrected stupid input from the GitHub bot. * fix(jelly): Corrected stupid input from the GitHub bot. * fix(jelly): The defaults method could be improved by adding parser configuration here instead of repeating it in individual tests. This would make the tests more maintainable. * fix(jelly): Fix contradictory cycles configuration. * fix(jelly): Fix inconsistent cycles configuration. . * fix(jelly): Improve test clarity and completeness. * fix(jelly): Improve test clarity and completeness. * fix(jelly): Improve test clarity and completeness. * fix(jelly): Optimize test implementation. * fix(jelly): Enhance test readability and documentation. * fix(jelly): Enhance cleanup robustness. * fix(jelly): Fix Javadoc formatting and parameter naming consistency. * fix(jelly): Fix DocumentExample content to match the test. * Apply suggestions from code review Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Minor polish * Do not use file IO for tests --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Tim te Beek <[email protected]> Co-authored-by: Tim te Beek <[email protected]>
- Loading branch information