Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

insert license: support for using tabs instead of spaces #24

Closed
benthevining opened this issue Jan 30, 2022 · 4 comments
Closed

insert license: support for using tabs instead of spaces #24

benthevining opened this issue Jan 30, 2022 · 4 comments

Comments

@benthevining
Copy link

In the insert-license hook, it would be great if these was an option for using tabs to indent instead of spaces.

Thanks!

@Lucas-C
Copy link
Owner

Lucas-C commented Jan 30, 2022

Hi @benthevining!
Could you please be more specific?
The insert-license hook makes no distinction between spaces & tabs.

@benthevining
Copy link
Author

If I want the comment prefix in C++ multiline comments to be blank, ie:

- repo: https://github.com/Lucas-C/pre-commit-hooks
    rev: v1.1.10
    hooks:
      - id: insert-license
        name: "Insert license header in C++ source files"
        args: [--license-filepath=util/lemons_header.txt,
               '--comment-style=/*|  | */',
               --detect-license-in-X-top-lines=16]

then the license header seems to be indented using space characters. This isn't a super pressing issue, though, I can live with using * as the comment prefix for now.

@benthevining
Copy link
Author

Thank you!!!

@Lucas-C
Copy link
Owner

Lucas-C commented Jan 31, 2022

Released in v1.1.11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants