-
Notifications
You must be signed in to change notification settings - Fork 166
Fix tiny misconfiguration of phpcs, and add defaults in .phpcs.xml file #39
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
Fix tiny misconfiguration of phpcs, and add defaults in .phpcs.xml file #39
Conversation
localheinz
left a comment
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.
👍 Nice!
|
|
||
| <rule ref="Generic.Commenting.Todo"/> | ||
| <rule ref="Generic.Commenting.Fixme"/> | ||
| <rule ref="Generic.Commenting.DocComment.MissingShort"> |
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.
Maybe fix the indentation here?
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.
Yeah having consistent indentation sounds like a good idea 👍 😄
.phpcs.xml
Outdated
| </rule> | ||
|
|
||
| <exclude-pattern>*/vendor/*</exclude-pattern> | ||
| </ruleset> No newline at end of file |
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.
How about adding a final newline?
Also see #40.
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.
#40 ❤️
localheinz
left a comment
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.
👍
chuck
left a comment
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.
LGTM!
phpcswas used with bothZendandPSR2however only PSR2 was effectively used.This PR instead uses PSR12 (a newer PSR2 with changes that are still compatible with our codebase).
In addition it adds my personal Favorites of disallowing
TodoandFixmecomments.With
.phpcs.xmllinting now also correctly works with VS Code extension PHP linter.