Merge pull request #239 from diezcami/quotation-marks
Added quotation_marks rule
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
# Fixes careless " and ' usage
|
||||
#
|
||||
# Example:
|
||||
# > git commit -m 'My Message"
|
||||
#
|
||||
#
|
||||
#
|
||||
|
||||
def match(command, settings):
|
||||
return ('\'' in command.script
|
||||
and '\"' in command.script)
|
||||
|
||||
def get_new_command(command, settings):
|
||||
return command.script.replace ('\'', '\"')
|
||||
Reference in New Issue
Block a user