Repository navigation
Use StructArmed on QA - #841
samsonasik wants to merge 3 commits into
Conversation
|
All green 🎉 Ready for review/merge 👍 |
|
Hi @samsonasik thanks for the PR. I'm not familiar with the tool, although it looks interesting. Some questions/remarks:
Thank you 😊 |
|
Hi @romm,
Here performance tested on
Here a list of characteristic
You can read online documentation at https://boundwize.github.io/structarmed/
that's why
More rules that deprecated on Rector side can be added in the future on
https://boundwize.github.io/structarmed/layers-and-rulesets/#inheriting-allowed-layers if you think you need to be clean up first for starter, I can clean up them so we can re-structure later.
wdyt? |
Awesome, thanks.
Thanks for the clarification, in this case could you update the composer check and composer fix commands as well, please?
Not really sure what you mean there, sorry 😅 — you'd lower the rules to improve them later?
Yes, let's go for it. :) |
|
@romm what I mean is just use the inital psr4 preset, eg: <?php
declare(strict_types=1);
use Boundwize\StructArmed\Architecture;
use Boundwize\StructArmed\Preset\Preset;
return Architecture::define()
// apply on qa and src directory for now
// for ease gradual changes
->layer('Source', ['qa', 'src'])
->withPresets(Preset::PSR4());but that mean no change yet to showoff the code quality rules :) |
|
See PR for bump Rector and PHPStan: |
|
See PR for just initial use of StructArmed with only PSR4 preset: |
|
handled on other PR |

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:
This PR apply
StructArmedwith register:MustBeStaticAnonymousFunctionRuleto make use ofstaticin anonymous function when possible, applied wtih:Current applied
Sourceis set tosrcandqato easier to review.I also clean up no longer part of set rector config rule and re-run it, also fix phpstan notice on latest update.