sonarlint

command line sonarlint show only new issues

霸气de小男生 提交于 2019-12-12 04:34:08
问题 is there a way to configure command line Sonar-lint to show only new issues? I've heard it's possible while using the different plugins for IDE's but I'd like to integrate the command line. Thanks ahead. 回答1: No this is not yet possible but indeed would make sense. 来源: https://stackoverflow.com/questions/39686838/command-line-sonarlint-show-only-new-issues

SonarLint KeyNotFoundException

怎甘沉沦 提交于 2019-12-12 03:34:54
问题 I'm seeing a strange error when using Sonar to analyse a C-sharp code base. 14:59:19.350 INFO - SonarLint for Visual Studio version 1.3.0.0 14:59:20.154 ERROR - 14:59:20.337 ERROR - Unhandled Exception: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary. 14:59:20.338 ERROR - at System.Collections.Immutable.ImmutableDictionary`2.get_Item(TKey key) 14:59:20.340 ERROR - at SonarLint.Runner.Configuration.AddAnalyzerCommentRegularExpression(Builder

ASP .NET and SonarLint

若如初见. 提交于 2019-12-12 02:45:02
问题 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

Unable to execute Sonar after sonar-java-plugin 4.0 upgrade

旧城冷巷雨未停 提交于 2019-12-11 17:45:32
问题 After upgrading SonarQube from 5.5 to 5.6.5 our Gradle build worked as expected until the SonarJava plugin was updated. We updated from 3.13.1 to 4.x (I tried 4.0, 4.8, and 4.9). I had to 'down grade' the plugin back to 3.13.1 for the build to pass. The main reason we upgraded the SonarQube server was so the developers could use SonarLint and SonarJava v4.0 is a minimum requirement. The error I get is: ERROR: Caused by: sonar.binaries and sonar.libraries are not supported since version 4.0 of

Junit test for Sonarqube repair

六月ゝ 毕业季﹏ 提交于 2019-12-11 15:15:33
问题 I am writing an automatic repair system for some specific sonarqube bugs using INRIA's spoon. I want to write Junit tests for my repair system to check whether the bug has been repaired. I want to do something like this : X = file; Y = repair(X); assert(! hasSonarqubeBug(Y)); Sonarqube analysis is only available for complete projects and not individual files. Sonarlint does analyse individual files but I don't know if there is a way to write a test like this with sonarlint. 回答1: With the Web

Sonarqube SonarLint Customisation

*爱你&永不变心* 提交于 2019-12-11 11:43:57
问题 I am interested in customising SonarLint on IntelliJ, I am guessing it's possible via the sonarlint.xml file. <?xml version="1.0" encoding="UTF-8"?> <project version="4"> <component name="SonarLintProjectSettings"> <option name="additionalProperties"> <map> <entry key="squid:S1067.max" value="20" /> <entry key="squid:S2975" value="True" /> </map> </option> </component> </project> Specifically I would like to disable some of the checks and increase the thresholds for others, the attached XML

remove this useless assignment to local variable c#

被刻印的时光 ゝ 提交于 2019-12-11 07:56:31
问题 var stopFyon = new StopFYON(); IEnumerable<CarOnline> carOnlineData = (IEnumerable<CarOnline>)vehrep.GetCarOnlineDetail(maintainStopFactoryOrderNo.VehicleDetail).Result; if (carOnlineData.Any()) { stopFyon = vehtran.CreateStopFactoryOrderNo(carOnlineData, maintainStopFactoryOrderNo, lastUpdatedBy); } else { stopFyon = vehtran.CreateStopFactoryOrderNo(null, maintainStopFactoryOrderNo, lastUpdatedBy); } return gen.GetResponse((Int16)ResultCode.Success, (Int16)MsgType.Ok, null, vehrep

Connected Mode on SonarLint v2.0 on IntelliJ not working?

心已入冬 提交于 2019-12-11 02:03:55
问题 SonarLint v2.0 for IntelliJ is out now, and has this "connect to sonar server" feature, but even so, it seems it isn't in sync with my server rules. http://www.sonarlint.org/intellij/#Connected Is it working for someone? I'm I missing a step? Or could it be a bug? Thanks! IntelliJ Idea Version: 2016.1 SonarLint Version: 2.0.1 SonarQube Version: 5.4 回答1: SonarLint, as of now, won't work with third party analyzers like PMD or FindBug, if you are using those, they will simple be ignored. You can

Is there some graphical way to create my own configuration file on SonarLint?

╄→гoц情女王★ 提交于 2019-12-10 19:45:01
问题 I downloaded the SonarLint code on Github and would like to try in the company projects that I work by analyzing existing code. I wonder how I could create a standard configuration file with the rules that I want to evaluate the solution to analyze the projects. Is there a practical example? 回答1: To do this, you don't have to start from the source code, you can use the VSIX package from the Visual Studio Gallery. After installing it, just right click on the Project/References/Analyzers node

How can we make SonarLint startup faster in Eclipse with lots of projects?

人盡茶涼 提交于 2019-12-10 15:30:37
问题 In our case we had a parent project (trunk) where all plug-ins where sub-projects and we want all the sub projects to have the same rules. In order to make maintenance easier we thought we could bind all plug-in projects in eclipse to trunk (so we can just batch update them etc.). The problem here is that for some reason it always loads all sub projects for each project. 1) they are always the same 2) there is not more information in the call of the sub-project that the former call did not