From: Belen Pruvost Date: Fri, 5 Nov 2021 09:55:58 +0000 (+0100) Subject: SONAR-15622 - Change Exclusions subcategory order to reflect everyday usage X-Git-Tag: 9.2.0.49834~68 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7671f8a35b9a95a7fb7095722eaf5e982c0a65ab;p=sonarqube.git SONAR-15622 - Change Exclusions subcategory order to reflect everyday usage --- diff --git a/server/sonar-docs/src/pages/project-administration/narrowing-the-focus.md b/server/sonar-docs/src/pages/project-administration/narrowing-the-focus.md index 05bd2a03e8a..2b0d85d80c5 100644 --- a/server/sonar-docs/src/pages/project-administration/narrowing-the-focus.md +++ b/server/sonar-docs/src/pages/project-administration/narrowing-the-focus.md @@ -8,9 +8,9 @@ If SonarQube's results aren't relevant, no one will want to use it. That's why p SonarQube gives you several options for configuring exactly what will be analyzed. You can * completely ignore some files or directories -* exclude files/directories from Issues detection (specific rules or all of them) but analyze all other aspects -* exclude files/directories from Duplications detection but analyze all other aspects * exclude files/directories from Coverage calculations but analyze all other aspects +* exclude files/directories from Duplications detection but analyze all other aspects +* exclude files/directories from Issues detection (specific rules or all of them) but analyze all other aspects You can make these changes globally or at a project level. At the global level, the navigation path is **Administration > General Settings > Analysis Scope**. At the project level, the navigation path is **Project Settings > General Settings > Analysis Scope** @@ -67,6 +67,18 @@ You can set these properties at both the project and global levels. See the Patterns section below for more details on the syntax to use in these inputs. +## Ignore Code Coverage + +You can prevent some files from being taken into account for code coverage by unit tests. + +To do so, go to **Project Settings > General Settings > Analysis Scope > Code Coverage** and set the *Coverage Exclusions* property. See the Patterns section for more details on the syntax. + +## Ignore Duplications + +You can prevent some files from being checked for duplications. + +To do so, go to **Project Settings > General Settings > Analysis Scope > Duplications** and set the *Duplication Exclusions* property. See the Patterns section for more details on the syntax. + ## Ignore Issues You can have SonarQube ignore issues on certain components and against certain coding rules. Go to **Project Settings > General Settings > Analysis Scope > Issues**. @@ -122,15 +134,3 @@ KEY #1 = `cobol:COBOL.GotoTransferControlOutsideCurrentModuleCheck` PATH #1 = `bank/creditcard/**/*` KEY #2 = `cobol:COBOL.GotoTransferControlOutsideCurrentModuleCheck` PATH #2 = `bank/bankcard/**/*` - -## Ignore Duplications - -You can prevent some files from being checked for duplications. - -To do so, go to **Project Settings > General Settings > Analysis Scope > Duplications** and set the *Duplication Exclusions* property. See the Patterns section for more details on the syntax. - -## Ignore Code Coverage - -You can prevent some files from being taken into account for code coverage by unit tests. - -To do so, go to **Project Settings > General Settings > Analysis Scope > Code Coverage** and set the *Coverage Exclusions* property. See the Patterns section for more details on the syntax. \ No newline at end of file diff --git a/sonar-core/src/main/resources/org/sonar/l10n/core.properties b/sonar-core/src/main/resources/org/sonar/l10n/core.properties index 3ee7dde2d20..b8be20251a8 100644 --- a/sonar-core/src/main/resources/org/sonar/l10n/core.properties +++ b/sonar-core/src/main/resources/org/sonar/l10n/core.properties @@ -1303,17 +1303,17 @@ property.sonar.global.exclusions.name=Global Source File Exclusions property.sonar.global.exclusions.description=Patterns used to exclude some source files from analysis. They apply to every project and cannot be overridden. property.sonar.global.test.exclusions.name=Global Test File Exclusions property.sonar.global.test.exclusions.description=Patterns used to exclude some test files from analysis. They apply to every project and cannot be overridden. -property.category.exclusions.files=Files +property.category.exclusions.files=A. File Exclusions property.category.exclusions.files.description=Configure the files that should be completely ignored by the analysis. property.sonar.skippedModules.name=Module Exclusions property.sonar.skippedModules.description=This property is deprecated since version 4.3 and should not be used anymore. property.sonar.includedModules.name=Module Inclusions property.sonar.includedModules.description=This property is deprecated since version 4.3 and should not be used anymore. -property.category.exclusions.issues=Issues +property.category.exclusions.issues=D. Issue Exclusions property.category.exclusions.issues.description=Configure the conditions under which issues should not be reported. -property.category.exclusions.duplications=Duplications +property.category.exclusions.duplications=C. Duplication Exclusions property.category.exclusions.duplications.description=Configure the files that should be ignored by duplication detection. -property.category.exclusions.coverage=Code Coverage +property.category.exclusions.coverage=B. Code Coverage Exclusions property.category.exclusions.coverage.description=Configure the files that should be ignored by code coverage calculations. property.sonar.coverage.exclusions.name=Coverage Exclusions property.sonar.coverage.exclusions.description=Patterns used to exclude some files from coverage report.