Commit 18b0f908 authored by Leo's avatar Leo

add line-above-80-chars

parent ae569335
CHANGES in 16.0:
- add line-above-80-chars
CHANGES in 15.4:
- Add more expensive but more accurate find_repo for finding packages in upper repos
......
......@@ -282,3 +282,9 @@ Severity: Serious, Certainty: Certain
existed as a concept understood by abuild
Severity: Serious, Certainty: Certain
## line-above-80-chars [AL27]
A line has above 80 chars, hard-wrap it, if reasonable.
Severity: Minor, Certainty: Possible
......@@ -215,6 +215,12 @@ _builddir_is_set() {
fi
}
line_above_80_chars() {
[ "$SKIP_LINE_ABOVE_80_CHARS" ] && return 0
[ "$SKIP_AL27" ] && return 0
scan '.{80}' 'hard-wrap at 80 chars' 'AL27' 'MP'
}
ret=0
for apkbuild; do
if [ -f "$apkbuild" ]; then
......@@ -241,6 +247,7 @@ for apkbuild; do
newline_opening_brace &
pkgname_has_uppercase &
pkgver_has_pkgrel &
line_above_80_chars &
# Don't perform these checks on packages from main
if ! [ -z "${apkbuild##*main/*}" ]; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment