mirror of
https://github.com/1f349/dendrite.git
synced 2024-11-10 06:53:00 +00:00
Update links to golangci-lint documentation (#1617)
Signed-off-by: Bohdan Horbeshko <bodqhrohro@gmail.com>
This commit is contained in:
parent
8f5393db5f
commit
45dec20593
@ -8,7 +8,7 @@
|
|||||||
# - `DENDRITE_LINT_CONCURRENCY` - number of concurrent linters to run,
|
# - `DENDRITE_LINT_CONCURRENCY` - number of concurrent linters to run,
|
||||||
# golangci-lint defaults this to NumCPU
|
# golangci-lint defaults this to NumCPU
|
||||||
# - `GOGC` - how often to perform garbage collection during golangci-lint runs.
|
# - `GOGC` - how often to perform garbage collection during golangci-lint runs.
|
||||||
# Essentially a ratio of memory/speed. See https://github.com/golangci/golangci-lint#memory-usage-of-golangci-lint
|
# Essentially a ratio of memory/speed. See https://golangci-lint.run/usage/performance/#memory-usage
|
||||||
# for more info.
|
# for more info.
|
||||||
|
|
||||||
|
|
||||||
|
@ -2,13 +2,13 @@
|
|||||||
|
|
||||||
In addition to standard Go code style (`gofmt`, `goimports`), we use `golangci-lint`
|
In addition to standard Go code style (`gofmt`, `goimports`), we use `golangci-lint`
|
||||||
to run a number of linters, the exact list can be found under linters in [.golangci.yml](.golangci.yml).
|
to run a number of linters, the exact list can be found under linters in [.golangci.yml](.golangci.yml).
|
||||||
[Installation](https://github.com/golangci/golangci-lint#install) and [Editor
|
[Installation](https://github.com/golangci/golangci-lint#install-golangci-lint) and [Editor
|
||||||
Integration](https://github.com/golangci/golangci-lint#editor-integration) for
|
Integration](https://golangci-lint.run/usage/integrations/#editor-integration) for
|
||||||
it can be found in the readme of golangci-lint.
|
it can be found in the readme of golangci-lint.
|
||||||
|
|
||||||
For rare cases where a linter is giving a spurious warning, it can be disabled
|
For rare cases where a linter is giving a spurious warning, it can be disabled
|
||||||
for that line or statement using a [comment
|
for that line or statement using a [comment
|
||||||
directive](https://github.com/golangci/golangci-lint#nolint), e.g. `var
|
directive](https://golangci-lint.run/usage/false-positives/#nolint), e.g. `var
|
||||||
bad_name int //nolint:golint,unused`. This should be used sparingly and only
|
bad_name int //nolint:golint,unused`. This should be used sparingly and only
|
||||||
when its clear that the lint warning is spurious.
|
when its clear that the lint warning is spurious.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user