Skip to content

Commit

Permalink
Add golangci-lint as a dependency (#1419)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacome committed Mar 31, 2021
1 parent 2d63b7c commit fa3e268
Show file tree
Hide file tree
Showing 1,469 changed files with 239,550 additions and 340 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/lint.yml
Expand Up @@ -20,7 +20,6 @@ defaults:
shell: bash

env:
GOLANGCI_VERSION: 1.32
GOLANGCI_TIMEOUT: 10m0s

jobs:
Expand All @@ -34,5 +33,4 @@ jobs:
- name: Lint Code
uses: golangci/golangci-lint-action@v2.5.1
with:
version: 'v${{ env.GOLANGCI_VERSION }}'
args: --timeout ${{ env.GOLANGCI_TIMEOUT }}
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -23,7 +23,7 @@ all: test lint verify-codegen update-crds debian-image

.PHONY: lint
lint: ## Run linter
golangci-lint run
go run github.com/golangci/golangci-lint/cmd/golangci-lint run

.PHONY: test
test: ## Run tests
Expand Down
3 changes: 1 addition & 2 deletions go.mod
Expand Up @@ -7,16 +7,15 @@ require (
github.com/go-logr/logr v0.3.0 // indirect
github.com/go-openapi/spec v0.20.0 // indirect
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b
github.com/golangci/golangci-lint v1.38.0
github.com/google/go-cmp v0.5.5
github.com/hashicorp/golang-lru v0.5.4 // indirect
github.com/imdario/mergo v0.3.11 // indirect
github.com/nginxinc/nginx-plus-go-client v0.8.0
github.com/nginxinc/nginx-prometheus-exporter v0.8.1-0.20201130150826-7c45b2334b3c
github.com/prometheus/client_golang v1.10.0
github.com/spiffe/go-spiffe v1.1.0
golang.org/x/mod v0.4.0 // indirect
golang.org/x/net v0.0.0-20201216054612-986b41b23924 // indirect
golang.org/x/tools v0.0.0-20201218024724-ae774e9781d2 // indirect
k8s.io/api v0.20.5
k8s.io/apimachinery v0.20.5
k8s.io/client-go v0.20.5
Expand Down
293 changes: 286 additions & 7 deletions go.sum

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions tools.go
Expand Up @@ -6,6 +6,7 @@
package tools

import (
_ "github.com/golangci/golangci-lint/cmd/golangci-lint"
_ "k8s.io/code-generator"
_ "sigs.k8s.io/controller-tools/cmd/controller-gen"
)
21 changes: 21 additions & 0 deletions vendor/4d63.com/gochecknoglobals/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

154 changes: 154 additions & 0 deletions vendor/4d63.com/gochecknoglobals/checknoglobals/check_no_globals.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions vendor/github.com/BurntSushi/toml/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions vendor/github.com/BurntSushi/toml/.travis.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions vendor/github.com/BurntSushi/toml/COMPATIBLE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions vendor/github.com/BurntSushi/toml/COPYING

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions vendor/github.com/BurntSushi/toml/Makefile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fa3e268

Please sign in to comment.