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

Automatically add MPL licence via pre-commit hook #10614

Closed
6 tasks done
stevejalim opened this issue Oct 20, 2021 · 1 comment · Fixed by #10617
Closed
6 tasks done

Automatically add MPL licence via pre-commit hook #10614

stevejalim opened this issue Oct 20, 2021 · 1 comment · Fixed by #10617

Comments

@stevejalim
Copy link
Collaborator

stevejalim commented Oct 20, 2021

Description

To ensure all Bedrock files have the MPL in them, we can add a pre-commit hook to update any files which are being added or edited. This will help plug any gaps as we go.

Hat-tip to @robhudson for pointing out this very useful pre-commit hook: https://github.com/Lucas-C/pre-commit-hooks#insert-license


Success Criteria

  • Pre-commit hook installed and works for Python files
  • Pre-commit hook installed and works for JS files
  • Pre-commit hook installed and works for SCSS files
  • Pre-commit hook installed and works for bash scripts
  • Pre-commit hook installed and works for Jinja templates
  • Pre-commit hook installed and works for Fluent files
@pmac
Copy link
Member

pmac commented Oct 20, 2021

Jinja template files as well, e.g.

{# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. -#}

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.

2 participants