uartois / sonar-golang

Sonarqube plugin for the golang language.
GNU Lesser General Public License v3.0
245 stars 32 forks source link

How can I disable the shell output result #31

Closed Cosby86 closed 6 years ago

Cosby86 commented 6 years ago

Hello all, when I run sonar-go I got a lot of INFO and WARN messages on the shell. I would like to add them (or redirect them on file at least). Is there any way for this?

Thanks

thibaultfalque commented 6 years ago

Hi, Warn messages are probably due to unmanaged rules. Please save your logs and send the file in this thread, so I could add rules.

thibaultfalque commented 6 years ago

sonar-scanner >> output.logs redirect the output

Cosby86 commented 6 years ago

output.zip

I already tried with bash command >> but I forgot the 2>&1 at the end of the bash row. BTW attached the output log. As you ken see I have thousand WARN an ERROR rows. Can you let me know if I'm doing something wrong?

Thx

thibaultfalque commented 6 years ago

Hi, I understood the problem. I will correct. Can you send the gometalinter report ?

Thanks.

Cosby86 commented 6 years ago

report.zip

Thank you. Attached the report. Let me know if I can help you. What did you find?

thibaultfalque commented 6 years ago

the error is a mistake in my regex for find the rules in this file

Cosby86 commented 6 years ago

Got it. Thank you, let me know when you fixed it.

thibaultfalque commented 6 years ago

Please test: https://github.com/uartois/sonar-golang/releases/tag/v1.2.11-rc2

Cosby86 commented 6 years ago

output.zip I had the attached issue when I tried to run sonar scanner using the RC2 jar file (I restarted sonar quebe when I copied the new plugin)

Cosby86 commented 6 years ago

@thibaultfalque do you have any update?

thibaultfalque commented 6 years ago

@Cosby86 I'm sorry but I haven't any problems and I don't understand the reason. I will search a solution.

thibaultfalque commented 6 years ago

Do you delete the old version of the plugin in plugin directory ?

Cosby86 commented 6 years ago

Yes I did

thibaultfalque commented 6 years ago

It's strange. What is your version of SonarQube ?

Cosby86 commented 6 years ago

I restarted the server and now it seems working fine := . Attached the new sonar log. It seems working better. your thoughts? sonar-output.zip

thibaultfalque commented 6 years ago

Yes it's working better but it's not perfect I will add other rules in the next release.

Cosby86 commented 6 years ago

Awesone. Many thanks

danielleberre commented 6 years ago

If the regexp issue is fixed, it might be better to close this issue.

Support for more rules is an ongoing issue.

Cosby86 commented 6 years ago

Ok I'll close it. Thank you for your support