Module Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Call NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Print BinOpAdd BinOpAdd BinOpAdd AttributeLoad NameLoad attr Str NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Print BinOpAdd Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Print BinOpAdd BinOpAdd BinOpAdd AttributeLoad NameLoad attr Str NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Print BinOpAdd BinOpAdd BinOpAdd AttributeLoad NameLoad attr Str NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list NameLoad ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Call NameLoad keyword NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad Raise NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If CompareLt Call AttributeLoad NameLoad attr Str Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body For NameStore ListLoad Str Str Str body If Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Num If BoolOpOr UnaryOpNot NameLoad UnaryOpNot NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If BoolOpOr CompareGt Call AttributeLoad NameLoad attr Str Num CompareGt Call AttributeLoad NameLoad attr Str Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Dict For NameStore AttributeLoad NameLoad attr body If Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr body Assign SubscriptStore NameLoad Index NameLoad Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad orelse Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad With Call NameLoad NameLoad NameStore body Assign NameStore Call AttributeLoad NameLoad attr NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad Raise NameLoad decorator_list decorator_list FunctionDef arguments args defaults body Expr Str Pass decorator_list Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Assign NameStore Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Num handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Num decorator_list Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str keyword Str keyword Str FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Assign NameStore Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Num handlers ExceptHandler type TupleLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Num decorator_list Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad
N/A N/A sys N/A os N/A re N/A json N/A jsonschema N/A click singleton.singleton Singleton dockerfile_parse DockerfileParser colorama init Fore Style Logger N/A object N/A N/A Simple Singleton logger with pretty output __init__ N/A N/A self N/A N/A N/A N/A init N/A N/A self has_failures False N/A warn N/A N/A self str N/A N/A N/A N/A N/A N/A N/A Fore YELLOW    [WARN]  str N/A Style RESET_ALL N/A info N/A N/A self str N/A N/A N/A N/A ========>  str N/A success N/A N/A self str N/A N/A N/A N/A N/A N/A N/A Fore GREEN [SUCCESS]  str N/A Style RESET_ALL N/A error N/A N/A self str N/A N/A N/A N/A N/A N/A N/A Fore RED   [ERROR]  str N/A Style RESET_ALL N/A N/A self has_failures True N/A N/A Singleton DockerfileNotFoundError N/A Exception N/A N/A N/A SchemaNotFoundError N/A Exception N/A N/A N/A DockerfileLabelParser N/A object N/A N/A Base class for parsing Dockerfile __init__ N/A N/A self path N/A N/A N/A N/A self logger N/A N/A Logger instance N/A N/A N/A N/A os path exists path N/A N/A parser N/A DockerfileParser path path N/A N/A self labels N/A parser labels N/A N/A N/A N/A N/A self logger error N/A Can't open Dockerfile at '%s' path N/A DockerfileNotFoundError N/A N/A DockerfileLabelLint N/A DockerfileLabelParser N/A N/A Class with methods for checking Docker official LABEL rules namespaced_labels N/A N/A self N/A N/A N/A N/A N/A N/A self logger info Check all labels have namespaces N/A key N/A N/A N/A self labels keys N/A N/A N/A N/A N/A key count . 2 N/A N/A N/A N/A N/A self logger warn N/A Label '%s' should use a namespace based on reverse DNS notation key N/A reserved_namespaces N/A N/A self N/A N/A N/A N/A N/A N/A self logger info Check labels don't use reserved namespaces N/A key N/A N/A N/A self labels keys N/A N/A reservation N/A com.docker io.docker org.dockerproject N/A N/A N/A N/A key startswith reservation N/A N/A N/A N/A N/A self logger error N/A Label '%s' is reserved for internal use reservation N/A valid_characters N/A N/A self N/A N/A N/A N/A N/A N/A self logger info Check labels only use valid characters N/A key N/A N/A N/A self labels keys N/A N/A match N/A N/A re match ^[a-z0-9-.]+$ key N/A N/A match N/A N/A N/A N/A N/A self logger error N/A Label '%s' must consist of lower-cased alphanumeric characters, dots and dashes key N/A valid_start_and_end_characters N/A N/A self N/A N/A N/A N/A N/A N/A self logger info Check labels start and end with alpanumeric characters N/A key N/A N/A N/A self labels keys N/A N/A start N/A N/A re match [a-z0-9] N/A key N/A 0 N/A end N/A N/A re match [a-z0-9] N/A key N/A -1 N/A N/A N/A start N/A end N/A N/A N/A N/A N/A self logger error N/A Label '%s' must start and end with lower-cased alphanumeric characters key N/A consecutive_dividers N/A N/A self N/A N/A N/A N/A N/A N/A self logger info Check labels for double dots and dashes N/A key N/A N/A N/A self labels keys N/A N/A N/A N/A N/A N/A key find .. -1 N/A N/A N/A key find -- -1 N/A N/A N/A N/A N/A self logger error N/A Label '%s' must not contain consecutive dots or dashes key N/A N/A DockerfileLabelSchema N/A DockerfileLabelParser N/A N/A Class for validating Docker LABELS against a JSON schema validate N/A N/A self schema N/A N/A N/A N/A N/A N/A self logger info N/A Check labels based on schema in '%s' schema N/A N/A N/A N/A os path exists schema N/A N/A data N/A N/A key N/A self labels N/A N/A N/A N/A N/A N/A self labels N/A key isdigit N/A N/A N/A data N/A key N/A int N/A N/A self labels N/A key N/A N/A N/A data N/A key N/A N/A self labels N/A key N/A N/A open schema schema_file N/A N/A schema_data N/A N/A json load schema_file N/A N/A N/A N/A N/A jsonschema validate data schema_data N/A N/A N/A N/A jsonschema ValidationError N/A e N/A N/A N/A N/A N/A self logger error N/A str e N/A N/A N/A jsonschema SchemaError N/A e N/A N/A N/A N/A N/A self logger error N/A str e N/A N/A N/A N/A N/A self logger error N/A Schema file '%s' not found schema N/A SchemaNotFoundError N/A N/A cli N/A N/A N/A N/A N/A Utilities for ensuring LABELS in Dockerfiles are well maintained N/A N/A N/A N/A click group lint N/A N/A dockerfile N/A N/A N/A Check for common issues with Dockerfile LABELS N/A N/A N/A linter N/A DockerfileLabelLint path dockerfile N/A N/A N/A linter namespaced_labels N/A N/A N/A linter reserved_namespaces N/A N/A N/A linter valid_characters N/A N/A N/A linter valid_start_and_end_characters N/A N/A N/A linter consecutive_dividers N/A logger N/A N/A Logger instance N/A N/A logger has_failures N/A N/A N/A N/A sys exit 2 N/A N/A N/A DockerfileNotFoundError N/A N/A N/A N/A sys exit 3 N/A N/A N/A click command N/A N/A click option --dockerfile default Dockerfile help Path to the Dockerfile validate N/A N/A dockerfile schema N/A N/A N/A Validate Dockerfile LABELS based on a JSON schema N/A N/A N/A validator N/A DockerfileLabelSchema path dockerfile N/A N/A N/A validator validate schema schema N/A logger N/A N/A Logger instance N/A N/A logger has_failures N/A N/A N/A N/A sys exit 2 N/A N/A N/A N/A SchemaNotFoundError DockerfileNotFoundError N/A N/A N/A N/A sys exit 3 N/A N/A N/A click command N/A N/A click option --dockerfile default Dockerfile help Path to the Dockerfile N/A N/A click option --schema default schema.json help Path to the JSON schema N/A N/A N/A cli add_command lint N/A N/A N/A cli add_command validate