Skip to content

Commit

Permalink
Merge pull request #111 from pulsar-edit/codacy-config
Browse files Browse the repository at this point in the history
Add Codacy and Friends Configuration
  • Loading branch information
confused-Techie authored Dec 15, 2023
2 parents 571e2ca + f5417f5 commit 32a2833
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .codacy.yaml
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
#
38 changes: 38 additions & 0 deletions .eslintrc.js
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"
}
};

0 comments on commit 32a2833

Please sign in to comment.