Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Too many lines of code #20

Open
GolanTrevize10 opened this issue Apr 25, 2018 · 7 comments
Open

Too many lines of code #20

GolanTrevize10 opened this issue Apr 25, 2018 · 7 comments

Comments

@GolanTrevize10
Copy link

Hello, we have some problem with some of our flow projects in our sonarQube server. The problem is that the project has 9 millions of lines of code. That is causing us some issues because SonarQube needs a lot of memory to process so many lines. I found out that SonarQube is counting as lines of code also comments and blank lines in the flow files. Is there any way of avoiding that?

@dewanst
Copy link
Contributor

dewanst commented Apr 26, 2018

Hi
Normally the latest version should only count real lines of code (eg flow). Which version are you using?
Next to that the plugin has to scan/process the complete files to understand its structure and apply rules, so I guess there isn't a way in avoiding that.
What you could do, is to split up your project if possible and scan in chunks.

@GolanTrevize10
Copy link
Author

GolanTrevize10 commented Apr 26, 2018 via email

@dewanst
Copy link
Contributor

dewanst commented Apr 26, 2018

Hi GolanTrevize10
I would recommend you use the latest release of our plugin as we did some fixes in this area, and the lines of code should now be correctly counted.
Kr

@dewanst
Copy link
Contributor

dewanst commented May 16, 2018

Hi GolanTrevize10

Any updates on your issue?

@GolanTrevize10
Copy link
Author

Hi, we analyzed the project again with new plugin version 1.0. But now it is not recognizing any of the flow.xml files as flow files. What is the difference between the Flow file pattern setting and the Flow file suffixes setting. All our flow files are called flow.xml. We don't have any ndf file

@xxxvodnikxxx
Copy link

about the patterns its #22 related

@AgentW4C
Copy link

Exactly, you need to set sonar.flow.file.suffixes to 'xml' and remove 'xml' from sonar.xml.file.suffixes in order the files are treated as Flow files and not XML files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants