Skip to content

Commit 21967b7

Browse files
authored
Merge pull request #63 from firewave/info
fixed "information" messages not being shown at all
2 parents 3ca3e74 + ba2947a commit 21967b7

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ Deployment.
6969
- Properly handle `debug` messages generated by `--debug-warnings`. (Contribution by @firewave)
7070
- Added `.cl`, `.hxx`, `.tpp` and `.txx` to list of supported file extensions - now matches the ones supported by Cppcheck internally. (Contribution by @firewave)
7171
- Internally suppress `unusedFunction` and `unusedStructMember` (for header files only) warnings to avoid false positives. (Contribution by @firewave)
72+
- Fixed `information` messages not being shown at all. (Contribution by @firewave)
7273

7374
### 1.5.1 - 2020-11-12
7475

resources/META-INF/plugin.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
- Properly handle "debug" messages generated by --debug-warnings. (Contribution by @firewave)
6868
- Added .cl, .hxx, .tpp and .txx to list of supported file extensions - now matches the ones supported by Cppcheck internally. (Contribution by @firewave)
6969
- Internally suppress "unusedFunction" and "unusedStructMember" (for header files only) warnings to avoid false positives. (Contribution by @firewave)
70+
- Fixed "information" messages not being shown at all. (Contribution by @firewave)
7071
]]>
7172
</change-notes>
7273

src/com/github/johnthagen/cppcheck/CppCheckInspectionImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ private static ProblemHighlightType severityToHighlightType(@NotNull final Strin
4444
case "performance":
4545
case "portability":
4646
case "debug":
47-
return ProblemHighlightType.WEAK_WARNING;
47+
// INFORMATION problems are not shown in the IDE at all so we need to treat them as weak warnings
4848
case "information":
49-
return ProblemHighlightType.INFORMATION;
49+
return ProblemHighlightType.WEAK_WARNING;
5050

5151
// If the severity is not understood (changes in Cppcheck), return ERROR.
5252
default:

0 commit comments

Comments
 (0)