Name | Key | Default value | Description |
|---|---|---|---|
Minimum tokens | sonar.cpd.cs.minimumTokens | 100 | The number of duplicate tokens above which a block is considered as a duplication in a C# program. |
Ignore literals | sonar.cpd.cs.ignoreLiteral | true | If true, CPD ignores literal value differences when evaluating a duplicate block. This means that 'my first text'; and 'my second text'; will be seen as equivalent. |
Ignore header comments | sonar.cs.ignoreHeaderComments | true | If set to false, comments that starts at line 0 of a source file (generally license headers) won't be ignored and will be counted as code comments. |