Spotless uses the license-header.txt file to apply a codebase-wide license header (if missing or does not match) when we build cuvs-lucene. However, the pre-commit hook has a selective approach to the header updates, and so a subset of files are changed. This becomes evident at the change of the year.
I realized this issue when working on #81 recently. The consequence of these two co-existing leads to an endless loop where pre-commit and Spotless end up undoing what the other did.
I think the central policy control enforced by pre-commit-hooks takes precedence over locally enforced policy by Spotless, and so I am removing the license header check and enforcement by Spotless.
Spotless uses the
license-header.txtfile to apply a codebase-wide license header (if missing or does not match) when we build cuvs-lucene. However, the pre-commit hook has a selective approach to the header updates, and so a subset of files are changed. This becomes evident at the change of the year.I realized this issue when working on #81 recently. The consequence of these two co-existing leads to an endless loop where pre-commit and Spotless end up undoing what the other did.
I think the central policy control enforced by pre-commit-hooks takes precedence over locally enforced policy by Spotless, and so I am removing the license header check and enforcement by Spotless.