We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1db4e20 commit c509393Copy full SHA for c509393
src/coding_style/all/l1_code_line_content.cr
@@ -42,7 +42,7 @@ class CodeLineContent < CodingStyle
42
}
43
content.scan(CONDITION_AND_ASSIGNMENT_REGEX).each { |match|
44
row, _ = get_row_column(content.split("\n"), match.begin)
45
- errors.add(CodingStyleErrorInfo.new(self, file_path, row, _, " (Condition and an assignment on the same line)".magenta))
+ errors.add(CodingStyleErrorInfo.new(self, file_path, row, -1, " (Condition and an assignment on the same line)".magenta))
46
47
content.scan(SEVERAL_SEMI_COLONS).each { |match|
48
if match[0] !~ /#define|for[\s]*\(/
0 commit comments