CI: bump up golangci-lint to v1.58.0
This also fixes the following warnings: ``` WARN [config_reader] The configuration option `run.skip-dirs` is deprecated, please use `issues.exclude-dirs`. WARN [lintersdb] The name "vet" is deprecated. The linter has been renamed to: govet. ``` Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com>
This commit is contained in:
		
							
								
								
									
										2
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							| @@ -33,7 +33,7 @@ jobs: | |||||||
|       - uses: ./.github/actions/install-go |       - uses: ./.github/actions/install-go | ||||||
|       - uses: golangci/golangci-lint-action@v5 |       - uses: golangci/golangci-lint-action@v5 | ||||||
|         with: |         with: | ||||||
|           version: v1.56.1 |           version: v1.58.0 | ||||||
|           skip-cache: true |           skip-cache: true | ||||||
|           args: --timeout=8m |           args: --timeout=8m | ||||||
|  |  | ||||||
|   | |||||||
| @@ -13,7 +13,7 @@ linters: | |||||||
|     - tenv # Detects using os.Setenv instead of t.Setenv since Go 1.17 |     - tenv # Detects using os.Setenv instead of t.Setenv since Go 1.17 | ||||||
|     - unconvert |     - unconvert | ||||||
|     - unused |     - unused | ||||||
|     - vet |     - govet | ||||||
|     - dupword # Checks for duplicate words in the source code |     - dupword # Checks for duplicate words in the source code | ||||||
|   disable: |   disable: | ||||||
|     - errcheck |     - errcheck | ||||||
| @@ -76,12 +76,13 @@ linters-settings: | |||||||
|   nolintlint: |   nolintlint: | ||||||
|     allow-unused: true |     allow-unused: true | ||||||
|  |  | ||||||
| run: |   exclude-dirs: | ||||||
|   timeout: 8m |  | ||||||
|   skip-dirs: |  | ||||||
|     - api |     - api | ||||||
|     - cluster |     - cluster | ||||||
|     - docs |     - docs | ||||||
|     - docs/man |     - docs/man | ||||||
|     - releases |     - releases | ||||||
|     - test # e2e scripts |     - test # e2e scripts | ||||||
|  |  | ||||||
|  | run: | ||||||
|  |   timeout: 8m | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Kohei Tokunaga
					Kohei Tokunaga