Visitar URL original
Use StructArmed on QA by samsonasik · Pull Request #6951 · Codeception/Codeception · GitHub
Skip to content

Use StructArmed on QA - #6951

Open
samsonasik wants to merge 1 commit into
Codeception:mainfrom
samsonasik:use-structarmed-on-qa
Open

samsonasik wants to merge 1 commit into
Codeception:mainfrom
samsonasik:use-structarmed-on-qa

Conversation

@samsonasik

@samsonasik samsonasik commented Sep 25, 2026 •

Copy link
Copy Markdown

Hi, this PR add StructArmed to QA

https://github.com/boundwize/structarmed

It is a configurable PHP architecture guards with built in presets (psr4, mvc, and so on).

It already used by PHP frameworks:

Project Configuration
CakePHP https://github.com/cakephp/cakephp/blob/5.x/structarmed.php
CodeIgniter 4 https://github.com/codeigniter4/CodeIgniter4/blob/develop/structarmed.php
Spiral Framework https://github.com/spiral/framework/blob/master/structarmed.php
Mezzio Framework https://github.com/mezzio/mezzio/blob/3.29.x/structarmed.php

This PR apply StructArmed with register:

  • PSR4, CodeQuality preset and already help fixes 19 violations.
  • The CodeQuality preset apply MustBeStaticAnonymousFunctionRule to make use static when possible with single command:
vendor/bin/structarmed analyze --fix
  • I also enable ruleset so it show more ability of layering setup to define which layers each layer is allowed to depend on.

  • Register to github workflow.


Please let me know if this need simplification, reduce config, or split into multiple PRs.

@samsonasik

Copy link
Copy Markdown
Author

Ready for review 👍

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