Skip to content
This repository was archived by the owner on Aug 6, 2025. It is now read-only.

Commit 9b0a246

Browse files
authored
Merge pull request #115 from NextGenContributions/feat/phuongfi91/annotation-message-symbol
Fixes #114: Add problem's symbol to annotation
2 parents 39c5808 + 270c873 commit 9b0a246

File tree

1 file changed

+2
-1
lines changed
  • src/main/java/com/leinardi/pycharm/pylint/checker

1 file changed

+2
-1
lines changed

src/main/java/com/leinardi/pycharm/pylint/checker/Problem.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ public Problem(@NotNull final PsiElement target,
5858
}
5959

6060
public void createAnnotation(@NotNull AnnotationHolder holder, @NotNull HighlightSeverity severity) {
61-
String message = PylintBundle.message("inspection.message", getMessage());
61+
String formattedMsg = String.format("%s [%s]", getMessage(), getSymbol());
62+
String message = PylintBundle.message("inspection.message", formattedMsg);
6263
AnnotationBuilder annotation = holder
6364
.newAnnotation(severity, message)
6465
.range(target.getTextRange());

0 commit comments

Comments
 (0)