mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Added errcheck make task (#242)
This commit is contained in:
		
				
					committed by
					
						
						Lunny Xiao
					
				
			
			
				
	
			
			
			
						parent
						
							c0ca6644ad
						
					
				
				
					commit
					900a21008c
				
			
							
								
								
									
										7
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								Makefile
									
									
									
									
									
								
							@@ -51,6 +51,13 @@ fmt:
 | 
				
			|||||||
vet:
 | 
					vet:
 | 
				
			||||||
	go vet $(PACKAGES)
 | 
						go vet $(PACKAGES)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.PHONY: errcheck
 | 
				
			||||||
 | 
					errcheck:
 | 
				
			||||||
 | 
						@which errcheck > /dev/null; if [ $$? -ne 0 ]; then \
 | 
				
			||||||
 | 
							go get -u github.com/kisielk/errcheck; \
 | 
				
			||||||
 | 
						fi
 | 
				
			||||||
 | 
						errcheck $(PACKAGES)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.PHONY: lint
 | 
					.PHONY: lint
 | 
				
			||||||
lint:
 | 
					lint:
 | 
				
			||||||
	@which golint > /dev/null; if [ $$? -ne 0 ]; then \
 | 
						@which golint > /dev/null; if [ $$? -ne 0 ]; then \
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user