Skip to content

Add linting - #80

Merged
d-g-codappix merged 7 commits into
mainfrom
add-linting
Nov 12, 2026
Merged

d-g-codappix merged 7 commits into
mainfrom
add-linting

Conversation

@d-g-codappix

Copy link
Copy Markdown
Collaborator

No description provided.

d-g-codappix and others added 7 commits November 12, 2026 22:59
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>
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>
@d-g-codappix
d-g-codappix merged commit 7ec83b7 into main Nov 12, 2026
21 checks passed
@d-g-codappix
d-g-codappix deleted the add-linting branch November 12, 2026 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant