Commit f3fd2e10 authored by Eric Paris's avatar Eric Paris

verify-flags-underscore.py: ignore if trailed by :

These are often yaml definitions, and thus not usages of kubernetes flags. Not necessarily always, but usually.
parent d1ba0bb6
...@@ -105,6 +105,9 @@ def line_has_bad_flag(line, flagre): ...@@ -105,6 +105,9 @@ def line_has_bad_flag(line, flagre):
return False return False
if "grains" + result in line: if "grains" + result in line:
return False return False
# These are usually yaml definitions
if result.endswith(":"):
return False
return True return True
return False return False
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment