mirror of
				https://github.com/imgproxy/imgproxy.git
				synced 2025-10-30 23:08:02 +02:00 
			
		
		
		
	Add lefthook
This commit is contained in:
		
							
								
								
									
										10
									
								
								.lefthook/pre-commit/lint
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										10
									
								
								.lefthook/pre-commit/lint
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,10 @@ | ||||
| #!/bin/sh | ||||
|  | ||||
| if ! [ -x "$(which brew)" ]; then | ||||
|   export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$(brew --prefix libffi)/lib/pkgconfig" | ||||
| fi | ||||
|  | ||||
| export CGO_LDFLAGS_ALLOW="-s|-w" | ||||
| export CGO_CFLAGS_ALLOW="-Xpreprocessor" | ||||
|  | ||||
| golangci-lint run | ||||
							
								
								
									
										10
									
								
								.lefthook/pre-push/test
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										10
									
								
								.lefthook/pre-push/test
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,10 @@ | ||||
| #!/bin/sh | ||||
|  | ||||
| if ! [ -x "$(which brew)" ]; then | ||||
|   export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$(brew --prefix libffi)/lib/pkgconfig" | ||||
| fi | ||||
|  | ||||
| export CGO_LDFLAGS_ALLOW="-s|-w" | ||||
| export CGO_CFLAGS_ALLOW="-Xpreprocessor" | ||||
|  | ||||
| go test | ||||
							
								
								
									
										9
									
								
								lefthook.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								lefthook.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,9 @@ | ||||
| pre-commit: | ||||
|   scripts: | ||||
|     lint: | ||||
|       tags: lint | ||||
|  | ||||
| pre-push: | ||||
|   scripts: | ||||
|     test: | ||||
|       tags: test | ||||
		Reference in New Issue
	
	Block a user