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

How can I disable the shell output result #31

Closed
Cosby86 opened this issue Sep 19, 2017 · 19 comments
Closed

How can I disable the shell output result #31

Cosby86 opened this issue Sep 19, 2017 · 19 comments

Comments

@Cosby86
Copy link

Cosby86 commented Sep 19, 2017

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
Copy link
Collaborator

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
Copy link
Collaborator

sonar-scanner >> output.logs redirect the output

@Cosby86
Copy link
Author

Cosby86 commented Sep 20, 2017

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
Copy link
Collaborator

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

Thanks.

@Cosby86
Copy link
Author

Cosby86 commented Sep 20, 2017

report.zip

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

@thibaultfalque
Copy link
Collaborator

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

@Cosby86
Copy link
Author

Cosby86 commented Sep 20, 2017

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

@thibaultfalque
Copy link
Collaborator

@Cosby86
Copy link
Author

Cosby86 commented Sep 20, 2017

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
Copy link
Author

Cosby86 commented Sep 21, 2017

@thibaultfalque do you have any update?

@thibaultfalque
Copy link
Collaborator

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

@thibaultfalque
Copy link
Collaborator

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

@Cosby86
Copy link
Author

Cosby86 commented Sep 22, 2017

Yes I did

@thibaultfalque
Copy link
Collaborator

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

@Cosby86
Copy link
Author

Cosby86 commented Sep 22, 2017

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
Copy link
Collaborator

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

@Cosby86
Copy link
Author

Cosby86 commented Sep 27, 2017

Awesone. Many thanks

@danielleberre
Copy link
Contributor

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

Support for more rules is an ongoing issue.

@Cosby86
Copy link
Author

Cosby86 commented Sep 28, 2017

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

@Cosby86 Cosby86 closed this as completed Sep 28, 2017
thibaultfalque pushed a commit that referenced this issue Sep 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants