Update twig-cs-fixer to 4.0 - #95
Merged
Merged
Conversation
API Specification - Non-breaking changesNo changelog changes |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #95 +/- ##
=============================================
+ Coverage 37.14% 37.99% +0.84%
+ Complexity 948 946 -2
=============================================
Files 133 133
Lines 2972 2982 +10
=============================================
+ Hits 1104 1133 +29
+ Misses 1868 1849 -19
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
Link to ticket
TODO: no ticket linked yet — please add before review.
Description
The dependency sweep after #93.
composer updatewithin the current constraints reports "Nothing to modify in lock file": every package is already at its latest minor and patch. The only thing left to move is one major, so that is all this PR contains.vincentlanglet/twig-cs-fixergoes from^3.14to^4.0. It needs no reformatting sweep, but that was worth checking, because 4.0 does change what the fixer enforces:|and.moved from punctuation to operators, andOperatorSpacingRulesplit into operator, ternary and unary rules. A probe template confirms the new rules bite:Our 27 templates already satisfy them:
lint --no-cachereports 0 notices, 0 warnings, 0 errors, andlint --fix --no-cacherewrites nothing. The--no-cachematters —.twig-cs-fixer.cachewas written by 3.14, and a cached run would have looked clean whether or not it was..twig-cs-fixer.dist.phpneeds no changes either. It only builds aFinderand an emptyConfig; the 4.0 upgrade notes are about constructor signatures and token types, which affect custom rules, and we have none.Outstanding majors
Everything else that
composer outdatedflags is held back by a dependent, not by us:itk-dev/openid-connect-bundledoctrine/collectionsdoctrine/orm3.6.8 requires^2.2guzzlehttp/guzzleleague/oauth2-client2.9.0 requires^6.5.8 || ^7.4.5guzzlehttp/psr7guzzlehttp/guzzle7.15.5 requires^2.13.1guzzlehttp/promisesguzzlehttp/guzzle7.15.5 requires^2.5.3robrichards/xmlseclibsitk-dev/openid-connect5.0.0 requires^3.1.5The Guzzle 8 line and
xmlseclibs4 both wait on the OIDC packages:league/oauth2-clientpins Guzzle 7, anditk-dev/openid-connectpinsxmlseclibs3. Nothing to do here until those release, and neither carries an advisory —composer audit --lockedis clean.Screenshot of the result
No user interface changes.
Checklist
Dev-tooling change only, so the existing suite is what verifies it: 45 tests, PHPStan, PHP-CS-Fixer,
composer validate --strict,composer normalize --dry-run, markdownlint, and twig-cs-fixer itself on 4.0 all pass locally.Additional comments or questions
.twig-cs-fixer.dist.phpcarries a note that it is copied fromconfig/symfony/twig/.twig-cs-fixer.dist.phpin devops_itkdev-docker. Our copy works unchanged on 4.0, so there is nothing to send upstream — worth knowing if the shared template gets a 4.0-specific revision later.