-
Notifications
You must be signed in to change notification settings - Fork 797
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Codeclimate: rely on eslint 5 to avoid build errors (#12632)
* Codeclimate: run eslint 5 This may help solve current errors when trying to run Codeclimate tests. * Rely on Codeclimate prepare to extract our config into base file This will allow us to make our CodeClimate config available to other repos. See comment at the top of the file to see how this can be used. * Update CodeClimate base file. See https://github.com/Automattic/jetpack/pull/12632/files#r292177003
- Loading branch information
Showing
2 changed files
with
74 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,6 @@ | ||
--- | ||
engines: | ||
csslint: | ||
enabled: true | ||
duplication: | ||
enabled: true | ||
config: | ||
languages: | ||
- javascript | ||
- php | ||
fixme: | ||
enabled: true | ||
phpcodesniffer: | ||
enabled: true | ||
config: | ||
standard: "WordPress" | ||
phpmd: | ||
enabled: true | ||
eslint: | ||
enabled: true | ||
channel: "eslint-2" | ||
scss-lint: | ||
enabled: true | ||
markdownlint: | ||
enabled: true | ||
ratings: | ||
paths: | ||
- "**.css" | ||
- "**.scss" | ||
- "**.inc" | ||
- "**.js" | ||
- "**.jsx" | ||
- "**.php" | ||
- "**.md" | ||
exclude_paths: | ||
- "**/.github/**" | ||
- "**/tests/**" | ||
- "**.png" | ||
- "**.jpg" | ||
- "**.gif" | ||
- "gulpfile.js" | ||
- "composer.lock" | ||
- ".phpcs.xml.dist" | ||
- "**.json" | ||
- "**.jshintrc" | ||
- "**.jshintignore" | ||
- "**.svnignore" | ||
- "**.travis.yml" | ||
- "**.gitignore" | ||
- "**.eslintrc.js" | ||
- "**.editorconfig" | ||
- "**.pot" | ||
- "**.txt" | ||
- "**-min.js" | ||
- "**-min.css" | ||
- "**.dist" | ||
- "**.sh" | ||
prepare: | ||
fetch: | ||
- url: "https://raw.githubusercontent.com/automattic/jetpack/master/.github/codeclimate-base.yml" | ||
path: "codeclimate-base.yml" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# Basic configuration for CodeClimate. | ||
# This basic configuration can then be used and extended up in other repositories, | ||
# or in this one, using the prepare step: | ||
# https://docs.codeclimate.com/docs/configuring-the-prepare-step | ||
# | ||
# Here is how your codeclimate file extending Jetpack's one should look like: | ||
# prepare: | ||
# fetch: | ||
# - url: "https://raw.githubusercontent.com/automattic/jetpack/master/.github/codeclimate-base.yml" | ||
# path: "codeclimate-base.yml" | ||
--- | ||
engines: | ||
csslint: | ||
enabled: true | ||
duplication: | ||
enabled: true | ||
config: | ||
languages: | ||
- javascript | ||
- php | ||
fixme: | ||
enabled: true | ||
phpcodesniffer: | ||
enabled: true | ||
config: | ||
standard: "WordPress" | ||
phpmd: | ||
enabled: true | ||
eslint: | ||
enabled: true | ||
channel: "eslint-5" | ||
config: | ||
config: "/.eslintrc.js" | ||
scss-lint: | ||
enabled: true | ||
markdownlint: | ||
enabled: true | ||
ratings: | ||
paths: | ||
- "**.css" | ||
- "**.scss" | ||
- "**.inc" | ||
- "**.js" | ||
- "**.jsx" | ||
- "**.php" | ||
- "**.md" | ||
exclude_paths: | ||
- "**/.github/**" | ||
- "**/tests/**" | ||
- "**.png" | ||
- "**.jpg" | ||
- "**.gif" | ||
- "gulpfile.js" | ||
- "composer.lock" | ||
- ".phpcs.xml.dist" | ||
- "**.json" | ||
- "**.jshintrc" | ||
- "**.jshintignore" | ||
- "**.svnignore" | ||
- "**.travis.yml" | ||
- "**.gitignore" | ||
- "**.eslintrc.js" | ||
- "**.editorconfig" | ||
- "**.pot" | ||
- "**.txt" | ||
- "**-min.js" | ||
- "**-min.css" | ||
- "**.dist" | ||
- "**.sh" |