-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy path.phpqa.yml
45 lines (40 loc) · 1.3 KB
/
.phpqa.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
phpqa:
# default CLI options - https://github.com/EdgedesignCZ/phpqa#analyze
# can be overriden by CLI: phpqa --tools phpcs:1
analyzedDirs: web/modules/custom,web/themes/custom
buildDir: reports/codereview
ignoredDirs: vendor,buildDir,node_modules
ignoredFiles: "*.css"
report: false
execution: parallel
output: file
tools: phpcs:0,phpmd:0,parallel-lint:0
# array definition and allowed errors count is supported too
# tools: [phploc, phpcs:0]
verbose: false
extensions:
- php
- module
- install
- theme
- inc
- profile
phpcs:
standard: Drupal,DrupalPractice,PHPCompatibility
reports:
file:
checkstyle: checkstyle-drupal.xml
phpmd:
# alternatively you can use an array to define multiple rule sets (https://phpmd.org/documentation/index.html#using-multiple-rule-sets)
standard: phpmd.xml.dist
paralell-lint:
reports:
file:
checkstyle: checkstyle-parallel-lint.xml
# !!! EXPERIMENTAL !!!
# Beware that configuration or \Edge\QA\Tools\Tool might change (especially $SETTINGS is not stable :)
# Use it for development of new tools, but not on production (you can add just a new tool, don't have to define all tools).
tool:
phpcs: Edge\QA\Tools\Analyzer\Phpcs
phpmd: Edge\QA\Tools\Analyzer\Phpmd
parallel-lint: Edge\QA\Tools\Analyzer\ParallelLint