mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-13 23:16:45 +00:00
linters: Add modernise tool check and fix issues (#2012)
* linters: Add modernise tool check and fix issues * engine: Simplify exch.SetDefaults call and remove localWG * CI: Revert config versions lint workflow
This commit is contained in:
@@ -179,7 +179,7 @@ Run the following after completing changes:
|
||||
|
||||
This ensures proper formatting across the codebase.
|
||||
|
||||
## Linters
|
||||
## Linters and other miscellaneous checks
|
||||
|
||||
Run the following to check for linting issues:
|
||||
|
||||
@@ -187,6 +187,14 @@ Run the following to check for linting issues:
|
||||
golangci-lint run ./... (or make lint)
|
||||
```
|
||||
|
||||
Run the following tool to check for Go modernise issues:
|
||||
|
||||
```console
|
||||
make modernise
|
||||
```
|
||||
|
||||
Several other miscellaneous checks will be ran via [GitHub actions](/.github/workflows/misc.yml).
|
||||
|
||||
- All lint warnings and errors must be resolved before merging.
|
||||
- Use `//nolint:linter-name` sparingly and always explain the reason in a comment next to the code.
|
||||
- Examples of valid use:
|
||||
|
||||
Reference in New Issue
Block a user