You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 19, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+8-3Lines changed: 8 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,9 @@ duplication, try raising the threshold. If you suspect that the engine isn't
44
44
catching enough duplication, try lowering the threshold. The best setting tends
45
45
to differ from language to language.
46
46
47
-
To adjust this setting, add a `mass_threshold` key with your preferred value for
47
+
You can set thresholds for the two different types of duplication this engine reports: blocks that are identical to each other, and blocks that are structurally similar but differ in content.
48
+
49
+
To adjust these thresholds, you can add `identical_mass_threshold` and `similar_mass_threshold` keys with your preferred value for
48
50
an enabled language:
49
51
50
52
```yaml
@@ -54,11 +56,14 @@ engines:
54
56
config:
55
57
languages:
56
58
ruby:
57
-
mass_threshold: 20
59
+
identical_mass_threshold: 20
60
+
similar_mass_threshold: 30
58
61
javascript:
59
62
```
60
63
61
-
Note that you have the update the YAML structure under the `langauges` key to
64
+
If you would like to use the same threshold for both idential & similar issues, you can just set the `mass_threshold` key.
65
+
66
+
Note that you have to update the YAML structure under the `langauges` key to
0 commit comments