Merge pull request #199 from igorsantos07/master

Adding rule for forgotten '-r' when grepping folders
This commit is contained in:
Vladimir Iakovlev
2015-05-16 11:51:07 +02:00
2 changed files with 19 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
def match(command, settings):
return (command.script.startswith('grep')
and 'is a directory' in command.stderr.lower())
def get_new_command(command, settings):
return 'grep -r {}'.format(command.script[5:])