-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #111 from pulsar-edit/codacy-config
Add Codacy and Friends Configuration
- Loading branch information
Showing
2 changed files
with
72 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
engines: | ||
duplication: | ||
minTokenMatch: 80 | ||
exclude_paths: | ||
- "spec/fixtures/**" | ||
- "templates/**" | ||
|
||
# Since Codacy exposes significantly little on the config. | ||
# We can use the rest of this document to solidify our settings. | ||
# | ||
# Quality Settings: (Below are changed values, rest are default) | ||
# * Pull requests won't pass the quality gate when: | ||
# - New issues are over: 15 'critical' | ||
# * Commits won't pass the quality gate: | ||
# - New issues are over: 15 'critical' | ||
# * The repository is below the quality goals when: | ||
# - Issues are over: 20% | ||
# - Complexity is over: 10% | ||
# - File is complex when over: 20 | ||
# - Duplication is over: 30 | ||
# - File is duplicated when over: 1 'cloned block' | ||
# - Coverage is under: 60% | ||
# Enabled Engines: | ||
# - CSSLint 1.0.5 | ||
# - CoffeeLint 2.1.0 | ||
# - ESLint 8.23.1 | ||
# - Hadolint 1.18.2 | ||
# - Jackson Linter 2.10.2 | ||
# - PMD 6.48.0 | ||
# - Semgrep: 1.50.0 | ||
# - ShellCheck 0.8.0 | ||
# - Stylelint 14.2.0 | ||
# |
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,38 @@ | ||
module.exports = { | ||
env: { | ||
browser: false, | ||
commonjs: true, | ||
es2021: true | ||
}, | ||
extends: [ | ||
"eslint:recommended", | ||
"plugin:node/recommended" | ||
], | ||
overrides: [], | ||
parserOptions: { | ||
ecmaVersion: "latest" | ||
}, | ||
rules: { | ||
"space-before-function-paren": [ "error", { | ||
anonymous: "always", | ||
asyncArrow: "always", | ||
named: "never" | ||
}], | ||
"prettier/prettier": "off", | ||
"ember-suave/lines-between-object-propertiess": "off", | ||
"no-empty": "off" | ||
}, | ||
plugins: [], | ||
globals: { | ||
"describe": "readonly", | ||
"it": "readonly", | ||
"runs": "readonly", | ||
"expect": "readonly", | ||
"beforeEach": "readonly", | ||
"afterEach": "readonly", | ||
"silenceOutput": "readonly", | ||
"spyOn": "readonly", | ||
"spyOnToken": "readonly", | ||
"waitsFor": "readonly" | ||
} | ||
}; |