TouK/sputnik

Feature Request - run analysis only on ew files

Closed this issue · 10 comments

vitas commented

Would be great to have an option to run analysis only on new files in the patch set.
Working with legacy code is not easy and developers cannot fix old issues due extensive regression testing

There is a configuration toggle global.commentOnlyChangedLines which prevents sputnik from commenting on any line that wasn't touched.

vitas commented

unfortunately, I'm getting this error (i use gerrit connection)
"This connector does not support global.commentOnlyChangedLines"
looks like master branch has that feature, will wait new release package, thanks

@vitas I've released Sputnik 2.1.0 today which supports commentOnlyChangedLines for Gerrit. I hope this helps!

vitas commented

awesome! thank you , guys!

You're welcome!

vitas commented

i have replaced jar file with new one in lib folder, but getting error:
Error: Could not find or load main class pl.touk.sputnik.Main

Do I something wrong?

@vitas can you please paste some more information? Are you sure you're using Java 8 or higher? What version of Sputnik have you used before update?

vitas commented

I use java8 on linux, Sputnik 2.0.0
I have removed old jar file: sputnik-2.0.0.jar and put new one 2.1.0 into lib folder and run the analysis

vitas commented

I found the issue: i have to change jar file name also in shell script "sputnik" as it specified in CLASSPATH
So everything works! thank you

Thanks for a solution!