Skip to content
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

Switch to using the phpcs provided uppercase constant sniff. #207

Merged
merged 2 commits into from
Jun 8, 2018

Conversation

markstory
Copy link
Member

We've seen a few builds fail because return type values are being caught by our sniff. After reviewing the one in PHPCS it seems to capture all the cases we care about so there is no reason to continue maintaining our own version.

We've seen a few builds fail because return type values are being caught
by our sniff. After reviewing the one in PHPCS it seems to capture all
the cases we care about so there is no reason to continue maintaining
our own version.
@@ -111,6 +112,7 @@
<rule ref="Squiz.WhiteSpace.SemicolonSpacing"/>
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace"/>
<rule ref="Squiz.WhiteSpace.ScopeClosingBrace"/>
<rule ref="Generic.NamingConventions.UpperCaseConstant"/>
Copy link
Member

Choose a reason for hiding this comment

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

Invalid name, should be UpperCaseConstantName

Copy link
Member Author

Choose a reason for hiding this comment

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

Blerg sorry about that.

@codecov
Copy link

codecov bot commented Jun 8, 2018

Codecov Report

Merging #207 into master will increase coverage by 1.4%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##             master     #207     +/-   ##
===========================================
+ Coverage     85.52%   86.92%   +1.4%     
+ Complexity      293      263     -30     
===========================================
  Files            23       22      -1     
  Lines           815      719     -96     
===========================================
- Hits            697      625     -72     
+ Misses          118       94     -24

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1309b61...ebc4557. Read the comment docs.

@ADmad
Copy link
Member

ADmad commented Jun 8, 2018

I fixed the sniff name.

@dereuromark dereuromark merged commit d6018c8 into master Jun 8, 2018
@dereuromark dereuromark deleted the uppercase-constant-fix branch June 8, 2018 08:35
@dereuromark
Copy link
Member

Will you make a patch release?

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.

3 participants