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

run-checks: complain about MATCH -v #7930

Merged
merged 3 commits into from Dec 18, 2019

Conversation

bboozzoo
Copy link
Collaborator

MATCH -v with multiline input can produce incorrect results and can be replaced
with more correct alternatives (eg. not MATCH , or ! MATCH). Complain when
MATCH -v is found in the spread test code.

MATCH -v with multiline input can produce incorrect results and can be replaced
with more correct alternatives (eg. "not MATCH" , or "! MATCH"). Complain when
MATCH -v is found in the spread test code.

Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
@bboozzoo bboozzoo added the Simple 😃 A small PR which can be reviewed quickly label Dec 18, 2019
Copy link
Contributor

@mvo5 mvo5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

Use of MATCH -v is often incorrect since it returns 0 when there are lines not
matching the pattern in the input.

Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
Copy link
Contributor

@stolowski stolowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@stolowski stolowski merged commit 0b005e9 into snapcore:master Dec 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Simple 😃 A small PR which can be reviewed quickly
Projects
None yet
3 participants