Skip to content
Snippets Groups Projects
Commit 2ef8ba2e authored by jurgenhaas's avatar jurgenhaas
Browse files

Improve PHPCS IDEA settings

parent d7c80dee
No related branches found
No related tags found
1 merge request!34Merging develop into main
......@@ -17,7 +17,7 @@ $tasks = [
[
'attribute' => 'class',
'value' => 'PhpCSValidationInspection',
'content' => '<inspection_tool class="PhpCSValidationInspection" enabled="true" level="WEAK WARNING" enabled_by_default="true"><option name="CODING_STANDARD" value="DrupalPractice" /><option name="EXTENSIONS" value="php,js,css,inc" /></inspection_tool>',
'content' => '<inspection_tool class="PhpCSValidationInspection" enabled="true" level="WEAK WARNING" enabled_by_default="true"><option name="CODING_STANDARD" value="Drupal" /><option name="EXTENSIONS" value="php,js,css,inc,module,install" /></inspection_tool>',
],
],
],
......@@ -35,6 +35,11 @@ $tasks = [
'value' => 'PhpCodeSniffer',
'content' => '<component name="PhpCodeSniffer"><phpcs_settings><PhpCSConfiguration standards="Drupal;DrupalPractice;MySource;PEAR;PSR1;PSR12;PSR2;SlevomatCodingStandard;Squiz;VariableAnalysis;Zend" /><phpcs_by_interpreter interpreter_id="7a28abff-18ef-49a4-889e-453241ccddd0" beautifier_path="/var/www/html/vendor/bin/phpcbf" tool_path="/var/www/html/vendor/bin/phpcs" timeout="30000" /></phpcs_settings></component>',
],
[
'attribute' => 'name',
'value' => 'PHPCodeSnifferOptionsConfiguration',
'content' => '<component name="PHPCodeSnifferOptionsConfiguration"><option name="codingStandard" value="Drupal" /><option name="installedPaths" value="" /><option name="useInstalledPaths" value="false" /></component>',
],
[
'attribute' => 'name',
'value' => 'PhpInterpreters',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment