Skip to content

Conversation

@joostjager
Copy link
Contributor

@joostjager joostjager commented Sep 13, 2019

https://github.com/golangci/golangci-lint#install

Most installations are done for CI (travis, circleci etc). It's important to have reproducible CI: don't start to fail all builds at the same time. With golangci-lint this can happen if you use --enable-all and a new linter is added or even without --enable-all: when one upstream linter is upgraded.

It's highly recommended to install a fixed version of golangci-lint.

A second commit disables funlen settings. We have quite a few long functions. I tested and confirmed that changing those functions doesn't trigger funlen. Only when a new function is created or an old long function is renamed, the linter error appears. But to not introduce too many potential issues now, we disable it completely. Later we may start experimenting with trying to force smaller functions.

@joostjager joostjager force-pushed the remove-whitespace-linter branch from 1128983 to c206200 Compare September 13, 2019 08:53
@joostjager joostjager changed the title build: disable whitespace linter build: pin golangci-lint version Sep 13, 2019
@joostjager joostjager requested a review from halseth September 13, 2019 08:54
To prevent builds breaking when golangci-lint or any of the linters is
updated.
@joostjager joostjager force-pushed the remove-whitespace-linter branch from 143bed6 to a963b42 Compare September 13, 2019 09:46
@joostjager joostjager requested a review from halseth September 13, 2019 09:47
@joostjager joostjager force-pushed the remove-whitespace-linter branch from a963b42 to e0b0c72 Compare September 13, 2019 09:49
@cfromknecht cfromknecht merged commit 35d4652 into lightningnetwork:master Sep 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants