Use Golangci configuration file
This commit is contained in:
		
							parent
							
								
									300a23fc31
								
							
						
					
					
						commit
						97c7038b4f
					
				
							
								
								
									
										2
									
								
								.github/workflows/reviewdog.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/reviewdog.yml
									
									
									
									
										vendored
									
									
								
							@ -9,5 +9,3 @@ jobs:
 | 
				
			|||||||
        uses: actions/checkout@v2
 | 
					        uses: actions/checkout@v2
 | 
				
			||||||
      - name: golangci-lint
 | 
					      - name: golangci-lint
 | 
				
			||||||
        uses: reviewdog/action-golangci-lint@v2
 | 
					        uses: reviewdog/action-golangci-lint@v2
 | 
				
			||||||
        with:
 | 
					 | 
				
			||||||
          golangci_lint_flags: '-E cyclop,unconvert,misspell,unparam,ineffassign,gocritic,prealloc,exportloopref,gosec'
 | 
					 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										11
									
								
								.golangci.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								.golangci.yml
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,11 @@
 | 
				
			|||||||
 | 
					linters:
 | 
				
			||||||
 | 
					  enable:
 | 
				
			||||||
 | 
					    - cyclop
 | 
				
			||||||
 | 
					    - exportloopref
 | 
				
			||||||
 | 
					    - gocritic
 | 
				
			||||||
 | 
					    - gosec
 | 
				
			||||||
 | 
					    - ineffassign
 | 
				
			||||||
 | 
					    - misspell
 | 
				
			||||||
 | 
					    - prealloc
 | 
				
			||||||
 | 
					    - unconvert
 | 
				
			||||||
 | 
					    - unparam
 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user