DevSkim/DevSkim-DotNet
Gabe Stocco fb82d09b14
Fix rewriting files with no issues to suppress (#632)
* Fix rewriting files with no issues to suppress

Fixes an issue where the Suppress command would rewrite a file essentially as is (but potentially change whitespace) even if all the detected issues in the file were filtered out by the rule filter.

* Respect original newline characters when adding suppression comments

* Rewrite edge case handling for placing multi line comments at the start of the line when the line ends with `\` and might be a multi-line continuation to avoid putting the comment inside the multiline string.

* Add tests cases for fixes

* Fix readme typo from #628
2024-08-27 09:11:26 -07:00
..
.vscode
Content
ManualGenerator
Microsoft.DevSkim Add tests to identify rules with missing or incomplete guidance (#613) 2024-05-23 16:12:31 -04:00
Microsoft.DevSkim.CLI Fix rewriting files with no issues to suppress (#632) 2024-08-27 09:11:26 -07:00
Microsoft.DevSkim.LanguageProtoInterop
Microsoft.DevSkim.LanguageServer
Microsoft.DevSkim.Tests Fix rewriting files with no issues to suppress (#632) 2024-08-27 09:11:26 -07:00
Microsoft.DevSkim.VisualStudio Updates to Populate Sarif Fields for GitHub Severity + Precision (#606) 2024-02-29 14:49:02 -08:00
Microsoft.DevSkim.VisualStudio.SourceGenerator
.gitignore
Microsoft.DevSkim.sln