diff --git a/PWGJE/JetFinders/o2linter_config b/PWGJE/JetFinders/o2linter_config new file mode 100644 index 00000000000..e69de29bb2d diff --git a/PWGJE/o2linter_config b/PWGJE/o2linter_config new file mode 100644 index 00000000000..72a237f0f25 --- /dev/null +++ b/PWGJE/o2linter_config @@ -0,0 +1,3 @@ +name/function-variable +name/configurable +doc/file diff --git a/PWGUD/Core/SGTrackSelector.h b/PWGUD/Core/SGTrackSelector.h index 1b68ab0ddba..7af7d6051e9 100644 --- a/PWGUD/Core/SGTrackSelector.h +++ b/PWGUD/Core/SGTrackSelector.h @@ -34,7 +34,7 @@ using namespace o2::framework::expressions; template int trackselector(const T& track, const std::vector& params) { - // Ensure the params vector contains all the necessary parameters + // Ensure the params vector contains all the necessary parameters// if (params.size() < 8) { throw std::runtime_error("Insufficient parameters provided"); diff --git a/PWGUD/Core/o2linter_config b/PWGUD/Core/o2linter_config new file mode 100644 index 00000000000..12f73fba488 --- /dev/null +++ b/PWGUD/Core/o2linter_config @@ -0,0 +1 @@ +magic-number diff --git a/Scripts/o2_linter.py b/Scripts/o2_linter.py index fbc4bacc2cd..f5e8ce8c3e2 100644 --- a/Scripts/o2_linter.py +++ b/Scripts/o2_linter.py @@ -208,7 +208,7 @@ def get_tolerated_tests(path: str) -> "list[str]": if path_tests.is_file(): with path_tests.open() as content: tests = [line.strip() for line in content.readlines() if line.strip()] - print(f"{path}:0: info: Tolerating tests from {path_tests}. {tests}") + print(f"{path}:1: info: Tolerating tests from {path_tests}. {tests}") break return tests @@ -249,7 +249,7 @@ def is_disabled(self, line: str, prefix_comment="//") -> bool: def print_error(self, path: str, line: Union[int, None], message: str): """Format and print error message.""" # return # Use to suppress error messages. - line = line or 0 + line = line or 1 # terminal format print(f"{path}:{line}: {message_levels[self.severity_current]}: {message} [{self.name}]") if github_mode and not self.tolerated: # Annotate only not tolerated issues.