Skip to content

Commit

Permalink
golangci-lint 파일 수정 Finallllllllllllllllllll
Browse files Browse the repository at this point in the history
  • Loading branch information
myeunee committed Nov 3, 2024
1 parent 44e41f2 commit f2d1ccd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@ jobs:
name: golangci-lint
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
- name: Check out code
uses: actions/checkout@v3
- name: golangci-lint

- name: Run golangci-lint with reviewdog
uses: reviewdog/action-golangci-lint@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
golangci_lint_flags: "--config=../../.golangci.yml ./..."
fail_on_error: true
reporter: "github-pr-review"
working-directory: chapter15/section57 # golangci-lint 실행 디렉터리 설정
workdir: "chapter15/section57"
4 changes: 2 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ linters:
disable-all: true
enable:
- goimports
- deadcode
- unused
- errcheck
- gocognit
- gocyclo
- gofmt
- govet
- misspell
- staticcheck
- whitespace
- whitespace

0 comments on commit f2d1ccd

Please sign in to comment.