Repository navigation
Update dependency boundwize/structarmed to ^0.22.0 - #485
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## 7.0 #485 +/- ##
=========================================
Coverage 38.53% 38.53%
Complexity 925 925
=========================================
Files 169 169
Lines 3776 3776
=========================================
Hits 1455 1455
Misses 2321 2321 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
alexmerlin
approved these changes
Nov 23, 2026
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.
This PR contains the following updates:
^0.21.0→^0.22.0Release Notes
boundwize/structarmed
v0.22.5: Released: StructArmed 0.22.5Compare Source
What's Changed
Full Changelog: boundwize/structarmed@0.22.4...0.22.5
v0.22.4: Released: StructArmed 0.22.4Compare Source
What's Changed
Full Changelog: boundwize/structarmed@0.22.3...0.22.4
v0.22.3: Released: StructArmed 0.22.3Compare Source
What's Changed
Full Changelog: boundwize/structarmed@0.22.2...0.22.3
v0.22.2: Released: StructArmed 0.22.2Compare Source
What's Changed
Full Changelog: boundwize/structarmed@0.22.1...0.22.2
v0.22.1: Released: StructArmed 0.22.1Compare Source
What's Changed
Full Changelog: boundwize/structarmed@0.22.0...0.22.1
v0.22.0: Released: StructArmed 0.22.0Compare Source
StructArmed 0.22.0 introduces new summary reporting, easier preset management, improved baseline diagnostics, additional PER Coding Style enforcement, and better visibility into the active configuration.
This release introduces:
--report=summaryand--summaryoptions for displaying violation counts per rule;appendcommand for adding presets to existing configurations;--baseline-infooption for identifying filtered and outdated baseline violations;AttributeMayNotHaveEmptyParenthesesRulein the PER preset;no-cacheparameter for disabling caching in the PHPUnit extension;-hand--helpafter commands.New Summary Report
StructArmed introduces a new summary report for displaying violation counts grouped by rule instead of listing every individual violation.
Run:
Example output:
The summary is sorted by violation count, with the most frequently violated rules appearing first.
You can also append a summary to an existing report:
The
--summaryoption is supported by console, GitHub, and JSON reports.For JSON output, the summary is included as a structured
summaryfield:{ "violations": [], "summary": { "source.must_declare_method_visibility": 12, "layer.may_not_depend_on": 3 }, "total": 15, "passed": false, "elapsed": 0.34 }The standalone summary report returns a non-zero exit code when violations are found, just like the console report.
New Append Command
StructArmed introduces a new
appendcommand for adding presets to an existing architecture configuration.Previously,
initwas intended for creating a new configuration. Withappend, additional presets can be enabled without manually editing the existing file.For example:
Or append all missing presets:
The command adds the corresponding
->withPreset(...)calls to the existingArchitectureconfiguration chain while preserving the rest of the file.Presets already enabled in the configuration are skipped, preventing duplicate entries.
The
initcommand also provides guidance to useappendwhen an existing configuration is detected.New Baseline Diagnostics
StructArmed introduces the
--baseline-infooption to help identify how existing baseline entries match the current analysis results.Run:
Example output:
When previously baselined violations are no longer found, StructArmed displays a warning:
This helps identify outdated baseline entries that can be removed when regenerating the baseline.
For JSON reports, the information is available through a structured
baselinefield:{ "violations": [], "baseline": { "file": "structarmed-baseline.php", "filtered_out": 46, "no_longer_found": 2 }, "total": 0, "passed": true, "elapsed": 0.34 }When analyzing only selected paths, the number of no-longer-found violations cannot be determined reliably, so only the filtered count is reported.
The option does not change the analysis exit code.
Active Configuration File Visibility
StructArmed now displays the absolute path of the active configuration file in analysis reports.
For example:
This helps identify which configuration is being used, particularly when working with multiple configuration files or passing a custom
--configoption.The configuration path is displayed in console, summary, GitHub, and PHPUnit extension reports.
Both automatically discovered and explicitly configured files are supported.
PER Coding Style Improvements
The PER preset now includes the new
AttributeMayNotHaveEmptyParenthesesRule, requiring attributes without arguments to omit unnecessary empty parentheses.For example:
The rule supports automatic fixing:
Result:
Attributes containing comments inside their parentheses are preserved to avoid removing meaningful source content.
The rule is automatically available through
Preset::PER().Missing Baseline File Handling
A configured baseline file that does not exist no longer blocks analysis for non-JSON reports.
Instead, StructArmed continues the analysis without baseline filtering and displays a warning:
The analysis exit code continues to depend on the reported violations.
For JSON reports, a missing baseline remains an error to preserve valid machine-readable output.
PHPUnit Extension Improvements
The PHPUnit extension now supports disabling analysis caching through the
no-cacheparameter:When enabled, StructArmed skips file hashing and does not read or write cache entries.
The existing cache remains untouched.
This provides the same behavior as the CLI
--no-cacheoption and can be useful when testing without cached analysis results.CLI Help Improvements
Help options can now be provided after a command:
Both
-hand--helpare supported, making command usage easier to discover.What's Changed
appendcommand to add a preset to an existing config file in #607.Full Changelog: boundwize/structarmed@0.21.30...0.22.0
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.