Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
bin
 
 
 
 
 
 
 
 
 
 

README.md

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, 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 qa <folder>
composer run qa
composer run-script qa

Composer

{
  "scripts": {
    "qa": [
      "linter src tests",
      "codesniffer src tests"
    ]
  }
}

Thanks for testing, reporting and contributing.

You can’t perform that action at this time.