Repository navigation
Add SPDX license header checker and missing headers - #5725
Conversation
PR Code Analyzer ❗AI-powered 'Code-Diff-Analyzer' found issues on commit 6ff86d0. ⛔ Hard block: Issues at High severity or above will block this PR from merging.
The table above displays the top 10 most important findings. Pull Requests Author(s): Please update your Pull Request according to the report above. Repository Maintainer(s): You can Thanks. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5725 +/- ##
============================================
- Coverage 89.49% 89.48% -0.01%
+ Complexity 12264 12263 -1
============================================
Files 980 980
Lines 42014 42014
Branches 4834 4834
============================================
- Hits 37599 37596 -3
- Misses 2940 2942 +2
- Partials 1475 1476 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
We've had this for a while in our existing spotless configs, I think these files are old files from before the config was added. https://github.com/search?q=repo%3Aopensearch-project%2Fsql+licenseHeader&type=code Would prefer to just use the existing config & fix all the old inherited files once. A separate CI check for this is redundant if it's a spotless rule. |
Signed-off-by: shreyah963 <shreyab963@gmail.com>
Signed-off-by: shreyah963 <shreyab963@gmail.com>
Signed-off-by: shreyah963 <shreyab963@gmail.com>
Signed-off-by: shreyah963 <shreyab963@gmail.com>
bffd3c9 to
5adee47
Compare
Signed-off-by: shreyah963 <shreyab963@gmail.com>
|
Thanks for the review @Swiddis! Looking at the Spotless config across the repo, bunch of subprojects don't have licenseHeader configured so the license-checker fills that gap and it covers non-Java files (.sh, .py) too. |
|
Tagging codeowners to take a look: @LantaoJin @RyanL1997 @acarbonetto @ahkcs @anirudha @dai-chen @joshuali925 @mengweieric @noCharger @penghuo @ps48 @qianheng-aws @songkant-aws @Swiddis @vamsimanohar @ykmr1224 @yuancu. Thank you! |
Description
Add SPDX license header validation to PR/push workflows using
@kt3k/license-checker.Changes:
.github/workflows/license-header-checker.yml.licenserc.jsonSPDX-License-Identifier: Apache-2.0headers to source filesRelated Issues
#6445
Check List
--signoffor-s.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.