RegisterBundles method of the BundleConfig class without absolute paths or fixed URIs

0

If I am here, it is because I have not been able to find something that is accurate or that satisfies my problem. Let me explain:

I'm using SONARQUBE or just SONAR for code evaluation, error detection, good practice, etc. in my work project.

And it (SONAR) has accused some inconsistencies something like good security practice in the BundleConfig.cs class

What do you mean?

Well, does the BundleConfig.cs class come with the RegisterBundles() method already set by default as Visual Studio itself creates, correct?

However,SONARasksmetorefactormycodetonotuseabsolutepathsorfixedURIs,anditcriticizesthecodesnippetoftheaboveimageas:

Itriedtodosomethingsimilarto:

  • link
  • link
  • link
  • And other communities I've consulted, but all solution ideas have errors, they do not work within the class or they did not serve the purpose I need to apply to BundleConfig.cs
  • So, I only created this doubt because I really exhausted all my hype of knowledge.

    If anyone has any suggestions or ideas on how I can resolve them, I'd be more than welcome.

    No more, thanks for the attention.

        
    asked by anonymous 14.06.2018 / 22:23

    0 answers