• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

PHPCSStandards / PHP_CodeSniffer / 15717932336
79%
master: 79%

Build:
Build:
LAST BUILD BRANCH: feature/fixer-conflict/PSR12.Functions.ReturnTypeDeclaration
DEFAULT BRANCH: master
Ran 17 Jun 2025 09:01PM UTC
Jobs 8
Files 265
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

17 Jun 2025 09:00PM UTC coverage: 78.728% (+0.02%) from 78.707%
15717932336

push

github

web-flow
Improve handling of disable/enable/ignore directives (#123)

The current method, listing codes to disable and a list of exceptions to
that list, still has trouble with some cases. For example, disabling a
standard, re-enabling a category within that standard, then ignoring or
disabling a sniff within that category cannot be handled. We'd need a
list of exceptions to the exceptions, and possibly a list of exceptions
to that list too, and figuring out how to keep those lists up to date as
new directives are encountered could prove to be confusing.

Since the standard→category→sniff→code hierarchy is supposed to be
thought of as a tree, let's store the ignore list that way instead.
Manipulating the branches of the tree is straightforward no matter what
directives are encountered.

In this implementation I've favored speed over space: there are cases
where we could prune a subtree that would evaluate to "ignore" or "don't
ignore" for any possible input, but detecting that doesn't seem worth
the time when it's not likely there will be so many enable or disable
directives that the wasted space will be a problem.

Fixes #111

77 of 80 new or added lines in 3 files covered. (96.25%)

19764 of 25104 relevant lines covered (78.73%)

88.88 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
59.38
-0.69% src/Tokenizers/Tokenizer.php
2
96.55
src/Util/IgnoreList.php
Jobs
ID Job ID Ran Files Coverage
1 cbf-os-ubuntu-latest-ubuntu-latest-php-7.2-custom-ini-false - 15717932336.1 17 Jun 2025 09:07PM UTC 265
1.31
GitHub Action Run
2 os-ubuntu-latest-php-7.2-custom-ini-false - 15717932336.2 17 Jun 2025 09:07PM UTC 265
75.65
GitHub Action Run
3 cbf-os-ubuntu-latest-ubuntu-latest-php-8.4-custom-ini-true - 15717932336.3 17 Jun 2025 09:05PM UTC 265
2.34
GitHub Action Run
4 os-ubuntu-latest-php-8.4-custom-ini-true - 15717932336.4 17 Jun 2025 09:05PM UTC 265
76.44
GitHub Action Run
5 os-windows-latest-php-7.2-custom-ini-false - 15717932336.5 17 Jun 2025 09:02PM UTC 265
2.15
GitHub Action Run
6 os-windows-latest-php-8.4-custom-ini-false - 15717932336.6 17 Jun 2025 09:01PM UTC 265
2.7
GitHub Action Run
7 cbf-os-ubuntu-latest-ubuntu-latest-php-8.4-custom-ini-false - 15717932336.7 17 Jun 2025 09:05PM UTC 265
2.34
GitHub Action Run
8 os-ubuntu-latest-php-8.4-custom-ini-false - 15717932336.8 17 Jun 2025 09:05PM UTC 265
76.54
GitHub Action Run
Source Files on build 15717932336
  • Tree
  • List 265
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #15717932336
  • 703b7f4f on github
  • Prev Build on 4.x (#15709540075)
  • Next Build on 4.x (#15718119659)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc