Skip to content

Commit b11e271

Browse files
authored
Merge pull request #2181 from guwirth/td-3
improve config description
2 parents 31e8729 + 956f97a commit b11e271

File tree

10 files changed

+16
-3
lines changed

10 files changed

+16
-3
lines changed

cxx-sensors/src/main/java/org/sonar/cxx/sensors/other/CxxOtherRepository.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ public void define(Context context) {
7070
// errors are critical and can cause that the server cannot be started anymore.
7171
var xml = ruleDefs.substring(0, Math.min(ruleDefs.length(), 120))
7272
.replaceAll("\\R", "").replaceAll(">[ ]+<", "><");
73-
LOG.error("Cannot load rule definions for 'sonar.cxx.other.rules', '{}', XML '{}...'", e.getMessage(), xml);
73+
LOG.error("Cannot load rule definions for 'sonar.cxx.other.rules', '{}', XML '{}...', skipping",
74+
e.getMessage(), xml);
7475
}
7576
}
7677
}

cxx-sensors/src/main/java/org/sonar/cxx/sensors/other/CxxOtherSensor.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ public static List<PropertyDefinition> properties() {
5555
.description(
5656
"Comma-separated paths (absolute or relative to the project base directory) to `*.xml` files with"
5757
+ " `other` issues. Ant patterns are accepted for relative paths."
58+
+ " In the SonarQube UI, enter one entry per field."
5859
)
5960
.category("CXX External Analyzers")
6061
.subCategory(subcategory)

cxx-sensors/src/main/java/org/sonar/cxx/sensors/pclint/CxxPCLintSensor.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ public static List<PropertyDefinition> properties() {
7070
.description(
7171
"Comma-separated paths (absolute or relative to the project base directory) to `*.xml` files with"
7272
+ " `PC-lint` issues. Ant patterns are accepted for relative paths."
73+
+ " In the SonarQube UI, enter one entry per field."
7374
)
7475
.category("CXX External Analyzers")
7576
.subCategory("PC-lint")

cxx-sensors/src/main/java/org/sonar/cxx/sensors/rats/CxxRatsSensor.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ public static List<PropertyDefinition> properties() {
5656
.description(
5757
"Comma-separated paths (absolute or relative to the project base directory) to `*.xml` files with"
5858
+ " `RATS` issues. Ant patterns are accepted for relative paths."
59+
+ " In the SonarQube UI, enter one entry per field."
5960
)
6061
.category("CXX External Analyzers")
6162
.subCategory("RATS")

cxx-sensors/src/main/java/org/sonar/cxx/sensors/tests/dotnet/CxxUnitTestResultsImportSensor.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ public static List<PropertyDefinition> properties() {
5757
"Paths to VSTest reports. Multiple paths may be comma-delimited, or included via wildcards."
5858
+ " Note that while measures such as the number of tests are displayed at project level, no drilldown"
5959
+ " is available."
60+
+ " In the SonarQube UI, enter one entry per field."
6061
)
6162
.category(category)
6263
.subCategory("Visual C++")
@@ -69,6 +70,7 @@ public static List<PropertyDefinition> properties() {
6970
"Paths to NUnit execution reports. Multiple paths may be comma-delimited, or included via wildcards."
7071
+ " Note that while measures such as the number of tests are displayed at project level, no drilldown"
7172
+ " is available."
73+
+ " In the SonarQube UI, enter one entry per field."
7274
)
7375
.category(category)
7476
.subCategory("NUnit")

cxx-sensors/src/main/java/org/sonar/cxx/sensors/tests/xunit/CxxXunitSensor.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ public static List<PropertyDefinition> properties() {
5858
+ " Each path may be absolute or relative to the project base directory. Ant patterns are accepted for"
5959
+ " relative paths. Note that while measures such as the number of tests are displayed at project level,"
6060
+ " no drilldown is available."
61+
+ " In the SonarQube UI, enter one entry per field."
6162
)
6263
.category("CXX External Analyzers")
6364
.subCategory("xUnit")

cxx-sensors/src/main/java/org/sonar/cxx/sensors/valgrind/CxxValgrindSensor.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ public static List<PropertyDefinition> properties() {
5151
.description(
5252
"Comma-separated paths (absolute or relative to the project base directory) to `*.xml` files with"
5353
+ " `Valgrind` issues. Ant patterns are accepted for relative paths."
54+
+ " In the SonarQube UI, enter one entry per field."
5455
)
5556
.category("CXX External Analyzers")
5657
.subCategory("Valgrind")

cxx-sensors/src/main/java/org/sonar/cxx/sensors/veraxx/CxxVeraxxSensor.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ public static List<PropertyDefinition> properties() {
5252
.description(
5353
"Comma-separated paths (absolute or relative to the project base directory) to `*.xml` files with"
5454
+ " `Vera++` issues. Ant patterns are accepted for relative paths."
55+
+ " In the SonarQube UI, enter one entry per field."
5556
)
5657
.category("CXX External Analyzers")
5758
.subCategory("Vera++")

sonar-cxx-plugin/src/main/java/org/sonar/plugins/cxx/CxxLanguage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public static List<PropertyDefinition> properties() {
7272
.multiValues(true)
7373
.description(
7474
"List of suffixes for files to analyze (e.g. `.cxx,.cpp,.cc,.c,.hxx,.hpp,.hh,.h`)."
75-
+ " In the SonarQube UI, enter the file suffixes into the fields one by one."
75+
+ " In the SonarQube UI, enter one file suffixe per field."
7676
+ " To turn off the CXX language, set the first entry to `-`."
7777
)
7878
.category("CXX")

sonar-cxx-plugin/src/main/java/org/sonar/plugins/cxx/CxxSquidSensor.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ public static List<PropertyDefinition> properties() {
123123
.description(
124124
"Comma-separated list of directories where the preprocessor looks for include files."
125125
+ " The path may be either absolute or relative to the project base directory."
126+
+ " In the SonarQube UI, enter one entry per field."
126127
)
127128
.category("CXX")
128129
.subCategory("(2) Preprocessor")
@@ -139,6 +140,7 @@ public static List<PropertyDefinition> properties() {
139140
+ " on the first line of every source file. If you add multiple files they are included in the order they"
140141
+ " are listed from left to right. The path may be either absolute or relative to the"
141142
+ " project base directory."
143+
+ " In the SonarQube UI, enter one entry per field."
142144
)
143145
.onQualifiers(Qualifiers.PROJECT)
144146
.build(),
@@ -171,6 +173,7 @@ public static List<PropertyDefinition> properties() {
171173
"Read one ore more MSBuild .LOG files to automatically extract the required macros `sonar.cxx.defines`"
172174
+ " and include directories `sonar.cxx.includeDirectories`. The path may be either absolute or relative"
173175
+ " to the project base directory."
176+
+ " In the SonarQube UI, enter one entry per field."
174177
)
175178
.category("CXX")
176179
.subCategory("(2) Preprocessor")
@@ -200,10 +203,11 @@ public static List<PropertyDefinition> properties() {
200203
.build(),
201204
PropertyDefinition.builder(CxxPublicApiVisitor.API_FILE_SUFFIXES_KEY)
202205
.defaultValue(CxxPublicApiVisitor.API_DEFAULT_FILE_SUFFIXES)
203-
.name("Pulic API File suffixes")
206+
.name("Public API File suffixes")
204207
.multiValues(true)
205208
.description(
206209
"Comma-separated list of suffixes for files to be searched for API comments and to create API metrics."
210+
+ " In the SonarQube UI, enter one entry per field."
207211
)
208212
.category("CXX")
209213
.subCategory("(3) Metrics")

0 commit comments

Comments
 (0)