mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-16 11:23:11 -06:00
Fix line lengths
This commit is contained in:
parent
4f77171270
commit
d7dab3016a
|
|
@ -5,13 +5,17 @@ considerations.
|
||||||
|
|
||||||
## Linters
|
## Linters
|
||||||
|
|
||||||
We use `golangci-lint` to run a number of linters, the exact list can be found under linters
|
We use `golangci-lint` to run a number of linters, the exact list can be found
|
||||||
in [.golangci.yml](.golangci.yml). [Installation](https://github.com/golangci/golangci-lint#install) and [Editor Integration](https://github.com/golangci/golangci-lint#editor-integration) for it can be found in the readme of golangci-lint.
|
under linters in [.golangci.yml](.golangci.yml).
|
||||||
|
[Installation](https://github.com/golangci/golangci-lint#install) and [Editor
|
||||||
|
Integration](https://github.com/golangci/golangci-lint#editor-integration) for
|
||||||
|
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 directive](https://github.com/golangci/golangci-lint#nolint), e.g.
|
for that line or statement using a [comment
|
||||||
`var bad_name int //nolint:golint,unused`. This should be used sparingly and only when its clear
|
directive](https://github.com/golangci/golangci-lint#nolint), e.g. `var
|
||||||
that the lint warning is spurious.
|
bad_name int //nolint:golint,unused`. This should be used sparingly and only
|
||||||
|
when its clear that the lint warning is spurious.
|
||||||
|
|
||||||
The linters can be run using [scripts/find-lint.sh](scripts/find-lint.sh)
|
The linters can be run using [scripts/find-lint.sh](scripts/find-lint.sh)
|
||||||
(see file for docs) or as part of a build/test/lint cycle using
|
(see file for docs) or as part of a build/test/lint cycle using
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue