Skip to content

Commit 3d2e6ad

Browse files
committed
fix: added copy/paste code detector
1 parent 84de13f commit 3d2e6ad

File tree

23 files changed

+1610
-566
lines changed

23 files changed

+1610
-566
lines changed

.circleci/config.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,24 +18,27 @@ jobs:
1818
keys:
1919
- v1-dependencies-{{ checksum "package-lock.json" }}
2020
- run:
21-
name: Installing Dependencies
21+
name: Installing dependencies
2222
command: npm install
2323
- run:
24-
name: Pruning Dependencies
24+
name: Pruning dependencies
2525
command: npm prune
2626
- save_cache:
2727
paths:
2828
- node_modules
2929
key: v1-dependencies-{{ checksum "package-lock.json" }}
3030
- run:
31-
name: Compiling Code
31+
name: Compiling code
3232
command: npm run build
3333
- run:
34-
name: Testing Code
34+
name: Testing code
3535
command: npm run test
3636
- run:
37-
name: Linting Code
37+
name: Linting code
3838
command: npm run lint
39+
- run:
40+
name: Checking code duplication
41+
command: npm run duplication
3942
- deploy:
40-
name: Semantic Release
43+
name: Semantic release
4144
command: npm run semantic-release

.jscpd.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"threshold": 5,
3+
"reporters": ["console", "badge"],
4+
"absolute": true,
5+
"gitignore": true
6+
}

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,21 @@
11
# foundation
2+
23
[![CircleCI](https://circleci.com/gh/js-items/foundation.svg?style=svg)](https://circleci.com/gh/js-items/foundation)
34
[![codecov](https://codecov.io/gh/js-items/foundation/branch/master/graph/badge.svg)](https://codecov.io/gh/js-items/foundation)
5+
![GitHub tag (latest SemVer)](https://img.shields.io/github/tag/js-items/foundation.svg)
6+
![jscpd](report/jscpd-badge.svg)
47
[![Known Vulnerabilities](https://snyk.io/test/github/js-items/foundation/badge.svg?targetFile=package.json)](https://snyk.io/test/github/js-items/foundation?targetFile=package.json)
58

6-
- Provides set of interfaces, utils and tests for concrete implementations of js-items repositories
9+
Provides set of interfaces, utils and tests for concrete implementations of js-items repositories
710

811
## Installation
12+
913
`npm i -D @js-items/foundation`
1014

1115
This package is heavily inspired by:
16+
1217
- [js-entity-repos](https://github.com/js-entity-repos)
1318

1419
Credits:
15-
- [ryansmith94](https://github.com/ryansmith94)
20+
21+
- [ryansmith94](https://github.com/ryansmith94)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Options from "../../interfaces/Options";
1+
import { Options } from "../../interfaces";
22
import { TestItem } from "../utils/testItem";
33
declare const _default: ({ facade }: Options<TestItem>) => void;
44
export default _default;

dist/functions/deleteItems/test.js

Lines changed: 36 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/functions/deleteItems/test.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/functions/getItems/subtests/runPaginationTests.js

Lines changed: 60 additions & 47 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)