Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Technical Debt Plugin 'Allowed Errors' config ignored#158

Closed
gmce93 wants to merge 1 commit into
php-censor:masterphp-censor/php-censor:masterfrom
gmce93:technical-debt-warningsgmce93/php-censor:technical-debt-warningsCopy head branch name to clipboard
Closed

Technical Debt Plugin 'Allowed Errors' config ignored#158
gmce93 wants to merge 1 commit into
php-censor:masterphp-censor/php-censor:masterfrom
gmce93:technical-debt-warningsgmce93/php-censor:technical-debt-warningsCopy head branch name to clipboard

Conversation

@gmce93
Copy link
Copy Markdown
Contributor

@gmce93 gmce93 commented Feb 23, 2018

Contribution type

Bug fix.

Description of change

Sets the allowed_errors plugin property correctly, from the given config options.

At the moment, the allowed_errors config value is set in to a $allowed_errors class property, which is incorrect as the Technical Debt Plugin references the $allowedErrors class property to determine the success of the plugin's execution.

It's perhaps worth considering:

  • Changing the config key from allowed_errors to allowed_warnings, like every other plugin.
  • Consolidating the logic of allowed_warnings between all plugins. Should make them a bit more DRY.

@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 23, 2018

Codecov Report

Merging #158 into master will decrease coverage by <.01%.
The diff coverage is 0%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #158      +/-   ##
============================================
- Coverage     22.44%   22.44%   -0.01%     
- Complexity     2781     2783       +2     
============================================
  Files           154      154              
  Lines          8882     8884       +2     
============================================
  Hits           1994     1994              
- Misses         6888     6890       +2
Impacted Files Coverage Δ Complexity Δ
src/PHPCensor/Plugin/TechnicalDebt.php 0% <0%> (ø) 36 <0> (+2) ⬆️

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 4a8d66b...92e7756. Read the comment docs.

@corpsee
Copy link
Copy Markdown
Member

corpsee commented Feb 23, 2018

@glennmcewan Good work! Can you rebase your branch to the fresh master please?

@corpsee corpsee added this to the 1.0 milestone Feb 23, 2018
@corpsee
Copy link
Copy Markdown
Member

corpsee commented Feb 24, 2018

Merge manually. Thank you!

@corpsee corpsee closed this Feb 24, 2018
@gmce93 gmce93 deleted the technical-debt-warnings branch February 24, 2018 09:09
@corpsee corpsee removed this from the Version 1.0.* (patch) milestone May 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.