Skip to content

Commit f03e84e

Browse files
committed
Resolve lint warnings
1 parent 3778698 commit f03e84e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

tools/scripts/update_contributors

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ this_script=$(perl -MFile::Spec -e 'print File::Spec->abs2rel(@ARGV)' "$0" "${ro
3939

4040
# Lists contributors.
4141
list_contributors() {
42-
local contributors="$(git shortlog -sne | cut -f 2 | sort)"
42+
local contributors
43+
contributors="$(git shortlog -sne | cut -f 2 | sort)"
4344
echo "${contributors}"
4445
}
4546

tools/test-cov/scripts/coverage_report_name

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ main() {
4848
path="${testdir#${base}/}"
4949

5050
# Slugify the path (basic algorithm):
51-
slug="$(echo ${path} | sed -e 's/[^[:alnum:]]/_/g' | tr -s '-' | tr A-Z a-z)"
51+
slug=$(echo "${path}" | sed -e 's/[^[:alnum:]]/_/g' | tr -s '-' | tr '[:upper:]' '[:lower:]')
5252

5353
# Generate a filename:
5454
echo "${output}/coverage${slug}.json"

0 commit comments

Comments
 (0)