Skip to content

Commit b5c41ec

Browse files
committed
Revert fix
1 parent 186b2a6 commit b5c41ec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Scripts/o2_linter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ def is_disabled(self, line: str, prefix_comment="//") -> bool:
249249
def print_error(self, path: str, line: Union[int, None], message: str):
250250
"""Format and print error message."""
251251
# return # Use to suppress error messages.
252-
line = line or 1
252+
line = line or 0
253253
# terminal format
254254
print(f"{path}:{line}: {message_levels[self.severity_current]}: {message} [{self.name}]")
255255
if github_mode and not self.tolerated: # Annotate only not tolerated issues.

0 commit comments

Comments
 (0)