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.
This commit is contained in:
@@ -105,6 +105,9 @@ def line_has_bad_flag(line, flagre):
|
||||
return False
|
||||
if "grains" + result in line:
|
||||
return False
|
||||
# These are usually yaml definitions
|
||||
if result.endswith(":"):
|
||||
return False
|
||||
return True
|
||||
return False
|
||||
|
||||
|
Reference in New Issue
Block a user