Skip to content

Instantly share code, notes, and snippets.

@MDSLKTR
Created January 30, 2019 13:08
Show Gist options
  • Select an option

  • Save MDSLKTR/4783907c9436c70df5f60a1b09b2540d to your computer and use it in GitHub Desktop.

Select an option

Save MDSLKTR/4783907c9436c70df5f60a1b09b2540d to your computer and use it in GitHub Desktop.
version: "2" # required to adjust maintainability checks
checks:
argument-count:
enabled: true
config:
threshold: 4
complex-logic:
enabled: true
config:
threshold: 4
file-lines:
enabled: true
config:
threshold: 300
method-complexity:
enabled: true
config:
threshold: 8
method-count:
enabled: true
config:
threshold: 20
method-lines:
enabled: true
config:
threshold: 100
nested-control-flow:
enabled: true
config:
threshold: 4
return-statements:
enabled: true
config:
threshold: 4
similar-code:
enabled: true
config:
threshold: # language-specific defaults. an override will affect all languages.
identical-code:
enabled: true
config:
threshold: # language-specific defaults. an override will affect all la
plugins:
duplication:
enabled: true
exclude_patterns:
- "!www/custom/plugins/PxswTheme/Resources/Themes/Frontend/PxswTheme/frontend/_public/src/js/**"
- "!www/custom/plugins/PxswTheme/Resources/Themes/Frontend/PxswTheme/frontend/_public/src/scss/**"
- "!www/custom/plugins/Pxsw*/**"
eslint:
enabled: true
channel: "eslint-5"
exclude_patterns:
- "!www/custom/plugins/PxswTheme/Resources/Themes/Frontend/PxswTheme/frontend/_public/src/js/**"
editorconfig:
enabled: true
exclude_patterns:
- "!www/custom/plugins/PxswTheme/Resources/Themes/Frontend/PxswTheme/frontend/_public/src/js/**"
- "!www/custom/plugins/PxswTheme/Resources/Themes/Frontend/PxswTheme/frontend/_public/src/scss/**"
fixme:
enabled: true
exclude_patterns:
- "!www/custom/plugins/PxswTheme/Resources/Themes/Frontend/PxswTheme/frontend/_public/src/js/**"
- "!www/custom/plugins/PxswTheme/Resources/Themes/Frontend/PxswTheme/frontend/_public/src/scss/**"
- "!www/custom/plugins/Pxsw*/**"
config:
strings:
- SHIT
- HOTFIX
- BUG
- WORKAROUND
- TODO
phpcodesniffer:
enabled: true
config:
standard: "PSR2"
exclude_patterns:
- "!www/custom/plugins/Pxsw*/**"
- "www/custom/plugins/PxswProject/Resources/migrations/"
phpmd:
enabled: true
exclude_patterns:
- "!www/custom/plugins/Pxsw*/**"
- "www/custom/plugins/PxswProject/Resources/migrations/"
stylelint:
enabled: true
exclude_patterns:
- "!www/custom/plugins/PxswTheme/Resources/Themes/Frontend/PxswTheme/frontend/_public/src/scss/**"
exclude_patterns:
- "**/*"
- "**/.*"
- ".circleci/"
- ".vagrant/"
- "ansible/"
- "deployment/"
- "node_modules/"
- "www/"
- "Vagrantfile"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment