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

PHPCSStandards / PHP_CodeSniffer / 8867171703
78%
master: 79%

Build:
Build:
LAST BUILD BRANCH: 4.x
DEFAULT BRANCH: master
Ran 28 Apr 2024 11:14AM UTC
Jobs 3
Files 260
Run time 1min
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

28 Apr 2024 11:11AM UTC coverage: 73.069% (+0.6%) from 72.445%
8867171703

push

github

jrfnl
Config: revamp the help screen(s)

This PR attempts to make the help information more informative and to improve the readability and findability of options.

This should be seen as a first step to address user concerns about difficulty in finding the options they are looking for and understanding how certain options work, like seen in the recent months in tickets 10/294/419, 248, 322, 415 and 434.

The format for the new screens is inspired by similar help screens as currently in use in various other typical CLI tools, like PHPUnit and PHPStan.
This includes the choice for the use of colours and which colours to use.

The option descriptions are based on the previously available option descriptions with some improvements where I deemed those appropriate.
I've elected to keep the descriptions short though as this is a help screen, not a tutorial.

Notes:
* I've chosen to move the logic to generate the help screen to a separate (internal) class.
    This new class is fully covered by tests, including various QA tests which function as error-prevention when new options would be added.
* The output, by default, is not coloured, as PHPCS default to `--no-colors`. To get coloured output, either ensure the `colors` option is saved as `1` in the user-specific configuration using `--config-set colors 1` (making PHPCS default to `--colors`) or pass `--colors` on the command line.
    Note: if `--colors` is passed on the command line _after the `-h` argument, it will have no effect. This is a symptom of how the CLI argument processing currently works and is considered as out of scope of this issue.
* The output will respect the `report-width` setting (which defaults to `auto`, i.e. width of the current screen), as long as the `report-width` is 60 columns or more.
    If the `report-width` is set to below 60 columns, a width of 60 will be used anyway to allow for displaying the texts.
* `colors` and `report-width` settings as saved to a `CodeSniffer.conf` file vi... (continued)

317 of 335 new or added lines in 2 files covered. (94.63%)

17698 of 24221 relevant lines covered (73.07%)

59.47 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
99.69
src/Util/Help.php
17
19.42
2.04% src/Config.php
Jobs
ID Job ID Ran Files Coverage
1 php-7.2-custom-ini-false - 8867171703.1 28 Apr 2024 11:15AM UTC 260
69.01
GitHub Action Run
2 php-8.1-custom-ini-true - 8867171703.2 28 Apr 2024 11:14AM UTC 260
71.54
GitHub Action Run
3 php-8.3-custom-ini-false - 8867171703.3 28 Apr 2024 11:14AM UTC 260
71.52
GitHub Action Run
Source Files on build 8867171703
  • Tree
  • List 260
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #8867171703
  • 4c4a9149 on github
  • Prev Build on 4.0 (#8818973120)
  • Next Build on 4.0 (#8867362179)
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

© 2026 Coveralls, Inc