Skip to content

Commit

Permalink
Detect use of obsolete watchdog configuration option (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck committed May 21, 2023
1 parent 6ef2a3e commit cfa7ba7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,12 @@ def is_default(validator, properties, instance, schema):
)
exit_code = 1

if configuration.get("watchdog"):
print(
f"::error file={config}::'watchdog', is obsolete. Use the native Docker HEALTHCHECK directive instead."
)
exit_code = 1

# Checks regarding build file(if found)
for file_type in ("json", "yaml", "yml"):
build = path / f"build.{file_type}"
Expand Down

0 comments on commit cfa7ba7

Please sign in to comment.