File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
src/main/java/com/checkmarx/intellij/inspections Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 22# Each line is a file pattern followed by one or more owners
33
44# Specify the default owners for the entire repository
5- * @ OrShamirCM @ AlvoBen @ pedrompflopes
5+ * @ AlvoBen @ greensd4 @ miryamfoiferCX
Original file line number Diff line number Diff line change @@ -144,7 +144,11 @@ private String escapeHtml(String text) {
144144 private TextRange getTextRangeForLine (Document document , int lineNumber ) {
145145 int startOffset = document .getLineStartOffset (lineNumber - 1 );
146146 int endOffset = Math .min (document .getLineEndOffset (lineNumber - 1 ), document .getTextLength ());
147- return new TextRange (startOffset , endOffset );
147+
148+ String lineText = document .getText (new TextRange (startOffset , endOffset ));
149+ int trimmedStartOffset = startOffset + (lineText .length () - lineText .stripLeading ().length ());
150+
151+ return new TextRange (trimmedStartOffset , endOffset );
148152 }
149153
150154 /**
You can’t perform that action at this time.
0 commit comments