Skip to content

Commit 371911e

Browse files
author
Navyendu V Surendranadhan
committed
Added *.sv and *.sv in custm repolint for source-license-headers-exist
Signed-off-by: Navyendu V Surendranadhan <quic_nvettuva@quicinc.com>
1 parent 4b98130 commit 371911e

File tree

2 files changed

+50
-7
lines changed

2 files changed

+50
-7
lines changed
Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
name: QuIC Organization Repolinter
22

3-
on:
4-
push:
5-
branches: [ main ]
6-
pull_request:
7-
branches: [ main ]
3+
on: [push, pull_request]
84

95
jobs:
106
repolinter:
@@ -19,11 +15,11 @@ jobs:
1915
files: "repolint.json"
2016
- name: Run Repolinter with local repolint.json
2117
if: steps.check_files.outputs.files_exists == 'true'
18+
uses: todogroup/repolinter-action@v1
2219
with:
2320
config_file: "repolint.json"
24-
uses: newrelic/repolinter-action@v1
2521
- name: Run Repolinter with default ruleset
2622
if: steps.check_files.outputs.files_exists == 'false'
27-
uses: newrelic/repolinter-action@v1
23+
uses: todogroup/repolinter-action@v1
2824
with:
2925
config_url: "https://raw.githubusercontent.com/quic/.github/main/repolint.json"

repolint.json

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"extends": "https://raw.githubusercontent.com/quic/.github/main/repolint.json",
3+
"rules": {
4+
"source-license-headers-exist": {
5+
"level": "error",
6+
"rule": {
7+
"type": "file-starts-with",
8+
"options": {
9+
"globsAll": [
10+
"**/*.py",
11+
"**/*.js",
12+
"**/*.c",
13+
"**/*.cc",
14+
"**/*.cpp",
15+
"**/*.h",
16+
"**/*.ts",
17+
"**/*.sh",
18+
"**/*.rs",
19+
"**/*.java",
20+
"**/*.go",
21+
"**/*.bbclass",
22+
"**/*.S",
23+
"**/*.svh",
24+
"**/*.sv"
25+
],
26+
"skip-paths-matching": {
27+
"patterns": [
28+
"babel.config.js",
29+
"build\/",
30+
"jest.config.js",
31+
"node_modules\/",
32+
"types\/",
33+
"uthash.h"
34+
]
35+
},
36+
"lineCount": 60,
37+
"patterns": [
38+
"(Copyright|©).*Qualcomm Innovation Center, Inc|Copyright (\\(c\\)|©) (20(1[2-9]|2[0-2])(-|,|\\s)*)+ The Linux Foundation",
39+
"SPDX-License-Identifier|Redistribution and use in source and binary forms, with or without"
40+
],
41+
"flags": "i"
42+
}
43+
}
44+
}
45+
}
46+
}
47+

0 commit comments

Comments
 (0)