Skip to content

Commit

Permalink
add golangci-lint as code analysis tool
Browse files Browse the repository at this point in the history
Signed-off-by: Rakhat Zhuman <zhumanrakhat01@gmail.com>
  • Loading branch information
zethuman committed May 16, 2023
1 parent 280d8a8 commit 9f59154
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 39 deletions.
30 changes: 0 additions & 30 deletions .github/workflows/code-analysis.yml

This file was deleted.

14 changes: 6 additions & 8 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,13 @@ jobs:
steps:
- uses: actions/checkout@v3
with: { fetch-depth: 1 }
- uses: actions/setup-go@v2
- uses: actions/setup-go@v3
with: { go-version: '1.x' }
- name: Install dependencies
run: go install golang.org/x/lint/golint@latest
env:
GOBIN: ${{ env.GOROOT }}/bin
shell: bash
- run: go version
- run: make lint
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.52.2
args: -v -c .golangci.yml

prettify:
name: Prettify
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
- Adds `advanced_index_actions` guide ([#288](https://github.com/opensearch-project/opensearch-go/pull/288))
- Adds testcases to check UpdateByQuery functionality ([#304](https://github.com/opensearch-project/opensearch-go/pull/304))
- Adds additional timeout after cluster start ([#303](https://github.com/opensearch-project/opensearch-go/pull/303))
- Adds Codacy as quality analysis tool ([#313](https://github.com/opensearch-project/opensearch-go/pull/313))
- Adds golangci-lint in actions ([#313](https://github.com/opensearch-project/opensearch-go/pull/313))

### Changed

Expand Down

0 comments on commit 9f59154

Please sign in to comment.