I am using SonarQube-6.7.7(LTS) and C/C++ Community Plugin [sonar-cxx-plugin-1.3.2.1853.jar] version. Under Quality Profiles for C++ (Community) active rules all shows zero. Snapshot given below.
I have tried the following, However still i could see all the rules as Inactive.
Stopped the Sonarqube service
Deleted the $SONAR_HOME/data/es5 folder
started the service
Also tried with sonar-cxx-plugin-1.3.1.1807.jar plugin as well but still same problem. Even i can't find the option to active them manually as well. Would be grateful for any advice to solve this.
Rules are active in this version of sonar-cxx-plugin-1.2.2.1653.jar. Here working as expected.
I am using 8.4 version and c, c++ plugins of 1.3.2 . Sonar way default quality profile showing zero active rules. Can I have solution from you . Eventhough showing zero rules active it giving the output.
Thanks in advance.
Related
There is some evidence in the Intellij codebase they support ALT(/Meta)+CTL - (mnemonic) in Mac.
E.g: in platform/platform-api/src/com/intellij/openapi/MnemonicWrapper.java
if (SystemInfo.isMac && Registry.is("ide.mac.alt.mnemonic.without.ctrl")) {
And the corresponding resource value in ./platform/util/resources/misc/registry.properties is set to true :
ide.mac.alt.mnemonic.without.ctrl=true
However pressing those two modifier keys together with .. say .. F (for File in the main menu) does not work for me on Sierra with the latest 2017.1 intellij.
Is this supposed to work? Is there any other way to get mnemonics working on Mac.
Note: please do not comment/respond "mnemonics are not encouraged/supported on mac". I am more than well aware of this terrible shortcoming on OS/X. However in previous versions of Intellij it has been possible to use mnemonics on Mac: and it would be a big boost to have them working again.
Update A YouTrack issue was requested by the Intellij Jetbrains support lead. It is here https://youtrack.jetbrains.com/issue/IDEA-175624
CTRL-ALT-(Mnemonic) DOES work.
The JetBrains lead Serge Baranov also mentioned that ALT-(Mnenomic) is supposed to work. It did not / does not for any of my laptops on 2017.X.
The Jetbrains support team led by Serge Baranov worked diligently on this - but were unable to reproduce. I expressed surprise since a half dozen installations on my side - all do not work. Apparently for their testing team it does work. One of my Mac's was factory new in June 2017 with Sierra and I installed IJ Ultimate 2017.1 without any changes from defaults. It did not work.
It is unclear what conditions were required for the Alt-Mnemonics to work on 2017.X.
* Another update* . Jetbrains has provided a fix for this: see last answer.
Make sure mnemonics are not disabled in IntelliJ IDEA settings:
By default mnemonics should work with Ctrl+Alt and Alt on Mac.
If you prefer only Ctrl+Alt, add -Dide.mac.alt.mnemonic.without.ctrl=false in Help | Edit Custom VM Options (Processes Alt-based shortcuts for mnemonics in addition to Ctrl+Alt-based shortcuts. Affect MacOS only.)
There is also a bug in IntelliJ IDEA 2017.1.x versions which causes mnemonics to work via Alt in dialogs, but not in the menu. Adding -Dide.mnemonic.helper.old=true in Help | Edit Custom VM Options will workaround this issue. The fix will be available in 2017.2.x.
Thanks to Serge Baranov of JetBrains : we now have a solution
Add the following to Custom VM Options
-Dide.mnemonic.helper.old=true
In addition a fix will be added to 2017.2
We have an issue since our upgrade to SonarQube 6.0 that on the issues page the link icon or the right arrow icon no longer link to the code.
In this case clicking either link takes you to another (smaller) list of issues.
This is not the case for all issues, the only difference I can spot is that on the problem issues the filename and line number are not shown. checking in the database and in the issues table the 'line' column is also null.
We are using SonarQube 6.0 with C# plugin 5.3.2 - Analysis is triggered by TFS2015 Update 3
Many thanks in advance for any ideas/advice.
Following Teryk's response I manage fine tune my investigation. It turns out that it is cased by the MSBUILD output which does not include a filename or line for certain CA warning is Microsoft.Design and Microsoft.Naming, e.g. CA1024, CA1040, CA1704, CA1716, thus:
3>MSBUILD : warning CA1040: Microsoft.Design : Define a custom attribute to replace 'ITierRepository'.
When this happens the issue is recorded against the solution but obviously cannot be assign to a specific file and the line not identified.
Having found that I was quick able to find the article which discusses the same issue:
https://groups.google.com/d/topic/sonarqube/UDIIjWbCGjs
It is caused by the fact that FxCop is not able find source for the issue as described here:
https://blogs.msdn.microsoft.com/codeanalysis/2007/05/12/faq-why-is-file-and-line-information-available-for-some-warnings-in-fxcop-but-not-for-others/
It apparently relates to changes to FxCop reporting that were introduced in v5.2 of the C# plugin which was also deployed at the same time as upgrading to SQ 6.0
I am using Sonar 4.5.5, and I tried to use manual metrics in filters. No luck, also not with the ones provided by default. I searched the archives and Stackoverflow and Jira for that, nothing. Any insights?
Edit: The same behavior applies to version 5.1.2, justed tried that out today.
Never mind, I found out why Sonar behaves like this!
After creating a measurement, it takes another analysis run to activate the measurements. The 'Manual Measures' dialog of any project tells me that in bold letters: "Pending measures are marked with orange box. Their values will be integrated to project during next analysis.". Maybe my question and answer helps others to be faster with this.
We just updated SonarQube from 4.2 to 4.5.4 but we have a problem with the following Java rule:
Key : squid:MethodCyclomaticComplexity
Name: Methods should not be too complex
The rule is used in the analysis and several complexity issues are correctly found, but it's not possible to edit the rule (to change the Threshold value, for example) because the rule is not displayed in the web interface:
Steps to reproduce the issue:
Log in SonarQube
Click on Rules
Search for "MethodCyclomaticComplexity"
Click on MethodCyclomaticComplexity rule found at the left side of
the window
Result: Nothing appears at the right side of the window!!!
Please, could someone help to resolve this?
The "data/es" folder should not be copied when doing a SonarQube upgrade (see the "upgrading" guide).
So to solve your issue:
Stop SQ
Drop the "data/es" folder
Restart SQ, et voilà!
I am trying to follow this writeup (http://pwigle.wordpress.com/2009/12/11/code-metrics-statistics-with-team-city/) to add code statistics to my TeamCity 6.0 Ci server. I have gotten everything to work as described in the writeup except the last part where the results of the SourceMonitor are displayed in the statistics page. Is there something different that I need to do in TeamCity 6.0 to get this to work?
FYI you have to edit (TeamCity path).BuildServer\config\main-config in 6.0 instead of (TeamCity path).BuildServer\config(project name)\plugin-settings.xml. The plugin-settings.xml file is still present in 6.0 but doesn’t appear to do anything anymore. After that all works as detailed in the write up I posted before.