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

Stop skipping JSON copyright & license headers by default. #3959

Merged
merged 2 commits into from
May 21, 2024

Conversation

chandlerc
Copy link
Contributor

A lot of the JSON we use is parsed by VSCode or other systems that are happy to have comments in them, and we should retain a license header there. We can exclude specific files where this is a problem. I think the package.json and generated lock file from it are two such cases where we can't have the license header, but we can directly exclude more as needed.

This should help make sure that when we do have a license header in a JSON file it stays up to date and is formatted canonically.

A lot of the JSON we use is parsed by VSCode or other systems that are
happy to have comments in them, and we should retain a license header
there. We can exclude specific files where this is a problem. I think
the `package.json` and generated lock file from it are two such cases
where we can't have the license header, but we can directly exclude more
as needed.

This should help make sure that when we *do* have a license header in
a JSON file it stays up to date and is formatted canonically.
.pre-commit-config.yaml Show resolved Hide resolved
@chandlerc chandlerc added this pull request to the merge queue May 21, 2024
Merged via the queue into carbon-language:trunk with commit 8e92d3a May 21, 2024
7 checks passed
@chandlerc chandlerc deleted the json-license-header branch May 21, 2024 01:23
CJ-Johnson pushed a commit to CJ-Johnson/carbon-lang that referenced this pull request May 23, 2024
…nguage#3959)

A lot of the JSON we use is parsed by VSCode or other systems that are
happy to have comments in them, and we should retain a license header
there. We can exclude specific files where this is a problem. I think
the `package.json` and generated lock file from it are two such cases
where we can't have the license header, but we can directly exclude more
as needed.

This should help make sure that when we *do* have a license header in a
JSON file it stays up to date and is formatted canonically.
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 this pull request may close these issues.

None yet

2 participants