Skip to content
This repository was archived by the owner on Jul 19, 2025. It is now read-only.

Commit 8c8a990

Browse files
committed
update README
1 parent 72a6353 commit 8c8a990

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,11 @@ duplication, try raising the threshold. If you suspect that the engine isn't
4444
catching enough duplication, try lowering the threshold. The best setting tends
4545
to differ from language to language.
4646
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
48+
reports: blocks that are identical to each other, and blocks that are
49+
structurally similar but differ in content.
50+
51+
To adjust these thresholds, you can add `identical_mass_threshold` and `similar_mass_threshold` keys with your preferred value for
4852
an enabled language:
4953

5054
```yaml
@@ -54,11 +58,15 @@ engines:
5458
config:
5559
languages:
5660
ruby:
57-
mass_threshold: 20
61+
identical_mass_threshold: 20
62+
similar_mass_threshold: 30
5863
javascript:
5964
```
6065

61-
Note that you have the update the YAML structure under the `langauges` key to
66+
If you would like to use the same threshold for both identical & similar issues,
67+
you can just set the `mass_threshold` key.
68+
69+
Note that you have to update the YAML structure under the `langauges` key to
6270
the Hash type to support extra configuration.
6371

6472
[codeclimate]: https://codeclimate.com/dashboard

0 commit comments

Comments
 (0)