Statistics
13471
2
0
12d
Badges

Quality assurance (QA)

Quality assurance (binaries) for your PHP projects


Build Status Downloads total Latest stable

Install

composer require --dev ninjify/qa

Manual usage (bin)

CodeSniffer & CodeFixer

Default folders are: src, app, tests Default extensions are: php, php3, php4, php5, phtml, phpt Default excluded folders are: */temp, */tmp

By default is used ruleset.xml in library/project root of your project. Otherwise, strict default one is used.

vendor/bin/codesniffer
vendor/bin/codesniffer <folder1> <folder2>
vendor/bin/codefixer
vendor/bin/codefixer <folder1> <folder2>

Linter (PHP)

Default folders are: src, app, tests

vendor/bin/linter
vendor/bin/linter <folder1> <folder2>

Executing

composer qa
composer run qa
composer run-script qa

Composer

{
  "scripts": {
    "qa": [
      "linter src tests",
      "codesniffer src tests"
    ],
    "tester": [
      "tester -s -p php --colors 1 -c tests/php-unix.ini tests/cases"
    ],
    "tester-coverage": [
      "tester -s -p php --colors 1 -c tests/php-unix.ini -d extension=xdebug.so --coverage ./coverage.xml --coverage-src ./src tests/cases "
    ]
  }
}

Thanks for testing, reporting and contributing.

  • 0.7.0 v0.7

    Bumped! 🇭🇰

    Diff: 0.6.0...0.7.0

    Changes:

    • use coding-standard v0.6
    • don't use no-patch in codefixer
  • 0.6.0 v0.6.0

    Bumped! 👨‍🚀

    Changes:

    • use coding-standard v0.5
  • 0.4.0 v0.4.0

    Bump! 🌁

    Changes:

    • drop composer scripts
    • Travis tests only PHP 7.1

    Notice: This is last release minor version of PHP 5.6

  • 0.5.0 v0.5.0

    Bump! 🏭

    Changes:

    • require PHP 7.1 (welcome 🎉)
  • 0.3.3 v0.3.3

    Bump! 👆

    Changes:

    • drop nette/tester
    • added exit codes only if its 0
    • added editorconfig
  • 0.3.2 v0.3.2

    Bump! ☝️

    Changes:

    • improve ruleset looking [a24a48e]
  • 0.3.1 v0.3.1

    Bump! 👉

    Changes:

    • include nette/tester
  • 0.3 v0.3

    Bump! 👈

    Changes:

    • update binaries (default folders, default ruleset)
  • 0.2 v0.2

    Bump! 🕹

    Changes:

    • added composer scripts (Linter, CodeFixer, CodeSniffer)
  • 0.1 v0.1

    Bumped! 👊

Is this addon outdated? Did you find an issue? Please report it.

Componette Componette admin@componette.com