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

require-copyright-header should insert as first comment #23

Open
kerryarchibald opened this issue May 6, 2022 · 1 comment
Open

require-copyright-header should insert as first comment #23

kerryarchibald opened this issue May 6, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@kerryarchibald
Copy link
Contributor

Describe the bug
In files with a comment before any statements or imports,require-copyright-header --fix inserts the header after the first comment.
Eg:
https://github.com/matrix-org/matrix-react-sdk/pull/8514/files/be114d0f6fb571c2a729f771b6e0afe76f90ea20#diff-8a7f360d167712620cbea8af174842a1dd85be4bf184e627c7f054bbea162bb4

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
copyright header should be inserted as the first comment in the file

@kerryarchibald kerryarchibald added the enhancement New feature or request label May 6, 2022
@kerryarchibald kerryarchibald self-assigned this May 6, 2022
@stanj98
Copy link

stanj98 commented Sep 12, 2022

Hey, are you currently undertaking this issue?

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

No branches or pull requests

2 participants