We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
constant-glob does not correctly lint constant globs when using a named include parameter.
include
This raises a warning:
❯ echo 'glob(["foo.py"])' | buildifier -lint=warn -warnings=+constant-glob -type build - glob(["foo.py"]) <stdin>:1: constant-glob: Glob pattern "foo.py" has no wildcard ('*'). Constant patterns can be error-prone, move the file outside the glob. (https://github.com/bazelbuild/buildtools/blob/master/WARNINGS.md#constant-glob)
This fails to raise a warning, even though I'd expect it to:
❯ echo 'glob(include = ["foo.py"])' | buildifier -lint=warn -warnings=+constant-glob -type build - glob(include = ["foo.py"])
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
constant-glob does not correctly lint constant globs when using a named
include
parameter.This raises a warning:
This fails to raise a warning, even though I'd expect it to:
The text was updated successfully, but these errors were encountered: