Skip to content

Commit

Permalink
Remove Lint Job
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonWeng committed Mar 29, 2023
1 parent 17f5007 commit 4c65999
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 16 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/actions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,16 @@ jobs:
go-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/checkout@main
- uses: actions/setup-go@v2
- run: go version
- run: go mod download
- run: go build
go-vet:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/checkout@main
- uses: actions/setup-go@v2
- run: go version
- run: go mod download
- run: go vet
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
args: --timeout 300s
8 changes: 3 additions & 5 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ var (
NodeAddress string
TendermintRPC string
LogLevel string
JsonOutput bool
JSONOutput bool
Limit uint64

Prefix string
Expand Down Expand Up @@ -122,7 +122,7 @@ func Execute(cmd *cobra.Command, args []string) {
log.Fatal().Err(err).Msg("Could not parse log level")
}

if JsonOutput {
if JSONOutput {
log = zerolog.New(os.Stdout).With().Timestamp().Logger()
}

Expand Down Expand Up @@ -249,7 +249,6 @@ func setDenom(grpcConn *grpc.ClientConn) {
}

func checkAndHandleDenomInfoProvidedByUser() bool {

if Denom != "" {
if DenomCoefficient != 1 && DenomExponent != 0 {
log.Fatal().Msg("denom-coefficient and denom-exponent are both provided. Must provide only one")
Expand Down Expand Up @@ -277,7 +276,6 @@ func checkAndHandleDenomInfoProvidedByUser() bool {
}

return false

}

func main() {
Expand All @@ -290,7 +288,7 @@ func main() {
rootCmd.PersistentFlags().StringVar(&LogLevel, "log-level", "info", "Logging level")
rootCmd.PersistentFlags().Uint64Var(&Limit, "limit", 1000, "Pagination limit for gRPC requests")
rootCmd.PersistentFlags().StringVar(&TendermintRPC, "tendermint-rpc", "http://localhost:26657", "Tendermint RPC address")
rootCmd.PersistentFlags().BoolVar(&JsonOutput, "json", false, "Output logs as JSON")
rootCmd.PersistentFlags().BoolVar(&JSONOutput, "json", false, "Output logs as JSON")

// some networks, like Iris, have the different prefixes for address, validator and consensus node
rootCmd.PersistentFlags().StringVar(&Prefix, "bech-prefix", "persistence", "Bech32 global prefix")
Expand Down

0 comments on commit 4c65999

Please sign in to comment.