Skip to content

Commit

Permalink
Merge pull request pulsar-edit#141 from pulsar-edit/codacy-config
Browse files Browse the repository at this point in the history
Configuration For Codacy and Friends
  • Loading branch information
confused-Techie authored Nov 16, 2022
2 parents fd151f9 + 4f5f260 commit 7de77d2
Show file tree
Hide file tree
Showing 4 changed files with 442 additions and 13 deletions.
33 changes: 33 additions & 0 deletions .codacy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
engines:
duplication:
minTokenMatch: 80
exclude_paths:
- "./specs/fixtures"
- "./packages/*/spec/fixtures/*"

# 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
# - SpellCheck 0.8.0
# - Stylelint 14.2.0
#
23 changes: 23 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
module.exports = {
env: {
browser: true,
commonjs: true,
es2021: true,
},
extends: ["eslint:recommended", "plugin:node/recommended"],
overrides: [],
parserOptions: {
ecmaVersion: "latest"
},
rules: {
"node/no-unpublished-require": [
"error",
{
allowModules: ["electron"]
}
]
},
globals: {
atom: "writeable"
}
};
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,8 @@
"electron": "12.2.3",
"electron-builder": "23.3.1",
"electron-rebuild": "3.2.7",
"eslint": "^8.27.0",
"eslint-plugin-node": "^11.1.0",
"playwright": "1.22.2",
"playwright-core": "1.22.2",
"random-seed": "0.3.0",
Expand Down
Loading

0 comments on commit 7de77d2

Please sign in to comment.