Show deprecated mark in the CLI linters help (#2350)
* Show deprecated mark in linters list * fix output deprecated mark in linters list
This commit is contained in:
		
							parent
							
								
									e788757b32
								
							
						
					
					
						commit
						ec58c48180
					
				| @ -53,8 +53,13 @@ func printLinterConfigs(lcs []*linter.Config) { | ||||
| 			linterDescription = linterDescription[:firstNewline] | ||||
| 		} | ||||
| 
 | ||||
| 		fmt.Fprintf(logutils.StdOut, "%s%s: %s [fast: %t, auto-fix: %t]\n", color.YellowString(lc.Name()), | ||||
| 			altNamesStr, linterDescription, !lc.IsSlowLinter(), lc.CanAutoFix) | ||||
| 		deprecatedMark := "" | ||||
| 		if lc.IsDeprecated() { | ||||
| 			deprecatedMark = " [" + color.RedString("deprecated") + "]" | ||||
| 		} | ||||
| 
 | ||||
| 		fmt.Fprintf(logutils.StdOut, "%s%s%s: %s [fast: %t, auto-fix: %t]\n", color.YellowString(lc.Name()), | ||||
| 			altNamesStr, deprecatedMark, linterDescription, !lc.IsSlowLinter(), lc.CanAutoFix) | ||||
| 	} | ||||
| } | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Danil Ovchinnikov
						Danil Ovchinnikov