Skip to content

Update dependency boundwize/structarmed to ^0.22.0 - #485

Merged
alexmerlin merged 1 commit into
7.0from
renovate/boundwize-structarmed-0.x
Nov 23, 2026
Merged

alexmerlin merged 1 commit into
7.0from
renovate/boundwize-structarmed-0.x

Conversation

@renovate

@renovate renovate Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
boundwize/structarmed ^0.21.0 → ^0.22.0 age confidence

Release Notes

boundwize/structarmed

v0.22.5: Released: StructArmed 0.22.5

Compare Source

ci build PHPStan

What's Changed

Full Changelog: boundwize/structarmed@0.22.4...0.22.5

v0.22.4: Released: StructArmed 0.22.4

Compare Source

ci build PHPStan

What's Changed

  • fix: Pluralise violation and rule counts in report output instead of "(s)" by @​samsonasik in #​630

Full Changelog: boundwize/structarmed@0.22.3...0.22.4

v0.22.3: Released: StructArmed 0.22.3

Compare Source

ci build PHPStan

What's Changed

  • chore: Speed up tests by scoping analyses that scanned the whole repository by @​samsonasik in #​628
  • fix: Use PHP-Parser in append to detect presets, with closure and imported configs by @​samsonasik in #​629

Full Changelog: boundwize/structarmed@0.22.2...0.22.3

v0.22.2: Released: StructArmed 0.22.2

Compare Source

ci build PHPStan

What's Changed

Full Changelog: boundwize/structarmed@0.22.1...0.22.2

v0.22.1: Released: StructArmed 0.22.1

Compare Source

ci build PHPStan

What's Changed

  • fix: Support baseline-info parameter in PHPUnit extension to print the --baseline-info line by @​samsonasik in #​625

Full Changelog: boundwize/structarmed@0.22.0...0.22.1

v0.22.0: Released: StructArmed 0.22.0

Compare Source

ci build PHPStan

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:

  • the new --report=summary and --summary options for displaying violation counts per rule;
  • the new append command for adding presets to existing configurations;
  • the new --baseline-info option for identifying filtered and outdated baseline violations;
  • active configuration file visibility in console, summary, GitHub, and PHPUnit extension reports;
  • the new fixable AttributeMayNotHaveEmptyParenthesesRule in the PER preset;
  • improved missing baseline handling, allowing analysis to continue with a warning;
  • the new no-cache parameter for disabling caching in the PHPUnit extension;
  • improved CLI help support with -h and --help after commands.

New Summary Report

StructArmed introduces a new summary report for displaying violation counts grouped by rule instead of listing every individual violation.

Run:

vendor/bin/structarmed analyse --report=summary

Example output:

Rule                                   Count
────────────────────────────────────────────
source.must_declare_method_visibility     12
layer.may_not_depend_on                    3
────────────────────────────────────────────
15 violation(s) found in 2 rule(s)  •  0.34s

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:

vendor/bin/structarmed analyse --summary

The --summary option is supported by console, GitHub, and JSON reports.

For JSON output, the summary is included as a structured summary field:

