diff --git a/sh/core/code.awk b/sh/core/code.awk index 3305853..ee952f7 100644 --- a/sh/core/code.awk +++ b/sh/core/code.awk @@ -136,6 +136,7 @@ current_function = "" current_match = "" doc = "" line = 0 +lint = "" module = "" } @@ -350,6 +351,11 @@ if (action == "doc") { # TODO rwx_ function # TODO unique alias + if (current_match == "alias") { + if (alias in aliases) { + print "dupe: " alias + } + } # TODO unique command # TODO unique function @@ -377,6 +383,10 @@ if (action == "filter") { print item } +# lint +} else if (action == "lint") { + print lint + # action }