File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -90,15 +90,15 @@ commit_apply_fixture_and_run() {
90
90
@test " verify_commit_messages/verify_commit_messages.sh: body too long" {
91
91
commit_apply_fixture_and_run too-long-body.patch
92
92
assert_failure
93
- assert_output " ${shorthash} *error*The line #3 has more than 132 characters (found: 181)"
93
+ assert_output " ${shorthash} *error*The line #3 has more than 72 characters (found: 181)"
94
94
}
95
95
96
96
@test " verify_commit_messages/verify_commit_messages.sh: backslash ended lines" {
97
97
commit_apply_fixture_and_run backslash-ended-lines.patch
98
98
assert_failure
99
99
refute_output " #3"
100
100
refute_output " #5"
101
- assert_output " ${shorthash} *error*The line #7 has more than 132 characters (found: 141)"
101
+ assert_output " ${shorthash} *error*The line #7 has more than 72 characters (found: 141)"
102
102
}
103
103
104
104
@test " verify_commit_messages/verify_commit_messages.sh: AMOS bad syntax" {
Original file line number Diff line number Diff line change 18
18
# COMMIT (short) * LEVEL (error or warning) * DESCRIPTION (details)
19
19
# Example:
20
20
# 1234abcd*error*Commit messages does not start with issue code.
21
- # 2345bcde*warning*Body line too long (184 > 132 ).
21
+ # 2345bcde*warning*Body line too long (184 > 72 ).
22
22
# 2345cdef*error*Subject line too long (75 > 72).
23
23
24
24
# Don't be strict. Script has own error control handle
@@ -200,10 +200,10 @@ for c in ${commits}; do
200
200
fi
201
201
# check rest of lines
202
202
else
203
- # verify 3rd and following lines are <= 132 chars long. Warn.
203
+ # verify 3rd and following lines are <= 72 chars long. Warn.
204
204
len=$( echo " ${line} " | wc -c)
205
- if [[ ${len} -gt 132 ]]; then
206
- echo " ${c} *error*The line #${currentline} has more than 132 characters (found: ${len} )"
205
+ if [[ ${len} -gt 72 ]]; then
206
+ echo " ${c} *error*The line #${currentline} has more than 72 characters (found: ${len} )"
207
207
numproblems=$(( numproblems+ 1 ))
208
208
fi
209
209
fi
You can’t perform that action at this time.
0 commit comments