Skip to content

Conversation

@pawelchcki
Copy link
Contributor

phpcs was used with both Zend and PSR2 however 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 Todo and Fixme comments.

With .phpcs.xml linting now also correctly works with VS Code extension PHP linter.

localheinz
localheinz previously approved these changes Jul 23, 2018
Copy link
Contributor

@localheinz localheinz left a 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">
Copy link
Contributor

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?

Copy link
Contributor Author

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
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#40 ❤️

Copy link
Contributor

@localheinz localheinz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Contributor

@chuck chuck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@pawelchcki pawelchcki merged commit 7555e7b into master Jul 23, 2018
@pawelchcki pawelchcki deleted the phpcs_use_local_configuraiton_file_remove_unused_zend_sniffs_use_psr12 branch July 23, 2018 17:02
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.

4 participants