Skip to content

Extend license check to .rs files #4428

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

Merged
merged 3 commits into from
Feb 21, 2024
Merged

Conversation

Mark-Simulacrum
Copy link
Contributor

@Mark-Simulacrum Mark-Simulacrum commented Feb 19, 2024

Resolved issues:

n/a

Description of changes:

This excludes the target directory (which isn't source code). We modify the number of lines checked for Copyright to 4, so that the bindgen-generated header in generated feature files doesn't push the license header out of the check window.

Call-outs:

This only checks .rs files, not e.g. Cargo.toml. That seems reasonable to me, but happy to try extending it further; it would likely mean some filtering to avoid picking up the large amount of RFC toml files.

Testing:

Ran the checker successfully locally.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

This excludes the target directory (which isn't source code). We modify
the number of lines checked for Copyright to 4, so that the
bindgen-generated header in generated feature files doesn't push the
license header out of the check window.
@dougch dougch enabled auto-merge (squash) February 20, 2024 16:52
@dougch dougch merged commit a038e7b into aws:main Feb 21, 2024
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.

3 participants