Repository navigation
Add linting - #300
Merged
Merged
Add linting#300
Conversation
Fixes the errors reported by yamllint with Build/yamllint.yaml, so the yaml lint can be added to the CI. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Build/yamllint.yaml existed but was not used since the GitLab CI was removed. Build/Scripts/lint-yaml.sh lints all yaml files except the ones ignored by .gitignore. It is available as composer script project:lint:yaml, as project-lint-yaml in shell.nix and runs in the GitHub CI. The truthy rule no longer checks keys, so the "on" key of GitHub workflows is allowed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The XLIFF files are validated against the XLIFF 1.2 strict schema now. They declare XLIFF 1.2 with its namespace, like the TYPO3 core files. Invalid file dates, misspelled attributes and duplicate trans-unit ids are fixed. For duplicate ids the effective (last) label is kept. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Build/Scripts/lint-xml.sh validates the XLIFF files against the XLIFF 1.2 strict schema and Build/phpunit.xml.dist against the schema of the installed PHPUnit. Both schemas used for XLIFF are stored in Build/, so the validation does not need to download xml.xsd from w3.org. It is available as composer script project:lint:xml, as project-lint-xml in shell.nix and runs in the GitHub CI. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fixes the issues reported by typoscript-lint with Build/typoscriptlint.yaml. Nested statements replace repeated path prefixes, the parsed TypoScript stays the same. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Build/Scripts/lint-typoscript.sh lints the TypoScript and TSconfig files in Configuration and Tests with Build/typoscriptlint.yaml and fails on warnings. It is available as composer script project:lint:typoscript, as project-lint-typoscript in shell.nix and runs in the GitHub CI. The content of conditions is indented now, RepeatingRValue is disabled because extracting repeated values into constants would add them to the public configuration of the extension. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The command only lints php files. The new name matches the composer script project:lint:php and the other lint commands. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
project-lint in shell.nix and the composer script project:lint run the php, TypoScript, xml and yaml lint with one call. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.