c# - Remove Auto-generated Code from SonarLint Analysis -
background
i running visual studio 2015 enterprise (rtm) , have enabled sonarlint extension code analysis of multi-project asp.net 4.5 mvc solution.
problem
sonarlint analysis seems ignoring project setting code analysis "suppress results generated code (managed only)"
that is, i'm getting lot of sonar errors reported couple of *.designer.cs
files generated .aspx
pages. (most of project mvc, it's worth.) don't care these errors, , don't think have decent path fixing them...
more details
i have sonarqube integrated our tfs 2013 environment, , correctly ignoring these issues on tfs server analysis. problem showing in visual studio, using roslyn analysis.
any ideas how can set equivalent of .ignore file or otherwise fix this?
there no built-in way of ignoring files in roslyn @ moment, can't it. each analyzer needs decide if analyzed file needs checked or not. sonarlint, i've created issue on github: https://github.com/sonarsource/sonarlint-vs/issues/85. can track progress.
Comments
Post a Comment