-
Notifications
You must be signed in to change notification settings - Fork 2
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
No longer raise a RuntimeError if an input file was not formatted wel… #6
base: master
Are you sure you want to change the base?
Conversation
…l. It is quite normal to accept such input. Also log 'Fixed it for you' in case a file has been fixed by gherkin_format.
This should fix #5 |
How to run this script in CI? It is a valid requirement to see if there are unformatted files. How to do this without the exit code? |
Thanks, I see what you mean, and now made sure the error code 1 will be returned to be usable in CI environments. Now the issue #5 should be fixed without bad side-effects, if you merge this PR. Cheers! |
Wie merged man das jetzt? |
lib/gherkin_format.rb
Outdated
File.write(file, output) if options.key? :replace | ||
if options.key? :replace | ||
File.write(file, output) | ||
puts "File #{file} was not formatted well. Fixed it for you!" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could we remove the you
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
ping! fixed your review findings; now also multiple files can be fixed by gherkin_format before exiting with status 1. |
ping |
1 similar comment
ping |
piing |
pong |
ping |
ping, mate |
…l. It is quite normal to accept such input. Also log 'Fixed it for you' in case a file has been fixed by gherkin_format.