Commit 7eec8f64 authored by Kevin Daudt's avatar Kevin Daudt Committed by maxice8

tests: add test for backticks in comments

apkbuild-lint warns when backticks are used instead of '$()'. But this
should not cause a warning when backticks are used in comments.
parent ef9de567
......@@ -179,6 +179,23 @@ is_travis() {
assert_match "${lines[0]}" "instead of backticks"
@test 'backticks in comments should be ignored' {
skip 'false positive'
cat <<-"EOF" >$apkbuild
build() {
# `foo` needs to be executed before bar
run $cmd $apkbuild
[[ $status -eq 0 ]]
@test 'function keyword should not be used' {
is_travis && skip "Broken on CI"
cat <<-"EOF" >$apkbuild
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