Skip to content

Commit

Permalink
Added *.sv and *.sv in custm repolint for source-license-headers-exist
Browse files Browse the repository at this point in the history
Signed-off-by: Navyendu V Surendranadhan <[email protected]>
  • Loading branch information
quic-nvettuva committed Jan 9, 2025
1 parent 4b98130 commit 371911e
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/quic-organization-repolinter.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: QuIC Organization Repolinter

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
on: [push, pull_request]

jobs:
repolinter:
Expand All @@ -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"
47 changes: 47 additions & 0 deletions repolint.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
}
}

0 comments on commit 371911e

Please sign in to comment.