Is there any way to retrieve only the new Sonar issues brought by a SCM change with the SonarLint plugin for IntelliJ?
Thank you.
On the Report tab, there's a button labeled Analyze VCS Changed Files,
which will analyze only the files that were modified since the last commit.
The analysis report will include all issues in these files,
not only the new issues.
Currently SonarLint doesn't have a feature to show only the new issues in these files. This sounds like an interesting feature. Perhaps you could suggest it on the community forum.
Related
I'm using intellij TFS and ColdFusion. When I edit a file it is not locked except the .cfm files. When I look the TFS Version Control Information just the .cfm are locked. Where can I set the extension file list or what I should do to lock all files instead of using eclipse cold fusion IDE ? I'm using intellij ULTIMATE EAP 2018.1
Not sure if your IDE will respect the setting, but you can try changing the checkout settings for the project as described here https://learn.microsoft.com/en-us/vsts/tfvc/configure-check-out-settings
If I understand the question correctly, in IntelliJ TFS one can only lock/unlock files with a specific command in the context menu.
Moreover, the lock is not indicated in the UI - see
https://youtrack.jetbrains.com/issue/IDEA-124635
i have rewrite the intellij plugin: MyBatis Log Plugin.
The plugin feature is restore the mybatis generate sql to original whole executable sql.
And i have open the source on github:
MyBatis Log Plugin
I want run this plugin on every different project independent.
But now i have a problem can't to solve.
When i enable the plugin, it only take effect on the last start. and output the whole sql on the last console.
How can i fix this bug?
Anyone who can help me to review the code and points out the problem.
Thank you!
And when i fix this bug, i will redistribution it on jetbrains plugin repository.
I hava solve my problem.
Every project i had new ConsoleView Object.
And output the log bind the project consoleView.
I have installed the latest sonarLint plugins with Intellij 2016.1.2.
Analyze on the fly works fine. However, I can't find in the IntelliJ "Analyze" tab any "Analyze with SonarLint". In the SonarLint window>issues tab, I can only see scope "current file" or "opened files". I don't see any Project scope.
So my question is how to trigger the analysis on my whole project ?
Since SonarLint v2.8, it's possible to analyze all files in the project.
Open the SonarLint Tool Window, go to the Project files tab, and click in the "play" button.
There is also an action to which you can assign a shortcut.
More information here: https://www.sonarlint.org/intellij/howto.html
The easiest two ways to do project analyze:
Choose Analyze | Analyze with SonarLint
Press Ctrl + Shift + S
As #Duarte - SonarSource Team suggests Sonar-Lint has a different purpose. It is intended to use to analyze for code changes in current file(s). i.e. it cannot perform analysis which needs to compare 2 files. (ex: finding duplicates, coverage etc.)
For your purpose that best way to achieve is running SonarQube with preview mode.
Update:
As per this, the preview mode has been deprocated in v 6.6 and will be dropped in future.
they stated many times that their intent is to support only new issue being introduced running an on-fly analysis on files being changed.
If you wanna run a full analysis you should use the SonarQubeCommunity plugin or visit your remote Sonar Server.
If you wanna gather only coverage information within your IDE, use the Jacoco plugin.
However there is an open feature request to browse those issues directly in the SonarLint plugin: https://jira.sonarsource.com/browse/SLE-54
Yes, that screenshot is confusing, but that feature was previously available.
Since version 2.8 analysis of all files in the project is possible.
We are being forced to work with Rational Team Concert [RTC] source control, which has very weak integration with IntelliJ (There is an IntelliJ plugin, but it's just buggy and extremely painful to work with).
So I plan to manage the source control outside IntelliJ using the windows shell extension or the eclipse plugin console.
Is it possible to manage IntelliJ change lists manually without connecting with any source control?
The only solution that I could think of so far, is having a mock SVN server to connect IntelliJ to, but this has many downsides to it...
Please help, I don't want to move to Eclipse :\
What I usually see is the use of an intermediate SCM tool which can interface with IntelliJ without disrupting the target SCM used (here RTC, through a local workspace or sandbox)
For instance, you can use git, as in "In git, what is a changelist?".
Once you are ready to commit, you can refresh your pending changes view in IntelliJ IDEA (if you are using the "JazzConnect-IntelliJ")
I work on an Eclipse RCP application and we are trying to encourage people to move from our old trac bug reporting system to our new Jira based system.
Due to users being unfamiliar with Jira, they tend to still report bugs by the old system in preference to the new system. We don't want to force people to switch by taking down the old trac system, so I thought that if it were much easier to report via Jira however, they would be much more likely to switch.
What I was thinking was that I could integrate a "Submit Jira Ticket" view directly into our application, so that submitting a ticket was always a button click away, and where some of the complexity of Jira could be hidden behind default fields added by our application.
What would be the easiest way to achieve this? Are there already eclipse plug-ins that I could add to my Eclipse RCP configuration, or would I have to write my own view plug-in?
One option would be to use the Mylyn Eclipse plugin which already has a JIRA connector. This lets you create, update, view and search for issues and has been around for a while, so it's very stable.
If you want a simpler form to just submit issues, then you'd probably have to write your own view. JIRA provides a REST API that would support this.
As noted by #NickWilson, you can use Mylyn as the vehicle..
Have a look at the extensions points org.eclipse.mylyn.tasks.core.templates and org.eclipse.mylyn.tasks.bugs.support. For an example of their use by Atlassian see the plugin com.atlassian.connector.eclipse.jira.ui.
These extension points are used to report bugs via the "Help" >> "Report Bug or Enhancement..." menu item.
Atlassian has a plugin for Eclipse depending on the version of JIRA.
https://marketplace.atlassian.com/plugins/com.atlassian.ide.plugins.eclipse.jira
Once you install this plugin, use that updated eclipse install as base eclipse install and include the feature in your bundled rcp application.