@larriereguichet/comment-dup-check 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +5 -0
  2. package/package.json +6 -1
package/README.md CHANGED
@@ -10,8 +10,13 @@ longest first.
10
10
  npm install --save-dev --save-exact @larriereguichet/comment-dup-check
11
11
  npx comment-dup-check src # the pathspecs git ls-files gets (default: src)
12
12
  npx comment-dup-check src --words 8 --top 20
13
+ npx comment-dup-check src --exit-code # 1 when it found something, for a lint step
13
14
  ```
14
15
 
16
+ Without `--exit-code` it reports and leaves 0, which is what you want while reading the output.
17
+ A gate needs the opposite: a step that only prints can never fail, so the duplication it finds
18
+ depends on someone reading the log.
19
+
15
20
  A backticked citation becomes a placeholder before matching:
16
21
  two blocks naming one identifier are not the target, two blocks arguing one rule are.
17
22
  Production against production is listed; what a test shares is counted, not listed.
package/package.json CHANGED
@@ -1,8 +1,13 @@
1
1
  {
2
2
  "name": "@larriereguichet/comment-dup-check",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Where the same rule is written twice: the phrases of ten words or more that two comment blocks share.",
5
5
  "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://gitlab.com/larriereguichet/practices.git",
9
+ "directory": "packages/comment-dup-check"
10
+ },
6
11
  "author": "lutangar",
7
12
  "keywords": [
8
13
  "comments",