##// END OF EJS Templates
check-commit: check for double-addition of blank lines...
Matt Mackall -
r28013:e529b5f1 default
parent child Browse files
Show More
@@ -34,7 +34,7 b' errors = ['
34 34 "summary keyword should be most user-relevant one-word command or topic"),
35 35 (afterheader + r".*\.\s*\n", "don't add trailing period on summary line"),
36 36 (afterheader + r".{79,}", "summary line too long (limit is 78)"),
37 (r"\n\+\n \n", "adds double empty line"),
37 (r"\n\+\n( |\+)\n", "adds double empty line"),
38 38 (r"\n \n\+\n", "adds double empty line"),
39 39 (r"\n\+[ \t]+def [a-z]+_[a-z]", "adds a function with foo_bar naming"),
40 40 ]
@@ -87,6 +87,10 b' A patch with other errors:'
87 87 > @@ -599,7 +599,7 @@
88 88 > if opts.get('all'):
89 89 >
90 >
91 > +
92 > + some = otherjunk
93 > +
90 94 > +
91 95 > + def blah_blah(x):
92 96 > + pass
@@ -102,10 +106,10 b' A patch with other errors:'
102 106 This has no topic and ends with a period.
103 107 7: don't add trailing period on summary line
104 108 This has no topic and ends with a period.
105 15: adds double empty line
106 +
107 16: adds a function with foo_bar naming
108 + def blah_blah(x):
109 109 19: adds double empty line
110 110 +
111 20: adds a function with foo_bar naming
112 + def blah_blah(x):
113 23: adds double empty line
114 +
111 115 [1]
General Comments 0
You need to be logged in to leave comments. Login now