@@ -34,38 +34,45 @@ For an extension:
3434}
3535``` 
3636
37- For an extension (to check only for D9 deprecations):
38- 
39- ``` json 
40- "grumphp" : {
41-     "config-default-path" : " vendor/digipolisgent/qa-drupal/configs/grumphp-extension-d9.yml" 
42- }
43- ``` 
44- 
4537Now install this package and its requirements by executing execute following command:
4638<pre ><code >composer require --dev digipolisgent/qa-drupal:^1.0</code ></pre >
4739
4840
4941# Configuration  
5042
51- ** This section only applies to the site and extension configuration of GrumPHP.** 
43+ ## General  
44+ 
45+ If required you can extend or override the provided configuration file of a task.
46+ Simply create the matching configuration file in the root of your project.
5247
53- You can optionally extend or  override the task configuration files by creating 
54- them in your project root. For example: create a  ` phpcs.xml `  or ` phpcs.local.xml ` 
55- file to override the configuration provided by this package .
48+ For example, to  override the provided  ` phpcs.xml `  file you can either create a 
49+ ` phpcs.xml `  or ` phpcs.local.xml `  file. Note that the latter one should only be 
50+ used for changes that shouldn't be comitted .
5651
57- Note that  Yaml and Neon files will be  merged with your local files. So if you create 
58- a ` phpstan.neon `  file it will be merged with the  ` phpstan.neon `  file of  this package. 
52+ Yaml and Neon files will extend ( merged into) the provided configuration file by default. 
53+ Create  a ` .env `  or  ` .env.local `  file and add following contents to change  this behaviour: 
5954
60- To prevent this, create a ` .env `  or ` .env.local `  file and add following contents:
6155``` 
62- PHPSTAN_SKIP_PACKAGE_GLOBAL =1
56+ [FILENAME]_SKIP_[TYPE] =1
6357``` 
6458
65- The skip variable name is always the same ` [FILENAME]_SKIP_[TYPE] ` , wherin ` [FILENAME] ` 
66- if the file name and ` [TYPE] `  is either:
59+ Wherein ` [FILENAME] `  matches the configuration filename and ` [TYPE] `  is either:
6760
68- -  ` LOCAL `  to skip ` phpstan.local.neon ` .
69- -  ` PROJECT `  to skip ` phpstan.neon ` .
70- -  ` PACKAGE_TYPE `  to skip ` phpstan-extension.neon `  (if in an extension) of this package.
71- -  ` PACKAGE_GLOBAL `  to skip ` phpstan.neon `  of this package.
61+ -  ` LOCAL `  to skip for example your ` phpstan.local.neon `  file.
62+ -  ` PROJECT `  to skip for example your ` phpstan.neon `  file.
63+ -  ` PACKAGE_TYPE `  to skip for example the provided ` phpstan-extension.neon `  or ` phpstan-site.neon `  file.
64+ -  ` PACKAGE_GLOBAL `  to skip for example the provided ` phpstan.neon `  file.
65+ 
66+ Other file types cannot be merged and will just override all other less specific files.
67+ 
68+ 
69+ ## PHPStan in deprecations only mode  
70+ 
71+ Create a ` phpstan.neon `  file and add following contents to ignore everything except deprecations.
72+ 
73+ ``` 
74+ parameters: 
75+   customRulesetUsed: true 
76+   ignoreErrors: 
77+     - '#^(?:(?!deprecated).)*$#' 
78+ ``` 
0 commit comments