-
Notifications
You must be signed in to change notification settings - Fork 1
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
Removed the exclusion of docroot from phpcs. #26
base: master
Are you sure you want to change the base?
Conversation
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.
Does this then also lint a bunch of other directories besides the docroot/modules/custom
directory?
@@ -14,7 +14,6 @@ | |||
key "config.platform.php".--> | |||
<config name="testVersion" value="7.1"/> | |||
|
|||
<exclude-pattern>*/docroot/*</exclude-pattern> |
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.
Won't this also then do everything in contrib
as part of the lint?
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.
we have PHPCS_TARGETS
in .env
Also, does |
a68eb67
to
4105d04
Compare
4105d04
to
eb7179a
Compare
I'm also encountering this problem. I noticed custom code I am reviewing is passing tests, even though it violates Drupal coding standards. Digging into why, I found this Could this <!-- Include these files -->
<file>docroot/sites/default</file>
<file>docroot/modules/custom</file>
<file>docroot/themes/custom</file>
<file>tests</file> Rather than excluding lots and lots of things, a smaller inclusions list could help project teams who use SDP. It would work better with IDEs, and either compliment, or negate the need for, a Also, if we renamed it to |
Currently
ahoy lint
and PHPCS do not check any code indocroot/modules/custom
due to the exclusion in phpcs.xml. We need to remove this exclusion so that CI can check for coding standard in custom modules.On-behalf-of: @salsadigitalauorg [email protected]