FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

feat(lint): enforce provenance-aware file legal headers by zackees · Pull Request #4061 · FastLED/FastLED · GitHub

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .json  (1) .lock  (1) .py  (2) .rs  (6) .sh  (1) .toml  (1) .yaml  (1) All 7 file types selected
Only manifest files
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
4 changes: 4 additions & 0 deletions ci/cpp_lint_cache.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
"src/**/*.h",
"src/**/*.hpp",
"src/**/*.c",
"src/**/*.s",
"src/**/*.S",
"examples/**/*.ino",
"examples/**/*.cpp",
"examples/**/*.h",
Expand All @@ -35,6 +37,7 @@
"ci/lint_cpp_rs/Cargo.toml",
"ci/lint_cpp_rs/Cargo.lock",
"ci/lint_cpp_rs/src/**/*.rs",
"ci/lint_cpp_rs/file_legal_policy.yaml",
]


Expand All @@ -59,6 +62,7 @@ def _get_cpp_lint_patterns() -> tuple[list[str], list[str]]:
"ci/lint_cpp_rs/Cargo.toml",
"ci/lint_cpp_rs/Cargo.lock",
"ci/lint_cpp_rs/src/**/*.rs",
"ci/lint_cpp_rs/file_legal_policy.yaml",
]
for pattern in extra_includes:
if pattern not in include:
Expand Down
5 changes: 4 additions & 1 deletion ci/dependencies.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,14 @@
"src/**/*.h",
"src/**/*.hpp",
"src/**/*.c",
"src/**/*.s",
"src/**/*.S",
"examples/**/*.ino",
"examples/**/*.cpp",
"examples/**/*.h",
"examples/**/*.hpp",
"ci/lint_cpp/*.py"
"ci/lint_cpp/*.py",
"ci/lint_cpp_rs/file_legal_policy.yaml"
],
"tools": [
"clang-format",
Expand Down
1 change: 1 addition & 0 deletions ci/lint_cpp/rust_binary_cache.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ class _BuildStreamResult:
# here when introduced — current crate has none of those.
"ci/lint_cpp_rs/Cargo.toml",
"ci/lint_cpp_rs/Cargo.lock",
"ci/lint_cpp_rs/file_legal_policy.yaml",
)
_SRC_DIR = RUST_CRATE_DIR / "src"

Expand Down
117 changes: 117 additions & 0 deletions ci/lint_cpp_rs/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions ci/lint_cpp_rs/Cargo.toml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ name = "fastled-lint"
path = "src/main.rs"

[dependencies]
blake3 = "1.8"
glob = "0.3"
rayon = "1.10"
regex = "1.11"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde_yaml = "0.9"
walkdir = "2.5"

# Dev profile = the production build for this lint tool. Cargo defaults
Expand Down
10 changes: 10 additions & 0 deletions ci/lint_cpp_rs/deep_history_audit.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -euo pipefail

project_root="$(git rev-parse --show-toplevel)"
cd "$project_root"

uv run soldr --no-cache cargo test \
--manifest-path ci/lint_cpp_rs/Cargo.toml \
deep_live_history_matches_per_file_git_for_mark_and_sam \
-- --ignored --nocapture
32 changes: 32 additions & 0 deletions ci/lint_cpp_rs/file_legal_policy.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
schema: fastled-file-legal-policy/v1
enabled: false
# Capture every historical human author when a notice is first created. Later
# audits preserve that reviewed holder snapshot while refreshing audit metadata;
# a future policy version may opt into incremental holder attribution.
attribution_mode: initial_history_snapshot
recheck_after_days: 365
license:
spdx_identifier: MIT
notice: |-
Distributed under the MIT License.
See LICENSE for details.
ignored_identities:
- Copilot
- Cursor Agent
- copilot-swe-agent[bot]
owners:
- name: Daniel Garcia
aliases:
- Dan Garcia
- focalintent
- danielgarcia
always: false
- name: Mark Kriegsman
aliases:
- kriegsman
always: false
- name: Zach Vorhies
aliases:
- Zackees
- Zachary Vorhies
always: true
Loading
Loading

Back | FazBrowse Home | New Git URL