mirror of
				https://gitea.com/Lydanne/buildx.git
				synced 2025-10-31 16:13:45 +08:00 
			
		
		
		
	lint: add nolintlint and fix violations
We should be able to detect nolint comments that point to linters that are disabled (such as with the removed structcheck). Signed-off-by: Justin Chadwell <me@jedevc.com>
This commit is contained in:
		| @@ -21,6 +21,7 @@ linters: | |||||||
|     - revive |     - revive | ||||||
|     - staticcheck |     - staticcheck | ||||||
|     - typecheck |     - typecheck | ||||||
|  |     - nolintlint | ||||||
|   disable-all: true |   disable-all: true | ||||||
|  |  | ||||||
| linters-settings: | linters-settings: | ||||||
|   | |||||||
| @@ -81,10 +81,7 @@ type commonOptions struct { | |||||||
| 	progress     string | 	progress     string | ||||||
| 	pull         *bool | 	pull         *bool | ||||||
|  |  | ||||||
| 	// golangci-lint#826 |  | ||||||
| 	// nolint:structcheck |  | ||||||
| 	exportPush bool | 	exportPush bool | ||||||
| 	// nolint:structcheck |  | ||||||
| 	exportLoad bool | 	exportLoad bool | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Justin Chadwell
					Justin Chadwell