mirror of
				https://github.com/matrix-org/gomatrix
				synced 2025-11-03 22:08:04 +00:00 
			
		
		
		
	Run CI using golangci-lint, Go 1.13.10
This commit is contained in:
		
							parent
							
								
									408fff5e6a
								
							
						
					
					
						commit
						514d21f030
					
				
					 2 changed files with 24 additions and 5 deletions
				
			
		
							
								
								
									
										21
									
								
								.golangci.yml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								.golangci.yml
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,21 @@
 | 
			
		|||
run:
 | 
			
		||||
  timeout: 5m
 | 
			
		||||
  linters:
 | 
			
		||||
    enable:
 | 
			
		||||
      - vet
 | 
			
		||||
      - vetshadow
 | 
			
		||||
      - typecheck
 | 
			
		||||
      - deadcode
 | 
			
		||||
      - gocyclo
 | 
			
		||||
      - golint
 | 
			
		||||
      - varcheck
 | 
			
		||||
      - structcheck
 | 
			
		||||
      - maligned
 | 
			
		||||
      - ineffassign
 | 
			
		||||
      - misspell
 | 
			
		||||
      - unparam
 | 
			
		||||
      - goimports
 | 
			
		||||
      - goconst
 | 
			
		||||
      - unconvert
 | 
			
		||||
      - errcheck
 | 
			
		||||
      - interfacer
 | 
			
		||||
| 
						 | 
				
			
			@ -1,9 +1,7 @@
 | 
			
		|||
language: go
 | 
			
		||||
go:
 | 
			
		||||
 - 1.10.x
 | 
			
		||||
 - 1.13.10
 | 
			
		||||
install:
 | 
			
		||||
 - go get github.com/golang/lint/golint
 | 
			
		||||
 - go get github.com/fzipp/gocyclo
 | 
			
		||||
 - go get github.com/client9/misspell/...
 | 
			
		||||
 - go get github.com/gordonklaus/ineffassign
 | 
			
		||||
 - go get github.com/golangci/golangci-lint/cmd/golangci-lint@v1.24.0
 | 
			
		||||
 - go build
 | 
			
		||||
script: ./hooks/pre-commit
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue