Skip to content

Commit

Permalink
[fix]golangci-lint対策
Browse files Browse the repository at this point in the history
  • Loading branch information
Kubosaka committed Mar 20, 2024
1 parent 65ac1ae commit 1247176
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
uses: actions/setup-go@v2
with:
go-version: 1.14
- name: Go mod tidy
working-directory: app
run: go mod tidy
- name: golangci-lint
uses: reviewdog/action-golangci-lint@v1
with:
Expand Down
15 changes: 0 additions & 15 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,2 @@
issues:
exclude-use-default: false

linters:
golint:
# golint settings here
enabled: true
enable-all: true
report-filename: golint.report.txt

filters:
# Exclude import not used errors
- name: exclude-import-not-used
diff:
ignoreRegexp: '^(---|\+\+\+|[^+- ])'
patterns:
- "imported but not used"

0 comments on commit 1247176

Please sign in to comment.