I have license: ``` Copyright © 2024 MyCompany All rights reserved. Confidential and Proprietary. Unauthorized copying of this file, via any medium is strictly prohibited. ``` It always try to replace this header ``` # Copyright © 2021 MyCompany All rights reserved. # Confidential and Proprietary. # Unauthorized copying of this file, via any medium is strictly prohibited. ``` I've tried to set --fuzzy-ratio-cut-off to 10 or even 1, but it still add new header to file. With --fuzzy-match-generates-todo it write: ``` # Copyright © 2021 MyCompany All rights reserved. # TODO: This license is not consistent with the license used in the project. # Delete the inconsistent license and above line and rerun pre-commit to insert a good license. # Confidential and Proprietary. # Unauthorized copying of this file, via any medium is strictly prohibited. ```
Activity
Lucas-C commentedon May 14, 2024
Hi @KindDragon
Have you checked this section of the documentation regarding license years?
https://github.com/Lucas-C/pre-commit-hooks?tab=readme-ov-file#handling-years-flexibly
KindDragon commentedon May 14, 2024
Yes, I use "--use-current-year" flag