Skip to content

Commit

Permalink
fix: added copy/paste code detector
Browse files Browse the repository at this point in the history
  • Loading branch information
lemon-mario committed Mar 12, 2019
1 parent 84de13f commit 3d2e6ad
Show file tree
Hide file tree
Showing 23 changed files with 1,610 additions and 566 deletions.
15 changes: 9 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,27 @@ jobs:
keys:
- v1-dependencies-{{ checksum "package-lock.json" }}
- run:
name: Installing Dependencies
name: Installing dependencies
command: npm install
- run:
name: Pruning Dependencies
name: Pruning dependencies
command: npm prune
- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package-lock.json" }}
- run:
name: Compiling Code
name: Compiling code
command: npm run build
- run:
name: Testing Code
name: Testing code
command: npm run test
- run:
name: Linting Code
name: Linting code
command: npm run lint
- run:
name: Checking code duplication
command: npm run duplication
- deploy:
name: Semantic Release
name: Semantic release
command: npm run semantic-release
6 changes: 6 additions & 0 deletions .jscpd.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"threshold": 5,
"reporters": ["console", "badge"],
"absolute": true,
"gitignore": true
}
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
# foundation

[![CircleCI](https://circleci.com/gh/js-items/foundation.svg?style=svg)](https://circleci.com/gh/js-items/foundation)
[![codecov](https://codecov.io/gh/js-items/foundation/branch/master/graph/badge.svg)](https://codecov.io/gh/js-items/foundation)
![GitHub tag (latest SemVer)](https://img.shields.io/github/tag/js-items/foundation.svg)
![jscpd](report/jscpd-badge.svg)
[![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)

- Provides set of interfaces, utils and tests for concrete implementations of js-items repositories
Provides set of interfaces, utils and tests for concrete implementations of js-items repositories

## Installation

`npm i -D @js-items/foundation`

This package is heavily inspired by:

- [js-entity-repos](https://github.com/js-entity-repos)

Credits:
- [ryansmith94](https://github.com/ryansmith94)

- [ryansmith94](https://github.com/ryansmith94)
2 changes: 1 addition & 1 deletion dist/functions/deleteItems/test.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Options from "../../interfaces/Options";
import { Options } from "../../interfaces";
import { TestItem } from "../utils/testItem";
declare const _default: ({ facade }: Options<TestItem>) => void;
export default _default;
60 changes: 36 additions & 24 deletions dist/functions/deleteItems/test.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/functions/deleteItems/test.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

107 changes: 60 additions & 47 deletions dist/functions/getItems/subtests/runPaginationTests.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3d2e6ad

Please sign in to comment.