1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-11-24 08:32:32 +02:00

add staticcheck github action (#3605)

This commit is contained in:
Philipp Stehle 2022-03-07 14:52:20 +01:00 committed by GitHub
parent 0cef702d9d
commit c525936314
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 54 additions and 0 deletions

View File

@ -53,6 +53,17 @@ jobs:
run: go fmt ./...
- name: verify
run: git diff --exit-code
lint:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: staticcheck
uses: dominikh/staticcheck-action@v1.1.0
with:
cache-key: ${{ runner.os }}-golang-staticcheck
generate:
runs-on: ubuntu-latest
steps:

43
staticcheck.conf Normal file
View File

@ -0,0 +1,43 @@
checks = [
"inherit",
"-S1000",
"-S1001",
"-S1002",
"-S1003",
"-S1004",
"-S1005",
"-S1006",
"-S1007",
"-S1008",
"-S1009",
"-S1011",
"-S1012",
"-S1021",
"-S1023",
"-S1024",
"-S1025",
"-S1030",
"-S1031",
"-S1034",
"-S1039",
"-SA1012",
"-SA1014",
"-SA1015",
"-SA4000",
"-SA4001",
"-SA4005",
"-SA4006",
"-SA4009",
"-SA4011",
"-SA4014",
"-SA4017",
"-SA5001",
"-SA5008",
"-SA6000",
"-SA9002",
"-ST1005",
"-ST1008",
"-ST1017",
"-ST1019",
"-U1000"
]