sonarlint

    2熱度

    1回答

    我已閱讀所有關於SonarLint的主題與SonarQube不同步,但它只是不點擊。 我創建了一個簡單的Maven項目來測試SonarLint & SonarQube。我爲項目添加了sonar-maven插件,然後運行mvn聲納:聲納。 該項目已上傳到SonarQube。當我看着SonarQube時,發現它顯示魷魚:S2699(junit測試沒有斷言)作爲攔截器。 但是,在eclipse中,Son

    1熱度

    1回答

    因此, 該公司爲每個單獨的項目都有一個SonarQube鍵。因此,我們得到了一個Common.dll項目,一個Network.dll項目和一個MyProject.exe項目,這些項目都作爲獨立項目在SonarQube中維護。 但是,在我的Visual Studio中,我有三個項目的解決方案。我如何將每個項目綁定到SonarQube上,以便所有這三個綁定位於Common.dll和Common.dll

    1熱度

    1回答

    我爲SonarQube分析F#代碼創建了自定義插件。這個插件按照需要運行,其結果可以在SonarQube UI中看到。 我現在試圖通過將解決方案綁定到SonarQube實例上包含的解決方案來嘗試在Visual Studio中使用SonarLint。但是,在Visual Studio中通過SonarLint分析代碼時,不會使用F#規則。 有沒有人有建議讓這個自定義F#插件與Visual Studio

    0熱度

    1回答

    有了這個代碼: Connection connection = null; PreparedStatement req = null; try { connection = DriverManager.getConnection(url, user, password); req = connection.prepareStatement(SQL); } finally

    2熱度

    1回答

    我的問題與this非常相似,只是在SonarLint V3(squid:S1948)中遇到了此問題。 我的代碼是: public class Page<T> implements Serializable { Summary summary; List<T> elements; public Page() { summary = new Summary

    4熱度

    1回答

    下面的代碼工作,但我有SonarLint通知,因爲我在流中使用匿名類而不是lambda表達式,並且我看不到如何改進下面的代碼避免了通知: Properties prop = new Properties(); Properties temp = new Properties(); //... add some values and keys in prop and temp prop.pu

    1熱度

    1回答

    我在Visual Studio代碼上運行SonarQube插件和SonarLint時遇到了一些問題。 在安裝了之前的插件或兩個插件之後,我試着運行(按照教程...)命令SonarQube Inject: Create global config with credentials to servers,它以以下消息command 'sonarqube-inject.analyzeProject' n

    2熱度

    1回答

    我要調用具有以下簽名的程序: private Optional<Address> getAddress() 我用它來填補我的系統上的客戶機的記錄。所以,我做了以下代碼來設置記錄的地址(如果存在)。 Optional<Address> address = getAddress(); if (address.isPresent()) record.setAddress(address.

    0熱度

    2回答

    我有以下代碼: public Obj getObj(ObjInitData a_objData){ switch (a_objData.getClientType()) { case "val1": return new val1Obj(a_objData); case "val2": { switch (SERVER_ENV)

    0熱度

    1回答

    我想從eclipse霓虹燈中的sonarlint 3.2插件連接到遠程sonarqube 6.2服務器。我可以連接到我的本地服務器http://localhost:9000。 但是當我試圖打我收到以下錯誤遠程聲納服務器: Fail to request https://xxxxxxxxxxxxxx:xxxx/xxx/api/system/status 請指教。