diff --git a/.github/config/.codespellignore b/.github/config/.codespellignore new file mode 100644 index 0000000..a08537a --- /dev/null +++ b/.github/config/.codespellignore @@ -0,0 +1,11 @@ +cips +pullrequest +keypair +pastTime +hasTables +Nam +EyT +upTo +initia +minitia +expRes diff --git a/.github/workflows/spellcheck.yml b/.github/workflows/spellcheck.yml new file mode 100644 index 0000000..3c9e159 --- /dev/null +++ b/.github/workflows/spellcheck.yml @@ -0,0 +1,28 @@ +name: Spell Check + +on: + pull_request: + +jobs: + spellcheck: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Run codespell + continue-on-error: true + run: | + sudo apt-get install codespell -y + codespell -w --skip="*.pulsar.go,*.pb.go,*.pb.gw.go,*.cosmos_orm.go,*.json,*.git,*.js,crypto/keys,fuzz,*.h,proto/tendermint,*.bin,go.sum,go.work.sum,go.mod,statik.go,*.map,swagger.yaml" --ignore-words=.github/config/.codespellignore + - uses: peter-evans/create-pull-request@v7.0.5 + if: github.event_name != 'pull_request' + with: + token: ${{ secrets.GITHUB_TOKEN }} + commit-message: "chore: fix typos" + title: "chore: fix typos" + branch: "chore/fix-typos" + delete-branch: true + body: | + This PR fixes typos in the codebase. + Please review it, and merge if everything is fine. + If there are proto changes, run `make proto-gen` and commit the changes. diff --git a/app/keepers/keepers.go b/app/keepers/keepers.go index 6e0b0f5..9069925 100644 --- a/app/keepers/keepers.go +++ b/app/keepers/keepers.go @@ -229,7 +229,7 @@ func NewAppKeeper( appKeepers.OracleKeeper = &oracleKeeper // Add the oracle keeper as a hook to market map keeper so new market map entries can be created - // and propogated to the oracle keeper. + // and propagated to the oracle keeper. appKeepers.MarketMapKeeper.SetHooks(appKeepers.OracleKeeper.Hooks()) appKeepers.OPChildKeeper = opchildkeeper.NewKeeper( diff --git a/app/upgrade.go b/app/upgrade.go index 547f68d..c4e0977 100644 --- a/app/upgrade.go +++ b/app/upgrade.go @@ -34,7 +34,7 @@ func (app *MinitiaApp) RegisterUpgradeHandlers(cfg module.Configurator) { return nil, err } - // 2. update vm data with new seperator and add checksums of each module + // 2. update vm data with new separator and add checksums of each module // Previous: // ModuleSeparator = byte(0) diff --git a/contrib/devtools/Makefile b/contrib/devtools/Makefile index c57ff03..e1ed01d 100644 --- a/contrib/devtools/Makefile +++ b/contrib/devtools/Makefile @@ -57,7 +57,7 @@ tools-stamp: statik runsim touch $@ # Install the runsim binary with a temporary workaround of entering an outside -# directory as the "go install" command ignores the -mod option and will polute the +# directory as the "go install" command ignores the -mod option and will pollute the # go.{mod, sum} files. # # ref: https://github.com/golang/go/issues/30515 @@ -67,7 +67,7 @@ $(STATIK): @(cd /tmp && go install github.com/rakyll/statik@v0.1.6) # Install the runsim binary with a temporary workaround of entering an outside -# directory as the "go install" command ignores the -mod option and will polute the +# directory as the "go install" command ignores the -mod option and will pollute the # go.{mod, sum} files. # # ref: https://github.com/golang/go/issues/30515 diff --git a/shared.Dockerfile b/shared.Dockerfile index f905607..faf38fa 100644 --- a/shared.Dockerfile +++ b/shared.Dockerfile @@ -3,7 +3,7 @@ FROM golang:1.22-bullseye AS go-builder # Install minimum necessary dependencies, build Cosmos SDK, remove packages RUN apt update RUN apt install -y curl git build-essential -# debug: for live editting in the image +# debug: for live editing in the image RUN apt install -y vim WORKDIR /code