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
linter: Add new parameters to normalize numbers #5350
Conversation
@@ -43,6 +44,15 @@ def _prepare_options(options, bear_class): | |||
if not options['use_stdout'] and not options['use_stderr']: | |||
raise ValueError('No output streams provided at all.') | |||
|
|||
if options['convert_index']: |
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.
dont abuse strings like this.
there are four possible scenarios, being the combinations of.
- increment line numbers, or dont touch them.
- increment column numbers, or dont touch them.
those should be two meaningful arg names, bool
obviously.
arg names are checked by the Python runtime, providing consistent error messages. the user documentation becomes easy. etc. etc.
Add new parameters `normalize_line_numbers` and `normalize_column_numbers` to handle the conversion from zero-based to one-based conventions. Closes coala#5346
04a3dfe
to
229bd95
Compare
convert_index
ack 229bd95 |
@gitmate-bot ff |
Hey! I'm GitMate.io! This pull request is being fastforwarded automatically. Please DO NOT push while fastforward is in progress or your changes would be lost permanently |
Automated fastforward with GitMate.io was successful! 🎉 |
Control line-index and column-index conversion
to handle zero-based and one-based conventions.
Closes #5346
For short term contributors: we understand that getting your commits well
defined like we require is a hard task and takes some learning. If you
look to help without wanting to contribute long term there's no need
for you to learn this. Just drop us a message and we'll take care of brushing
up your stuff for merge!
Checklist
them.
individually. It is not sufficient to have "fixup commits" on your PR,
our bot will still report the issues for the previous commit.) You will
likely receive a lot of bot comments and build failures if coala does not
pass on every single commit!
After you submit your pull request, DO NOT click the 'Update Branch' button.
When asked for a rebase, consult coala.io/rebase
instead.
Please consider helping us by reviewing other peoples pull requests as well:
corobo mark wip <URL>
to get it outof the review queue.
The more you review, the more your score will grow at coala.io and we will
review your PRs faster!