Using ExcludeRulesProcessor
Signed-off-by: Maciej "Iwan" Iwanowski <maciej.iwanowski@critical.today>
This commit is contained in:
		
							parent
							
								
									05138497f2
								
							
						
					
					
						commit
						d7772f542b
					
				@ -70,6 +70,12 @@ func NewRunner(cfg *config.Config, log logutils.Log, goenv *goutil.Env,
 | 
				
			|||||||
			Linters: r.Linters,
 | 
								Linters: r.Linters,
 | 
				
			||||||
		})
 | 
							})
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
						var excludeRulesProcessor processors.Processor
 | 
				
			||||||
 | 
						if cfg.Issues.ExcludeCaseSensitive {
 | 
				
			||||||
 | 
							excludeRulesProcessor = processors.NewExcludeRulesCaseSensitive(excludeRules, lineCache, log.Child("exclude_rules"))
 | 
				
			||||||
 | 
						} else {
 | 
				
			||||||
 | 
							excludeRulesProcessor = processors.NewExcludeRules(excludeRules, lineCache, log.Child("exclude_rules"))
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	return &Runner{
 | 
						return &Runner{
 | 
				
			||||||
		Processors: []processors.Processor{
 | 
							Processors: []processors.Processor{
 | 
				
			||||||
@ -89,7 +95,7 @@ func NewRunner(cfg *config.Config, log logutils.Log, goenv *goutil.Env,
 | 
				
			|||||||
			processors.NewIdentifierMarker(),
 | 
								processors.NewIdentifierMarker(),
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			excludeProcessor,
 | 
								excludeProcessor,
 | 
				
			||||||
			processors.NewExcludeRules(excludeRules, lineCache, log.Child("exclude_rules")),
 | 
								excludeRulesProcessor,
 | 
				
			||||||
			processors.NewNolint(log.Child("nolint"), dbManager),
 | 
								processors.NewNolint(log.Child("nolint"), dbManager),
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			processors.NewUniqByLine(cfg),
 | 
								processors.NewUniqByLine(cfg),
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user