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

New Rule : Version Commands #1122

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

New Rule : Version Commands #1122

wants to merge 2 commits into from

Conversation

roopeshvs
Copy link

Fixes incorrect usage of version commands

Example :

git -v
Here the correct usage is
git --version

@roopeshvs roopeshvs changed the title Version Command New Rule : Version Commands Aug 3, 2020
Command('git -v', ''),
Command('git -version', ''),
Command('git -version', ''),
Command('fuck -ver', '')])
Copy link
Contributor

Choose a reason for hiding this comment

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

Missing a test to match --version?

@pytest.mark.parametrize('command, new_command', [
(Command('git -v', ''), 'git --version'),
(Command('git -version', ''), 'git --version'),
(Command('fuck -ver', ''), 'fuck --version')])
Copy link
Contributor

Choose a reason for hiding this comment

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

Missing a test to convert --version to -v?

@pytest.mark.parametrize('command', [
Command('git -v', ''),
Command('git -version', ''),
Command('git -version', ''),
Copy link
Contributor

Choose a reason for hiding this comment

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

Duplicate with the line above?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants