I'm writing a new linter for C#, and I'm encountering this problem:
June@JUNE-WINDOWS-PC ~/Documents/Projects/games-project (debug-log) $ arc lint Assets/Code/test.cs >>> Lint for Assets\Code\test.cs: Error (CSINDENT1) Code is not indented correctly This token is not indented correctly. 4 { 5 public void Method() 6 { >>> - 7 Debug.Log("test"); + Debug.Log("test"); 8 } 9 } Error (CSDEBUGLOG1) Debug.Log should be removed Debug.Log should be removed as it clutters the Unity console while playing the game. If the message is important enough, use Debug.Warning or Debug.Error instead. If you really want to just log, use Debug.LogFormat as that method call is not detected by this lint rule. 4 { 5 public void Method() 6 { >>> - 7 Debug.Log("test"); + 8 } 9 } --- C:\Users\June\Documents\Projects\games-project\Assets\Code\test.cs Mon Jul 27 16:08:36 2015 +++ C:\Users\June\AppData\Local\Temp\7vjpuokcyds8ws44\2966BC3.tmp Mon Jul 27 16:08:55 2015 @@ -4,7 +4,7 @@ { public void Method() { - Debug.Log("test"); + Debug.Log("test"); } } } Apply this patch to Assets\Code\test.cs? [y/N]
The cumulation of both fixes should be to remove Debug.Log, but that doesn't happen. Instead only the indentation fix is suggested in the patch.
Is there some way of fixing this (without making every lint policy detect if every other lint policy would affect it)?