![]() ![]() ![]() Then we combined both rules in a single subset, separating the names with a comma. We extended our configuration by adding a second definition and named it e2. We've just defined a subset of multicriteria. e2.resourceKey=com/baeldung/sonar/*.java Sometimes Sonar demo works without a crash (full version crashes every time while loading the saved Sonar project, if the Linuxsampler synth is active). # Too many parameters - ignore the whole package Sonar will crash randomly after loading the saved Sonar project, which contains the Linuxsampler track, if it uses the changed ASIO driver. Using this approach, we can build a complex configuration that excludes particular rules across multiple files: =e1,e2 Our definition can mix exclusions using rule identifiers and file matching patterns together, respectively in ruleKey and resourceKey properties preceded by the e1 name tag. We've just declared our very first multicriteria, named e1. We excluded the java:S106 rule for the SonarExclude class. Let's define and add the sonar-project.properties file to our resource dir: =e1 We can also define exclusion rules in the sonar-project.properties file using analysis properties.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |