-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added project architecture sniffer docs #3014
base: master
Are you sure you want to change the base?
Added project architecture sniffer docs #3014
Conversation
Existing projects and demo-shops may contain rule violations. | ||
The decision to refactor existing violations may be at the discretion of each project individually. | ||
It is recommended to approach this in a differentiated manner. | ||
To integrate rules into the project immediately, there recommended to generate a [baseline](https://phpmd.org/documentation/#baseline) and move forward. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To integrate rules into the project immediately, there recommended to generate a [baseline](https://phpmd.org/documentation/#baseline) and move forward. | |
To integrate rules into the project immediately, generate a [baseline](https://phpmd.org/documentation/#baseline) and move forward, developing only violations free code. | |
We still recommend to review violations and plan refactoring for the most important ones. | |
Also make sure to explain developers how to fix violations from the baseline: | |
1. Fix violation in the code. | |
2. Remove fixed error from the baseline. |
The decision to refactor existing violations may be at the discretion of each project individually. | ||
It is recommended to approach this in a differentiated manner. | ||
To integrate rules into the project immediately, there recommended to generate a [baseline](https://phpmd.org/documentation/#baseline) and move forward. | ||
It is also permissible to [suppress rules](https://phpmd.org/documentation/suppress-warnings.html) on a case-by-case basis. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is also permissible to [suppress rules](https://phpmd.org/documentation/suppress-warnings.html) on a case-by-case basis. | |
It is also permissible to [suppress rules](https://phpmd.org/documentation/suppress-warnings.html) on a case-by-case basis. Although we strongly recommend to use baseline, since ignoring violations may hide consequential violations as well. |
|
||
{% info_block infoBox %} | ||
|
||
Spryker demo shops may contain violations when analyzed with the Architecture Sniffer, as the tool includes more specific rules by default. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spryker demo shops may contain violations when analyzed with the Architecture Sniffer, as the tool includes more specific rules by default. | |
Spryker demo shops may contain violations when analyzed with the Architecture Sniffer, as the tool includes more project specific rules by default. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Honestly, I'd check demoshops and either push baseline with it, or fix violations.
We should aim for perfection and hassle free development by our customers.
PR labels
When the PR is ready for review, add a TW review needed label. This lets us keep track of PRs that need to be merged and merge them in time.
PR Description
Describe the context for your changes and the changes you've made.
Tickets
If changes are associated with a ticket, add a docs ticket here.
Checklist