From 7f2f6cd83d557c1b6540f181049983ccf965d924 Mon Sep 17 00:00:00 2001 From: Justin Tieri <37750742+jtieri@users.noreply.github.com> Date: Fri, 13 Sep 2024 13:53:27 -0500 Subject: [PATCH] chore: handle code review suggestions --- .github/workflows/lint.yml | 20 ++++++++++++++++++++ .golangci.yml | 3 +-- .goreleaser.yaml | 2 +- 3 files changed, 22 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 90e1aa5a1..8f35b408e 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -17,6 +17,26 @@ env: GO_VERSION: 1.22 jobs: + clippy-lint: + defaults: + run: + working-directory: local-interchain/rust/localic-std + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Install stable with clippy and rustfmt + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + components: rustfmt, clippy + - name: Install clippy + run: rustup component add clippy + - name: Update + run: cargo update + - name: Run clippy + run: make lint + golangci: name: golangci-lint runs-on: ubuntu-latest diff --git a/.golangci.yml b/.golangci.yml index 56ef8d787..2b13f2610 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -60,8 +60,7 @@ linters-settings: - prefix(github.com/cosmos) - prefix(github.com/cosmos/cosmos-sdk) - prefix(github.com/cometbft/cometbft) - # TODO: Replace below with '- prefix()' - - prefix(github.com/strangelove-ventures/oss-repo-template) + - prefix(github.com/strangelove-ventures/interchaintest) gosec: excludes: - G404 # disables checks on insecure random number source diff --git a/.goreleaser.yaml b/.goreleaser.yaml index d8e6feb11..5bfa17c1d 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -20,7 +20,7 @@ builds: env: - CGO_ENABLED=0 ldflags: - - -X main.Version=$(VERSION) + - -X main.Version={{.Version}} goos: - linux - windows