Skip to content

Commit cbd11db

Browse files
🌱 Update golangci version to 1.39
* Upgrade the golangci version to 1.39 * Changed the checkout depth golangci/golangci-lint#1088 (comment)
1 parent 86a4656 commit cbd11db

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ jobs:
2323
steps:
2424
- name: Clone the code
2525
uses: actions/checkout@v2
26+
with:
27+
fetch-depth: 0
2628
- name: Setup Go
2729
uses: actions/setup-go@v2
2830
with:
@@ -46,4 +48,4 @@ jobs:
4648
run: |
4749
set -e
4850
addlicense -l apache -c 'Security Scorecard Authors' -v *
49-
git diff --exit-code
51+
git diff --exit-code

.golangci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
run:
33
concurrency: 6
44
deadline: 5m
5+
issues:
6+
new-from-rev: ""
57
linters:
68
disable-all: true
79
enable:
@@ -44,7 +46,6 @@ linters:
4446
- prealloc
4547
- predeclared
4648
- rowserrcheck
47-
- scopelint
4849
- sqlclosecheck
4950
- staticcheck
5051
- structcheck

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ GOLANGCI_LINT = $(shell pwd)/bin/golangci-lint
4848
golangci-lint:
4949
rm -f $(GOLANGCI_LINT) || :
5050
set -e ;\
51-
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(shell dirname $(GOLANGCI_LINT)) v1.36.0 ;\
51+
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(shell dirname $(GOLANGCI_LINT)) v1.39.0 ;\
5252

5353
lint: golangci-lint ## Runs golangci-lint linter
5454
$(GOLANGCI_LINT) run -n

0 commit comments

Comments
 (0)