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

Customize License check string #56

Open
skumar6 opened this issue Nov 20, 2020 · 0 comments · May be fixed by #103
Open

Customize License check string #56

skumar6 opened this issue Nov 20, 2020 · 0 comments · May be fixed by #103

Comments

@skumar6
Copy link

skumar6 commented Nov 20, 2020

License could have different formats. For Instance, instead of string "copyright" some licenses just has "(c)". As of now this plugin just checks for string "copyright".

return bytes.Contains(bytes.ToLower(b[:n]), []byte("copyright")) ||

it would be nice to have customize checks.

mbeacom added a commit to mbeacom/addlicense that referenced this issue Jan 28, 2022
@mbeacom mbeacom linked a pull request Jan 28, 2022 that will close this issue
mbeacom added a commit to mbeacom/addlicense that referenced this issue Jan 28, 2022
mbeacom added a commit to mbeacom/addlicense that referenced this issue Jan 28, 2022
mbeacom added a commit to mbeacom/addlicense that referenced this issue Jan 28, 2022
mbeacom added a commit to mbeacom/addlicense that referenced this issue Jan 28, 2022
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

Successfully merging a pull request may close this issue.

1 participant