Skip to content

Commit ed87d51

Browse files
fix(ci): check license headers repo-wide (#63)
also fix some coderabbit config Signed-off-by: Frank Spitulski <fspitulski@nvidia.com>
1 parent 817c289 commit ed87d51

43 files changed

Lines changed: 203 additions & 30 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.coderabbit.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
14
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
25
reviews:
36
auto_review:
@@ -7,3 +10,23 @@ reviews:
710
- ".*"
811
auto_incremental_review: true
912
auto_pause_after_reviewed_commits: 0
13+
pre_merge_checks:
14+
docstrings:
15+
mode: warning
16+
threshold: 80
17+
finishing_touches:
18+
docstrings:
19+
enabled: true
20+
tools:
21+
golangci-lint:
22+
enabled: true
23+
config_file: "auth-callout/.golangci.yml"
24+
25+
code_generation:
26+
docstrings:
27+
path_instructions:
28+
- path: "**/*"
29+
instructions: |
30+
Keep docstrings selective and short. Document non-obvious what or why;
31+
do not restate signatures, parameters, returns, or control flow that
32+
are clear from skimming the code.

.github/ISSUE_TEMPLATE/bug.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
14
name: Bug Report
25
description: Report a reproducible problem.
36
title: "[Bug]: "

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
14
blank_issues_enabled: false
25
contact_links:
36
- name: Security vulnerability report

.github/ISSUE_TEMPLATE/feature.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
14
name: Feature Request
25
description: Propose a new capability or behavior change.
36
title: "[Feature]: "

.github/ISSUE_TEMPLATE/task.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
14
name: Task
25
description: Track maintenance, documentation, or validation work.
36
title: "[Task]: "

.github/copy-pr-bot.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1+
# Copyright 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
14
enabled: true
25
auto_sync_draft: false

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ jobs:
4343
license: apache
4444
copyright-holder: "NVIDIA CORPORATION & AFFILIATES. All rights reserved."
4545
year: "2026"
46-
paths: "auth-callout/src/ deploy/ local/ schemas/"
47-
ignore: "**/vendor/**,**/tests/**,auth-callout/tests/**"
46+
paths: "."
47+
ignore: ".git/**,**/*.md,**/*.png,**/*.sum,**/go.mod,**/tmp/**,**/vendor/**,auth-callout/vault-agent/templates/**,docs/schema-viewer/**,LICENSE,THIRD_PARTY_LICENSES*"
4848
go-version: "1.25.5"
4949

5050
go-lint:

.rumdl.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
14
# toml-language-server: $schema=https://raw.githubusercontent.com/rvben/rumdl/main/rumdl.schema.json
25

36
# rumdl configuration file

Makefile

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,11 @@
33

44
.PHONY: add-license-headers check check-license-headers clean-e2e dummy-bms e2e-kind help install-e2e-prereqs test test-e2e test-helm third-party-licenses
55

6-
COPYRIGHT_HOLDER := NVIDIA CORPORATION & AFFILIATES. All rights reserved.
7-
COPYRIGHT_YEAR := 2026
8-
LICENSE_TARGETS := local schemas
9-
LICENSE_IGNORES := \
10-
-ignore "**/*.png" \
11-
-ignore "**/go.sum" \
12-
-ignore "**/tests/performance/reports/**" \
13-
-ignore "**/vendor/**"
14-
156
add-license-headers: ## Add SPDX license headers across repository sources
16-
addlicense -l apache -c "$(COPYRIGHT_HOLDER)" -s=only -y "$(COPYRIGHT_YEAR)" $(LICENSE_IGNORES) -v $(LICENSE_TARGETS)
17-
$(MAKE) -C auth-callout add-license-headers
18-
$(MAKE) -C deploy add-license-headers
7+
bash scripts/license.sh fix
198

209
check-license-headers: ## Verify SPDX license headers across repository sources
21-
addlicense -l apache -c "$(COPYRIGHT_HOLDER)" -s=only -y "$(COPYRIGHT_YEAR)" $(LICENSE_IGNORES) -check $(LICENSE_TARGETS)
22-
$(MAKE) -C auth-callout check-license-headers
23-
$(MAKE) -C deploy check-license-headers
10+
bash scripts/license.sh check
2411

2512
check: check-license-headers test test-helm ## Run all local validation checks
2613

auth-callout/.air.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
14
root = "."
25
testdata_dir = "testdata"
36
tmp_dir = "tmp"

0 commit comments

Comments
 (0)