Merge pull request #239 from diezcami/quotation-marks

Added quotation_marks rule
This commit is contained in:
Vladimir Iakovlev
2015-06-02 08:46:06 +03:00
3 changed files with 34 additions and 0 deletions
+14
View File
@@ -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 ('\'', '\"')