lint-file
: Add flags to operate correctly outside of projects
#1068
Labels
enhancement
New feature or request
#1055 adds the
reuse lint-file
command, but it only works inside of the context of a Project as defined by the REUSE Specification. This means:REUSE.toml
is checked for information..license
files are checked for information.LICENSES/
directory (linter checks for missing licenses).Any of these may be a dealbreaker for using
lint-file
in scripts, particularly the missing licenses check and the inability to lint ignored files. However, because the intended use-case oflint-file
is pre-commit, this is not a dealbreaker for the intended audience. We can release without this.In order to fix this issue, the following things should be added:
reuse lint-file
to disable each of the above behaviours separately.--no-project
(or some such) flag that disables several/all behaviours. Certainly the ignored files and missing licences check. For.license
andREUSE.toml
, I'm not certain.The text was updated successfully, but these errors were encountered: