mirror of
https://github.com/ossf/scorecard.git
synced 2024-09-11 08:55:27 +03:00
🌱 Update golangci version to 1.39
* Upgrade the golangci version to 1.39 * Changed the checkout depth https://github.com/golangci/golangci-lint/issues/1088#issuecomment-801540792
This commit is contained in:
parent
d3a59eacff
commit
da2e7029c7
4
.github/workflows/main.yml
vendored
4
.github/workflows/main.yml
vendored
@ -23,6 +23,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Clone the code
|
- name: Clone the code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
- name: Setup Go
|
- name: Setup Go
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
@ -46,4 +48,4 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
set -e
|
set -e
|
||||||
addlicense -l apache -c 'Security Scorecard Authors' -v *
|
addlicense -l apache -c 'Security Scorecard Authors' -v *
|
||||||
git diff --exit-code
|
git diff --exit-code
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
run:
|
run:
|
||||||
concurrency: 6
|
concurrency: 6
|
||||||
deadline: 5m
|
deadline: 5m
|
||||||
|
issues:
|
||||||
|
new-from-rev: ""
|
||||||
linters:
|
linters:
|
||||||
disable-all: true
|
disable-all: true
|
||||||
enable:
|
enable:
|
||||||
@ -44,7 +46,6 @@ linters:
|
|||||||
- prealloc
|
- prealloc
|
||||||
- predeclared
|
- predeclared
|
||||||
- rowserrcheck
|
- rowserrcheck
|
||||||
- scopelint
|
|
||||||
- sqlclosecheck
|
- sqlclosecheck
|
||||||
- staticcheck
|
- staticcheck
|
||||||
- structcheck
|
- structcheck
|
||||||
|
2
Makefile
2
Makefile
@ -48,7 +48,7 @@ GOLANGCI_LINT = $(shell pwd)/bin/golangci-lint
|
|||||||
golangci-lint:
|
golangci-lint:
|
||||||
rm -f $(GOLANGCI_LINT) || :
|
rm -f $(GOLANGCI_LINT) || :
|
||||||
set -e ;\
|
set -e ;\
|
||||||
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(shell dirname $(GOLANGCI_LINT)) v1.36.0 ;\
|
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(shell dirname $(GOLANGCI_LINT)) v1.39.0 ;\
|
||||||
|
|
||||||
lint: golangci-lint ## Runs golangci-lint linter
|
lint: golangci-lint ## Runs golangci-lint linter
|
||||||
$(GOLANGCI_LINT) run -n
|
$(GOLANGCI_LINT) run -n
|
||||||
|
Loading…
Reference in New Issue
Block a user