-
-
Notifications
You must be signed in to change notification settings - Fork 638
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Graduate the Dockerfile linter Hadolint from experimental status.
[ci skip-rust]
- Loading branch information
Showing
5 changed files
with
28 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Copyright 2022 Pants project contributors (see CONTRIBUTORS.md). | ||
# Licensed under the Apache License, Version 2.0 (see LICENSE). | ||
|
||
from pants.backend.docker.lint.hadolint import skip_field | ||
from pants.backend.docker.lint.hadolint.rules import rules as hadolint_rules | ||
from pants.backend.docker.rules import rules as docker_rules | ||
|
||
|
||
def rules(): | ||
return ( | ||
*docker_rules(), | ||
*hadolint_rules(), | ||
*skip_field.rules(), | ||
) |
18 changes: 10 additions & 8 deletions
18
src/python/pants/backend/experimental/docker/lint/hadolint/register.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
# Copyright 2021 Pants project contributors (see CONTRIBUTORS.md). | ||
# Licensed under the Apache License, Version 2.0 (see LICENSE). | ||
|
||
from pants.backend.docker.lint.hadolint import skip_field | ||
from pants.backend.docker.lint.hadolint.rules import rules as hadolint_rules | ||
from pants.backend.docker.rules import rules as docker_rules | ||
from pants.backend.docker.lint.hadolint import register | ||
from pants.base.deprecated import deprecated | ||
|
||
|
||
@deprecated( | ||
"2.11.0.dev0", | ||
( | ||
"The `pants.backend.experimental.docker.lint.hadolint` backend has graduated. Use " | ||
"`pants.backend.docker.lint.hadolint` instead." | ||
), | ||
) | ||
def rules(): | ||
return ( | ||
*docker_rules(), | ||
*hadolint_rules(), | ||
*skip_field.rules(), | ||
) | ||
return register.rules() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters