From 371911eee4e304aa70fffba7b40b026b53b0601f Mon Sep 17 00:00:00 2001 From: Navyendu V Surendranadhan Date: Thu, 9 Jan 2025 06:18:21 -0800 Subject: [PATCH] Added *.sv and *.sv in custm repolint for source-license-headers-exist Signed-off-by: Navyendu V Surendranadhan --- .../quic-organization-repolinter.yml | 10 ++-- repolint.json | 47 +++++++++++++++++++ 2 files changed, 50 insertions(+), 7 deletions(-) create mode 100644 repolint.json diff --git a/.github/workflows/quic-organization-repolinter.yml b/.github/workflows/quic-organization-repolinter.yml index 203097b..1ab1c28 100644 --- a/.github/workflows/quic-organization-repolinter.yml +++ b/.github/workflows/quic-organization-repolinter.yml @@ -1,10 +1,6 @@ name: QuIC Organization Repolinter -on: - push: - branches: [ main ] - pull_request: - branches: [ main ] +on: [push, pull_request] jobs: repolinter: @@ -19,11 +15,11 @@ jobs: files: "repolint.json" - name: Run Repolinter with local repolint.json if: steps.check_files.outputs.files_exists == 'true' + uses: todogroup/repolinter-action@v1 with: config_file: "repolint.json" - uses: newrelic/repolinter-action@v1 - name: Run Repolinter with default ruleset if: steps.check_files.outputs.files_exists == 'false' - uses: newrelic/repolinter-action@v1 + uses: todogroup/repolinter-action@v1 with: config_url: "https://raw.githubusercontent.com/quic/.github/main/repolint.json" diff --git a/repolint.json b/repolint.json new file mode 100644 index 0000000..26bcd7e --- /dev/null +++ b/repolint.json @@ -0,0 +1,47 @@ +{ + "extends": "https://raw.githubusercontent.com/quic/.github/main/repolint.json", + "rules": { + "source-license-headers-exist": { + "level": "error", + "rule": { + "type": "file-starts-with", + "options": { + "globsAll": [ + "**/*.py", + "**/*.js", + "**/*.c", + "**/*.cc", + "**/*.cpp", + "**/*.h", + "**/*.ts", + "**/*.sh", + "**/*.rs", + "**/*.java", + "**/*.go", + "**/*.bbclass", + "**/*.S", + "**/*.svh", + "**/*.sv" + ], + "skip-paths-matching": { + "patterns": [ + "babel.config.js", + "build\/", + "jest.config.js", + "node_modules\/", + "types\/", + "uthash.h" + ] + }, + "lineCount": 60, + "patterns": [ + "(Copyright|©).*Qualcomm Innovation Center, Inc|Copyright (\\(c\\)|©) (20(1[2-9]|2[0-2])(-|,|\\s)*)+ The Linux Foundation", + "SPDX-License-Identifier|Redistribution and use in source and binary forms, with or without" + ], + "flags": "i" + } + } + } + } + } + \ No newline at end of file