Skip to content

Ignore empty line in license #100

@KindDragon

Description

@KindDragon

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions