Skip to content

Commit fbc14b6

Browse files
authored
ci: pre-commit hook to populate missing legal text on files (cdklabs#326)
Make it easier to make sure that proper legal text is present on files. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 633e4fb commit fbc14b6

File tree

4 files changed

+21
-0
lines changed

4 files changed

+21
-0
lines changed

.pre-commit-config.yaml

+12
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,15 @@ repos:
2525
^.*.json |
2626
^API.md
2727
)
28+
- repo: https://github.com/dontirun/text-prepender
29+
rev: v0.1.0
30+
hooks:
31+
- id: text-prepender
32+
exclude: |
33+
(?x)(
34+
^.github/|
35+
^.projen/|
36+
^.mergify.yml|
37+
^.*.json |
38+
^API.md
39+
)

NOTICE

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
SPDX-License-Identifier: Apache-2.0
+4
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1+
/*
2+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
SPDX-License-Identifier: Apache-2.0
4+
*/
15
export { default as nist80053DynamoDBPITREnabled } from './nist80053DynamoDBPITREnabled';

src/NIST-800-53/rules/dynamodb/nist80053DynamoDBPITREnabled.ts

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
SPDX-License-Identifier: Apache-2.0
4+
*/
15
import { CfnTable } from '@aws-cdk/aws-dynamodb';
26
import { CfnResource, Stack } from '@aws-cdk/core';
37

0 commit comments

Comments
 (0)