Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

SonarCloud and ADT integration with SonarLint

Mattias
Active Participant
0 Kudos

Hi,


We're analyzing our ABAP code in SonarCloud, by checking it in to Git (using ABAPGit) and letting git notify Sonarcloud that it's been a checkin. It's working very good, with pull requests and everything.

However I've seen that there's a plugin to Eclipse called SonarLint that should manage to integrate into SonarCloud and analyse the code "on the fly".

I've installed SonarLint on my Eclipse (Version: Oxygen.3a Release (4.7.3a)) and have connected it to my project in SonarCloud, however I cannot get it to trigger.

In the following screenshot for example I expect it to tell me to narrow the marked catch.

Does anyone know what's needed to be done to get it to work, I cannot find any documentation for SonarCloud, only SonarQube.

1 ACCEPTED SOLUTION

Mattias
Active Participant
0 Kudos

I managed to solve it, the issue is that sonar cloud by default does not check .aclass-files, so it misses 99% of my objects. I added .aclass to the settings and now it's working.

2 REPLIES 2

Mattias
Active Participant
0 Kudos

It seems ADT does not store local files anymore (which is what SonarLint) tries to analyse, could that be the case? Before you could find files in the form of .asprog, but they seem not to be availble since ADT x.x.

Mattias
Active Participant
0 Kudos

I managed to solve it, the issue is that sonar cloud by default does not check .aclass-files, so it misses 99% of my objects. I added .aclass to the settings and now it's working.