ASP .NET和SonarLint [英] ASP .NET and SonarLint

查看:56
本文介绍了ASP .NET和SonarLint的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个ASP .NET项目,我们正在尝试对JS进行动态分析.SonarLint仅提供对C#文件的分析.增量分析似乎已被弃用,问题分析需要不同的配置文件,SonarQube Scanner不支持.您可以想象,拥有2个不同的配置文件并不断重命名它们是说服,教育和训练大量开发人员团队要做的一项艰巨的任务.解决方案是什么?

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?

推荐答案

您(暂时)不能在Visual Studio的SonarLint中即时支持JS,但是虽然我可以在IntelliJ/Eclipse中使用它们我不确定这种经验对ASP.Net项目有什么好处.

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.

如果您真的想在提交之前进行分析,我建议您使用本地SonarQube服务器(可以找到此处),然后手动运行用于CLI的扫描器,并将结果推送到此本地实例.

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.

这篇关于ASP .NET和SonarLint的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