arm-trusted-firmware/.husky
Akshay Belsare 93d1f4bc74 style(hooks): copyright year check as per author email
Add a check in pre-commit hook to check the
- copyright header is present for the authors organisation.
- the copyright year for the copyright header is updated.

The author email id is parsed to get the organization. Depending upon
the parsed info, the copyright header for the organization is checked
if its present in the file(s) or not.
If the copyright header is present in the file(s) then the copyright
year is checked.

If the copyright header is not present or the copyright year in the
header is not updated it is highlighted to the author
which the user then needs to incorporate in the change accordingly.

To enable this check, the case statement in
.husky/pre-commit.copyright needs to be modified to add the domain
from the email id and corresponding copyright header of the
organisation.

Change-Id: I4dedb68248b3dae997d887dd380155fe326d071d
Signed-off-by: Akshay Belsare <akshay.belsare@amd.com>
2024-01-19 14:29:29 +01:00
..
.gitignore build(hooks): add Husky configuration 2021-04-19 14:06:25 +01:00
commit-msg build(hooks): add commitlint hook 2021-04-19 14:06:25 +01:00
commit-msg.commitlint build(hooks): add commitlint hook 2021-04-19 14:06:25 +01:00
commit-msg.gerrit build(hooks): add Gerrit hook 2021-04-19 14:06:25 +01:00
pre-commit feat(git-hooks): add pre-commit hook 2023-02-09 17:27:25 +00:00
pre-commit.copyright style(hooks): copyright year check as per author email 2024-01-19 14:29:29 +01:00
prepare-commit-msg build(hooks): allow hooks to skip Commitizen 2023-04-18 17:38:20 +01:00
prepare-commit-msg.cz build(hooks): add Commitizen hook 2021-04-19 14:06:25 +01:00