update golang lint
Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
		
							parent
							
								
									5d0a5671f2
								
							
						
					
					
						commit
						18942e2a2c
					
				|  | @ -25,4 +25,4 @@ jobs: | ||||||
|       - name: Golangci lint |       - name: Golangci lint | ||||||
|         uses: golangci/golangci-lint-action@v3 |         uses: golangci/golangci-lint-action@v3 | ||||||
|         with: |         with: | ||||||
|           version: v1.46.2 |           version: v1.48.0 | ||||||
|  | @ -62,6 +62,12 @@ output: | ||||||
| 
 | 
 | ||||||
| # all available settings of specific linters | # all available settings of specific linters | ||||||
| linters-settings: | linters-settings: | ||||||
|  |   gci: | ||||||
|  |     sections: | ||||||
|  |       - standard | ||||||
|  |       - default | ||||||
|  |       - prefix(github.com/helmfile/helmfile) | ||||||
|  | 
 | ||||||
|   errcheck: |   errcheck: | ||||||
|     # report about not checking of errors in type assetions: `a := b.(MyStruct)`; |     # report about not checking of errors in type assetions: `a := b.(MyStruct)`; | ||||||
|     # default is false: such cases aren't reported by default. |     # default is false: such cases aren't reported by default. | ||||||
|  | @ -278,6 +284,7 @@ linters: | ||||||
|     - unparam |     - unparam | ||||||
|     - unused |     - unused | ||||||
|     - whitespace |     - whitespace | ||||||
|  |     - gci | ||||||
|   # don't enable: |   # don't enable: | ||||||
|   # - deadcode |   # - deadcode | ||||||
|   # - gochecknoglobals |   # - gochecknoglobals | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue