lint/gawk
This commit is contained in:
parent
bd4191513b
commit
6660fd3543
2 changed files with 15 additions and 0 deletions
|
@ -334,6 +334,9 @@ if (action == "doc") {
|
|||
unique[extract($0, target)] = ""
|
||||
}
|
||||
|
||||
# lint
|
||||
} else if (action == "lint") {
|
||||
|
||||
# unknown
|
||||
} else {
|
||||
print "unknown action: " action
|
||||
|
|
12
sh/lint/gawk.sh
Normal file
12
sh/lint/gawk.sh
Normal file
|
@ -0,0 +1,12 @@
|
|||
# gawk
|
||||
|
||||
#| gawk
|
||||
rwx_gawk_lint() {
|
||||
local file="${1}"
|
||||
echo |
|
||||
gawk \
|
||||
--posix \
|
||||
--lint="fatal" \
|
||||
--file "${file}" \
|
||||
--assign action="lint"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue