#1076274 licensecheck: should have sensible default ignores like .git

#1076274#5
Date:
2024-07-13 13:17:16 UTC
From:
To:
Dear Maintainer,

When working with upstream Git repositories, it's easy to forget adding
`--ignore .git` to licensecheck runs and get it into spitting out binary blocks
from Git blobs. It's usually desirable to ignore them by default.

Expanding on that, it's also usually desirable to respect .gitignore or similar
ignore files, as well as some common artifacts that are irrelevant for license
checking purpose.

#1076274#10
Date:
2024-07-13 14:43:43 UTC
From:
To:
Quoting Blair Noctis (2024-07-13 15:17:16)

What is sensible varies.

You describe a "sloppy" use case of licensecheck, where silently
skipping non-source files is sensible.

For other "strict" use cases, it is not sensible to silently skip files.

This bugreport seems to be a variant of bug#960694 and bug#960695, and
(without bug#960695 solved) contradicts with bug#526701.

To not cause unpleasant surprises for "strict" use cases, fixing this
will need to be tied to a usage profile, i.e. bug#960695.

Thanks for reporting,

 - Jonas