enable nilerr linter
This commit is contained in:
		
							parent
							
								
									21423b914f
								
							
						
					
					
						commit
						d49308d779
					
				@ -13,6 +13,7 @@ linters:
 | 
				
			|||||||
    - gocritic
 | 
					    - gocritic
 | 
				
			||||||
    - gofumpt
 | 
					    - gofumpt
 | 
				
			||||||
    - misspell
 | 
					    - misspell
 | 
				
			||||||
 | 
					    - nilerr
 | 
				
			||||||
    - prealloc
 | 
					    - prealloc
 | 
				
			||||||
    - unconvert
 | 
					    - unconvert
 | 
				
			||||||
    - unparam
 | 
					    - unparam
 | 
				
			||||||
@ -30,4 +31,4 @@ issues:
 | 
				
			|||||||
    text: "ifElseChain"
 | 
					    text: "ifElseChain"
 | 
				
			||||||
linters-settings:
 | 
					linters-settings:
 | 
				
			||||||
  gci:
 | 
					  gci:
 | 
				
			||||||
    local-prefixes: gorm.io/gorm
 | 
					    local-prefixes: gorm.io/gorm
 | 
				
			||||||
 | 
				
			|||||||
@ -26,7 +26,7 @@ for dialect in "${dialects[@]}" ; do
 | 
				
			|||||||
      if [ -d tests ]
 | 
					      if [ -d tests ]
 | 
				
			||||||
      then
 | 
					      then
 | 
				
			||||||
        cd tests
 | 
					        cd tests
 | 
				
			||||||
        GORM_DIALECT=${dialect} go test -race -count=1 -coverprofile=../coverage.out ./...
 | 
					        GORM_DIALECT=${dialect} go test -race -count=1 -coverprofile=coverage.out ./...
 | 
				
			||||||
        cd ..
 | 
					        cd ..
 | 
				
			||||||
      fi
 | 
					      fi
 | 
				
			||||||
    else
 | 
					    else
 | 
				
			||||||
@ -34,7 +34,7 @@ for dialect in "${dialects[@]}" ; do
 | 
				
			|||||||
      if [ -d tests ]
 | 
					      if [ -d tests ]
 | 
				
			||||||
      then
 | 
					      then
 | 
				
			||||||
        cd tests
 | 
					        cd tests
 | 
				
			||||||
        GORM_DIALECT=${dialect} go test -race -count=1 -v -coverprofile=../coverage.out ./...
 | 
					        GORM_DIALECT=${dialect} go test -race -count=1 -v -coverprofile=coverage.out ./...
 | 
				
			||||||
        cd ..
 | 
					        cd ..
 | 
				
			||||||
      fi
 | 
					      fi
 | 
				
			||||||
    fi
 | 
					    fi
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user