mirror of
				https://github.com/matrix-org/gomatrix
				synced 2025-11-04 06:18:05 +00:00 
			
		
		
		
	Update pre-commit hook
This commit is contained in:
		
							parent
							
								
									514d21f030
								
							
						
					
					
						commit
						08878c59b2
					
				
					 1 changed files with 2 additions and 9 deletions
				
			
		| 
						 | 
				
			
			@ -2,9 +2,6 @@
 | 
			
		|||
 | 
			
		||||
set -eu
 | 
			
		||||
 | 
			
		||||
golint
 | 
			
		||||
misspell --error .
 | 
			
		||||
 | 
			
		||||
# gofmt doesn't exit with an error code if the files don't match the expected
 | 
			
		||||
# format. So we have to run it and see if it outputs anything.
 | 
			
		||||
if gofmt -l -s . 2>&1 | read
 | 
			
		||||
| 
						 | 
				
			
			@ -18,9 +15,5 @@ then
 | 
			
		|||
    exit 1
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
ineffassign .
 | 
			
		||||
 | 
			
		||||
go fmt
 | 
			
		||||
go tool vet --all --shadow .
 | 
			
		||||
gocyclo -over 12 .
 | 
			
		||||
go test -timeout 5s -test.v
 | 
			
		||||
golangci-lint run
 | 
			
		||||
go test -timeout 5s . ./...
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue