Skip to content

Fix annoying warning #1020

Fix annoying warning

Fix annoying warning #1020

Workflow file for this run

name: Lint
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: shellcheck
run: |
sudo apt-get -y install tree
dev/lint-shellcheck
- uses: actions/setup-go@v3
with:
go-version-file: go.mod
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
args: --timeout=5m --config .golangci.yaml
- run: go install github.com/segmentio/golines
- name: golines
uses: nickcharlton/diff-check@main
with:
command: dev/lint-golines
contracts:
name: Lint (Contracts)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: 'nightly-2044faec64f99a21f0e5f0094458a973612d0712'
- run: forge --version
- name: Run Forge fmt
# only format code, we do not want to format LIB
run: forge fmt contracts/src --check