I works with Sonarqube every day in my job. But, I realized that I don't know what means CPD. Phrases like "INFO: CPD calculation finished", etc. I would like some help to know this.
Copy/paste detection? Wikipedia: CPD. A piece of code is considered duplicated as soon as there are at least 100 duplicated tokens in a row (override with sonar.cpd.${language}.minimumTokens) spread across at least 10 lines of code.
sonar.cpd.exclusions. Comma-delimited list of file path patterns to be excluded from duplication detection.
The project key can be updated (without losing the history on the project) at Project Settings > Update Key. The new key must contain at least one non-digit character. Allowed characters are: 'a' through 'z', 'A' through 'Z', '-' (dash), '_' (underscore), '. ' (dot), ':' (colon) and digits '0' to '9'.
SonarQube (formerly Sonar) is an open-source platform developed by SonarSource for continuous inspection of code quality to perform automatic reviews with static analysis of code to detect bugs, code smells on 29 programming languages.
Copy/paste detection?
Wikipedia: CPD
A piece of code is considered duplicated as soon as there are at least 100 duplicated tokens in a row (override with sonar.cpd.${language}.minimumTokens) spread across at least 10 lines of code
Sonarqube docs: Analysis Parameters
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With