We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1f57145 + 13087c9 commit adf4a1bCopy full SHA for adf4a1b
2 files changed
lib/bashcov/lexer.rb
@@ -104,7 +104,7 @@ def relevant?(line)
104
line.start_with?(*IGNORE_START_WITH) ||
105
line.end_with?(*IGNORE_END_WITH)
106
107
- return false if line =~ /\A[a-zA-Z_][a-zA-Z0-9_\-:]*\(\)/ # function declared without the `function` keyword
+ return false if line =~ /\A[a-zA-Z_][a-zA-Z0-9_\-:\.]*\(\)/ # function declared without the `function` keyword
108
return false if line =~ /\A[^)]+\)\Z/ # case statement selector, e.g. `--help)`
109
110
true
spec/test_app/scripts/function.sh
@@ -18,11 +18,11 @@ put-team-key() {
18
echo put-team-key # 0
19
}
20
21
-abc::def() {
+abc::def.fn() {
22
echo "${FUNCNAME[0]}" # 1
23
24
25
f1 # 1
26
f2 # 1
27
__a-bc # 1
28
-abc::def # 1
+abc::def.fn # 1
0 commit comments