Skip to content

Commit

Permalink
feat(@agora): AG-35 duplicated code
Browse files Browse the repository at this point in the history
inserted duplicated code check in ci-cd
  • Loading branch information
g3k0 committed Mar 25, 2024
1 parent 32e14d8 commit b4eaa49
Show file tree
Hide file tree
Showing 5 changed files with 636 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
- develop

jobs:
build:
codeQuality:

runs-on: ubuntu-latest

Expand All @@ -30,5 +30,8 @@ jobs:
- name: Run linter
run: npm run lint

- name: Run duplications check
run: npm run duplicated

- name: Run unit tests
run: npm run test-contracts
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ node_modules
# solidity-coverage files
/coverage
/coverage.json

# reports folder
report
19 changes: 19 additions & 0 deletions .jscpd.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"path": ["./"],
"silent": false,
"format": ["console"],
"ignore": [
"**/*.min.js",
"**/*.map",
"**/*.spec.js",
"**/*.test.js",
"**/node_modules"
],
"ignoreCase": true,
"threshold": 10,
"reporters": ["console"],
"languages": ["javascript", "typescript"],
"gitignore": true,
"failOnDuplication": false
}

Loading

0 comments on commit b4eaa49

Please sign in to comment.