问题
We have an ASP .NET project, we are trying to have an on-the-fly analysis of JS. SonarLint only provides the analysis of C# files.. Incremental analysis seems to have been deprecated, and issues analysis requires different configuration files, which SonarQube Scanner does not support. Having 2 different configuration files and continuously renaming them is, as you can imagine, is a very difficult task to convince, educate, and discipline a large team of developers to do.. What would be the solution?
回答1:
You can't (for now) have on-the-fly support of JS within SonarLint for Visual Studio but you can have some with IntelliJ/Eclipse although I am not sure the experience would be that great for a ASP.Net Project.
What I would suggest, if you really want to have the analysis before your commit, is to have a local SonarQube server (can be found here) and manually run the Scanner for CLI and to push result to this local instance.
来源:https://stackoverflow.com/questions/40533015/asp-net-and-sonarlint