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

PHPCSStandards / PHPCSExtra / 173
99%
develop: 100%

Build:
Build:
LAST BUILD BRANCH: dependabot/github_actions/actions/checkout-6.0.0
DEFAULT BRANCH: develop
Ran 31 Mar 2020 07:11PM UTC
Jobs 4
Files 18
Run time 9min
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

pending completion
173

Pull #43

travis-ci-com

web-flow
:sparkles: New `Universal.WhiteSpace.DisallowInlineTabs` sniff

New sniff to enforce using spaces for mid-line alignment.

While tab versus space based indentation is a question of preference, for mid-line alignment, spaces should always be preferred, as using tabs will result in inconsistent formatting depending on the dev-user's chosen tab width.

> _This sniff is especially useful for tab-indentation based standards which use the `Generic.Whitespace.DisallowSpaceIndent` sniff to enforce this._
>
> **DO** make sure to set the PHPCS native `tab-width` configuration for the best results.
> ```xml
>    <arg name="tab-width" value="4"/>
> ```
>
> The PHPCS native `Generic.Whitespace.DisallowTabIndent` sniff (used for space-based standards) oversteps its reach and silently does mid-line tab to space replacements as well.
>
> However, the sister-sniff `Generic.Whitespace.DisallowSpaceIndent` leaves mid-line tabs/spaces alone.
> This sniff fills that gap.

Implementation notes:
* Includes a `DummyTokenizer` to allow use of the PHPCS native intelligent tabs to spaces replacement using the default tab-width if none was set.

Includes fixers.
Includes unit tests.
Includes documentation.
Pull Request #43: New `Universal.WhiteSpace.DisallowInlineTabs` sniff

36 of 36 new or added lines in 1 file covered. (100.0%)

633 of 637 relevant lines covered (99.37%)

3.96 hits per line

Jobs
ID Job ID Ran Files Coverage
16 173.16 (PHPCS_VERSION="dev-master" LINT=1 COVERALLS_VERSION="^2.0") 31 Mar 2020 07:13PM UTC 0
98.78
Travis Job 173.16
17 173.17 (PHPCS_VERSION="3.3.1" COVERALLS_VERSION="^2.0") 31 Mar 2020 07:11PM UTC 0
99.39
Travis Job 173.17
18 173.18 (PHPCS_VERSION="dev-master" LINT=1 COVERALLS_VERSION="^1.0") 31 Mar 2020 07:18PM UTC 0
98.74
Travis Job 173.18
19 173.19 (PHPCS_VERSION="3.3.1" COVERALLS_VERSION="^1.0") 31 Mar 2020 07:20PM UTC 0
99.49
Travis Job 173.19
Source Files on build 173
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Build #173
  • Pull Request #43
  • PR Base - develop (#171)
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