You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's important to have reproducible CI: don't start to fail all builds at the same time.
7
+
With golangci-lint this can happen if you use option `linters.default: all` and a new linter is added
8
+
or even without `linters.default: all` when one upstream linter is upgraded.
9
+
10
+
> [!IMPORTANT]
11
+
> It's highly recommended installing a specific version of golangci-lint available on the [releases page](https://github.com/golangci/golangci-lint/releases).
12
+
13
+
## GitHub Actions
14
+
15
+
We recommend using [our GitHub Action](https://github.com/golangci/golangci-lint-action) for running golangci-lint in CI for GitHub projects.
16
+
17
+
It's [fast and uses smart caching](https://github.com/golangci/golangci-lint-action#performance) inside,
18
+
and it can be much faster than the simple binary installation.
19
+
20
+
Also, the action creates GitHub annotations for found issues (you don't need to dig into build log to see found by golangci-lint issues).
GitLab provides a [guide for integrating golangci-lint into the Code Quality widget](https://docs.gitlab.com/ci/testing/code_quality/#golangci-lint).
30
+
A simple quickstart is their [CI component](https://gitlab.com/explore/catalog/components/code-quality-oss/codequality-os-scanners-integration), which can be used like this:
Copy file name to clipboardExpand all lines: docs/content/docs/welcome/install/local.md
+18-66Lines changed: 18 additions & 66 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,50 +1,9 @@
1
1
---
2
-
title: "Install"
3
-
weight: 1
4
-
aliases:
5
-
- /welcome/install/
2
+
title: "Local Installation"
3
+
weight: 2
6
4
---
7
5
8
-
## CI installation
9
-
10
-
Most installations of golangci-lint are performed for CI.
11
-
12
-
It's important to have reproducible CI: don't start to fail all builds at the same time.
13
-
With golangci-lint this can happen if you use option `linters.default: all` and a new linter is added
14
-
or even without `linters.default: all` when one upstream linter is upgraded.
15
-
16
-
> [!IMPORTANT]
17
-
> It's highly recommended installing a specific version of golangci-lint available on the [releases page](https://github.com/golangci/golangci-lint/releases).
18
-
19
-
### GitHub Actions
20
-
21
-
We recommend using [our GitHub Action](https://github.com/golangci/golangci-lint-action) for running golangci-lint in CI for GitHub projects.
22
-
23
-
It's [fast and uses smart caching](https://github.com/golangci/golangci-lint-action#performance) inside,
24
-
and it can be much faster than the simple binary installation.
25
-
26
-
Also, the action creates GitHub annotations for found issues (you don't need to dig into build log to see found by golangci-lint issues).
GitLab provides a [guide for integrating golangci-lint into the Code Quality widget](https://docs.gitlab.com/ci/testing/code_quality/#golangci-lint).
36
-
A simple quickstart is their [CI component](https://gitlab.com/explore/catalog/components/code-quality-oss/codequality-os-scanners-integration), which can be used like this:
On Windows, you can run the above commands with Git Bash, which comes with [Git for Windows](https://git-scm.com/download/win).
22
+
62
23
It is advised that you periodically update the version of golangci-lint as the project is under active development and is constantly being improved.
63
24
For any problems with golangci-lint, check out recent [GitHub issues](https://github.com/golangci/golangci-lint/issues) and update if needed.
0 commit comments