{
    "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 append command for adding presets to an existing architecture configuration.

Previously, init was intended for creating a new configuration. With append, additional presets can be enabled without manually editing the existing file.

For example:

vendor/bin/structarmed append --preset=codequality

Or append all missing presets:

vendor/bin/structarmed append --preset=all

The command adds the corresponding ->withPreset(...) calls to the existing Architecture configuration chain while preserving the rest of the file.

Presets already enabled in the configuration are skipped, preventing duplicate entries.

The init command also provides guidance to use append when an existing configuration is detected.

New Baseline Diagnostics

StructArmed introduces the --baseline-info option to help identify how existing baseline entries match the current analysis results.

Run:

vendor/bin/structarmed analyse --baseline-info

Example output:

Baseline [structarmed-baseline.php]: 46 violation(s) filtered out, 0 no longer found.

When previously baselined violations are no longer found, StructArmed displays a warning:

Warning: Baseline [structarmed-baseline.php]: 46 violation(s) filtered out, 2 no longer found.

This helps identify outdated baseline entries that can be removed when regenerating the baseline.

For JSON reports, the information is available through a structured baseline field:

{
    "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:

StructArmed 0.22.0 - Architecture Enforcement
================================================
Configuration: /path/to/project/structarmed.php

No violations found. (0.34s)

This helps identify which configuration is being used, particularly when working with multiple configuration files or passing a custom --config option.

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:

#[SomeAttribute()]
final class Example
{
}

The rule supports automatic fixing:

vendor/bin/structarmed analyse --fix

Result:

#[SomeAttribute]
final class Example
{
}

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:

Warning: Baseline file [structarmed-baseline.php] does not exist, violations are reported without baseline filtering.

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-cache parameter:

<extensions>
    <bootstrap class="Boundwize\StructArmed\PHPUnit\StructArmedExtension">
        <parameter name="no-cache" value="true"/>
    </bootstrap>
</extensions>

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-cache option and can be useful when testing without cached analysis results.

CLI Help Improvements

Help options can now be provided after a command:

vendor/bin/structarmed analyse --help
vendor/bin/structarmed init -h

Both -h and --help are supported, making command usage easier to discover.

What's Changed

  • feat: Add summary report and --summary option for violation count per rule in #​603.
  • feat: Add append command to add a preset to an existing config file in #​607.
  • feat: Print the configuration file used in console, summary, and github reports in #​611.
  • feat: Warn instead of blocking analyse when baseline file does not exist on non-json report in #​613.
  • feat: Allow disabling cache in StructArmedExtension via no-cache config in #​616.
  • feat: Add HelpCommand to show usage on -h|--help after a command in #​617.
  • feat: Add fixable AttributeMayNotHaveEmptyParenthesesRule to PER preset in #​620.
  • feat: Add --baseline-info option to analyse to show filtered and no longer found baseline violations in #​623.
  • Prepare for 0.22.0 in #​608.

Full Changelog: boundwize/structarmed@0.21.30...0.22.0


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@codecov

codecov Bot commented Nov 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 38.53%. Comparing base (162d897) to head (c66adb7).

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions

github-actions Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Qodana for PHP

It seems all right 👌

No new problems were found according to the checks applied

💡 Qodana analysis was run in the pull request mode: only the changed files were checked
☁️ View the detailed Qodana report

Detected 118 dependencies

Third-party software list

This page lists the third-party software dependencies used in project

Dependency Version Licenses
brick/math 1.0.0 MIT
brick/varexporter 0.7.0 MIT
composer/ca-bundle 1.6.1 MIT
defuse/php-encryption v2.4.0 MIT
doctrine/collections 2.6.0 MIT
doctrine/common 3.5.0 MIT
doctrine/data-fixtures 2.2.2 MIT
doctrine/dbal 4.6.0 MIT
doctrine/deprecations 1.2.0 MIT
doctrine/event-manager 2.1.1 MIT
doctrine/inflector 2.1.1 MIT
doctrine/instantiator 2.0.0 MIT
doctrine/lexer 3.0.3 MIT
doctrine/migrations 3.9.8 MIT
doctrine/orm 3.8.0 MIT
doctrine/persistence 4.2.1 MIT
dotkernel/dot-authentication 2.7.0 MIT
dotkernel/dot-authorization 3.8.1 MIT
dotkernel/dot-cache 4.4.0 MIT
dotkernel/dot-cli 3.11.1 MIT
dotkernel/dot-controller 3.6.0 MIT
dotkernel/dot-data-fixtures 1.5.0 MIT
dotkernel/dot-dependency-injection 1.4.1 MIT
dotkernel/dot-errorhandler 4.0.2 MIT
dotkernel/dot-event 3.5.0 MIT
dotkernel/dot-flashmessenger 3.7.0 MIT
dotkernel/dot-geoip 3.11.0 MIT
dotkernel/dot-helpers 3.9.0 MIT
dotkernel/dot-log 4.0.6 MIT
dotkernel/dot-mail 5.1.6 MIT
dotkernel/dot-navigation 3.6.0 MIT
dotkernel/dot-rbac-guard 3.7.0 MIT
dotkernel/dot-rbac 3.8.0 MIT
dotkernel/dot-router 1.1.0 MIT
dotkernel/dot-session 5.8.0 MIT
dotkernel/dot-twigrenderer 3.8.0 MIT
egulias/email-validator 4.0.4 MIT
fig/http-message-util 1.1.5 MIT
friendsofphp/proxy-manager-lts v1.0.19 MIT
geoip2/geoip2 v3.5.0 Apache-2.0
laminas/laminas-authentication 2.19.0 BSD-3-Clause
laminas/laminas-cli 1.16.0 BSD-3-Clause
laminas/laminas-code 4.20.0 BSD-3-Clause
laminas/laminas-component-installer 3.9.0 BSD-3-Clause
laminas/laminas-config-aggregator 1.21.0 BSD-3-Clause
laminas/laminas-diactoros 3.10.0 BSD-3-Clause
laminas/laminas-escaper 2.19.0 BSD-3-Clause
laminas/laminas-eventmanager 3.16.0 BSD-3-Clause
laminas/laminas-filter 2.43.0 BSD-3-Clause
laminas/laminas-form 3.25.0 BSD-3-Clause
laminas/laminas-httphandlerrunner 2.15.0 BSD-3-Clause
laminas/laminas-hydrator 4.19.0 BSD-3-Clause
laminas/laminas-inputfilter 2.36.0 BSD-3-Clause
laminas/laminas-json 3.8.0 BSD-3-Clause
laminas/laminas-permissions-rbac 3.9.0 BSD-3-Clause
laminas/laminas-servicemanager 3.25.0 BSD-3-Clause
laminas/laminas-session 2.27.0 BSD-3-Clause
laminas/laminas-stdlib 3.22.0 BSD-3-Clause
laminas/laminas-stratigility 4.4.0 BSD-3-Clause
laminas/laminas-validator 2.65.0 BSD-3-Clause
laminas/laminas-view 2.44.0 BSD-3-Clause
lcobucci/jwt 5.6.2 BSD-3-Clause
league/event 3.0.3 MIT
league/oauth2-server 9.5.0 MIT
league/uri-interfaces 7.10.0 MIT
league/uri 7.10.0 MIT
maxmind-db/reader v1.15.0 Apache-2.0
maxmind/web-service-common v0.12.0 Apache-2.0
mezzio/mezzio-authentication-oauth2 3.2.0 BSD-3-Clause
mezzio/mezzio-authentication 1.14.0 BSD-3-Clause
mezzio/mezzio-authorization-rbac 1.11.0 BSD-3-Clause
mezzio/mezzio-authorization 1.12.0 BSD-3-Clause
mezzio/mezzio-cors 1.17.0 BSD-3-Clause
mezzio/mezzio-fastroute 3.15.0 BSD-3-Clause
mezzio/mezzio-helpers 5.21.0 BSD-3-Clause
mezzio/mezzio-router 3.20.0 BSD-3-Clause
mezzio/mezzio-template 2.13.0 BSD-3-Clause
mezzio/mezzio-twigrenderer 2.20.0 BSD-3-Clause
mezzio/mezzio 3.29.0 BSD-3-Clause
nikic/fast-route 1.3.1 BSD-3-Clause
nikic/php-parser v5.9.0 BSD-3-Clause
paragonie/random_compat v9.99.100 MIT
psr/cache 3.0.0 MIT
psr/clock 1.0.0 MIT
psr/container 1.1.2 MIT
psr/event-dispatcher 1.0.0 MIT
psr/http-factory 1.1.0 MIT
psr/http-message 2.0 MIT
psr/http-server-handler 1.0.2 MIT
psr/http-server-middleware 1.0.2 MIT
psr/log 3.0.2 MIT
ramsey/collection 2.1.1 MIT
ramsey/uuid-doctrine 2.1.0 MIT
ramsey/uuid 4.10.0 MIT
roave/psr-container-doctrine 6.0.0 BSD-2-Clause
symfony/cache-contracts v3.8.1 MIT
symfony/cache v7.4.23 MIT
symfony/console v7.4.23 MIT
symfony/deprecation-contracts v3.8.1 MIT
symfony/event-dispatcher-contracts v3.8.1 MIT
symfony/event-dispatcher v7.4.17 MIT
symfony/filesystem v7.4.23 MIT
symfony/mailer v7.4.22 MIT
symfony/mime v7.4.22 MIT
symfony/polyfill-ctype v1.37.0 MIT
symfony/polyfill-intl-grapheme v1.43.3 MIT
symfony/polyfill-intl-idn v1.43.0 MIT
symfony/polyfill-intl-normalizer v1.43.0 MIT
symfony/polyfill-mbstring v1.43.3 MIT
symfony/polyfill-php84 v1.43.0 MIT
symfony/polyfill-php86 v1.43.0 MIT
symfony/service-contracts v3.8.1 MIT
symfony/stopwatch v7.4.8 MIT
symfony/string v7.4.22 MIT
symfony/var-exporter v7.4.22 MIT
twig/twig v3.30.0 BSD-3-Clause
webimpress/safe-writer 2.2.0 BSD-2-Clause
webmozart/assert 2.5.1 MIT
Contact Qodana team

Contact us at qodana-support@jetbrains.com

@alexmerlin
alexmerlin merged commit 78c4be6 into 7.0 Nov 23, 2026
42 checks passed
@alexmerlin
alexmerlin deleted the renovate/boundwize-structarmed-0.x branch November 23, 2026 06:16
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