-
| Hello, Is it possible to skip some functions for  Thanks | 
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            ldez
          
      
      
        Apr 5, 2021 
      
    
    Replies: 2 comments 1 reply
-
| Hello, You have 2 solutions: 
 //nolint:funlen // explanation
func MyFunction()  {
	// ...
}
 issues:
  exclude-rules:
    - path: path/to/my/file.go
      text: "Function 'MyFunction' is too long" | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
      Answer selected by
        ldez
-
| can this approach be used to disable any linter on any function? e.g. will adding disable  | 
Beta Was this translation helpful? Give feedback.
                  
                    1 reply
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Hello,
You have 2 solutions:
//nolint:funlenon those functionsexclude-rulesin.golangci.yml