You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using Server.MapPath("~/ ...") to map a relative path to the server root directory, SonarLint raises an “S1075: Refactor your code not to use hardcoded absolute paths or URIs”.
~/ paths are not absolute by their very nature.
Running SonarLint on Visual Studio 2015 Professional, ASP.NET MVC 5
The text was updated successfully, but these errors were encountered:
andrei-epure-sonarsource
changed the title
Fix S1075: Rule should not report on "~/..." path for asp.net
Fix S1075: Rule should not report on virtual path for asp.net
Aug 7, 2018
From @kwilliams1987 in https://community.sonarsource.com/t/false-positive-on-s1075-in-asp-net-mvc-with-paths/843
The text was updated successfully, but these errors were encountered: