-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #587 from faddat/faddat/testifylint
Linter pr 1: testifylint
- Loading branch information
Showing
13 changed files
with
151 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,41 @@ | ||
run: | ||
tests: true | ||
|
||
linters: | ||
# Enable specific linter | ||
# https://golangci-lint.run/usage/linters/#enabled-by-default | ||
enable: | ||
- gofumpt | ||
- goimports | ||
- gci | ||
- testifylint | ||
|
||
linters-settings: | ||
goimports: | ||
local-prefixes: github.com/CosmWasm/wasmvm | ||
gci: | ||
# Section configuration to compare against. | ||
# Section names are case-insensitive and may contain parameters in (). | ||
# The default order of sections is `standard > default > custom > blank > dot > alias > localmodule`, | ||
# If `custom-order` is `true`, it follows the order of `sections` option. | ||
# Default: ["standard", "default"] | ||
sections: | ||
- standard # Standard section: captures all standard packages. | ||
- default # Default section: contains all imports that could not be matched to another section type. | ||
- prefix(github.com/cosmos/cosmos-sdk) # Custom section: groups all imports with the specified Prefix. | ||
- prefix(github.com/cosmos/ibc-go) | ||
- blank # Blank section: contains all blank imports. This section is not present unless explicitly enabled. | ||
- dot # Dot section: contains all dot imports. This section is not present unless explicitly enabled. | ||
- alias # Alias section: contains all alias imports. This section is not present unless explicitly enabled. | ||
- localmodule # Local module section: contains all local packages. This section is not present unless explicitly enabled. | ||
# Skip generated files. | ||
# Default: true | ||
skip-generated: false | ||
# Enable custom order of sections. | ||
# If `true`, make the section order the same as the order of `sections`. | ||
# Default: false | ||
custom-order: true | ||
# Drops lexical ordering for custom sections. | ||
# Default: false | ||
no-lex-order: true | ||
|
||
issues: | ||
max-issues-per-linter: 0 | ||
max-same-issues: 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.