Skip to content

Instantly share code, notes, and snippets.

@soderlind
Created November 24, 2020 19:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save soderlind/478b32ae7a795be6c9dc45367f6a245d to your computer and use it in GitHub Desktop.
Save soderlind/478b32ae7a795be6c9dc45367f6a245d to your computer and use it in GitHub Desktop.
codeclimate config file for WordPress projects
---
engines:
csslint:
enabled: true
duplication:
enabled: true
config:
languages:
- javascript
- php
fixme:
enabled: true
phpcodesniffer:
enabled: true
config:
standard: "WordPress"
phpmd:
enabled: true
checks:
Controversial/CamelCaseClassName:
enabled: false
Controversial/CamelCaseParameterName:
enabled: false
Controversial/CamelCaseMethodName:
enabled: false
Controversial/CamelCasePropertyName:
enabled: false
Controversial/CamelCaseVariableName:
enabled: false
CleanCode/ElseExpression:
enabled: false
eslint:
enabled: true
scss-lint:
enabled: true
markdownlint:
enabled: true
ratings:
paths:
- "**.css"
- "**.scss"
- "**.inc"
- "**.js"
- "**.jsx"
- "**.module"
- "**.php"
- "**.md"
- "**.py"
- "**.rb"
exclude_paths:
- ".git/*"
- "vendor/*"
- "**.png"
- "**.jpg"
- "**.gif"
- "gulpfile.js"
- "Gruntfile.js"
- "composer.lock"
- "phpcs.xml"
- "**.json"
- "**.pot"
- "**.txt"
- "**.min.js"
- "**.min.css"
- "**.dist"
- "**.sh"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment