feat: Add possibility to share tflint config file for subdirs (#149)

This commit is contained in:
Anton Babenko 2020-09-22 14:20:27 +02:00 committed by GitHub
commit cf07b5ea3f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 2 deletions

View file

@ -1,6 +1,6 @@
#!/usr/bin/env bash
set -e
set -eo pipefail
main() {
initialize_
@ -35,7 +35,8 @@ parse_cmdline_() {
case $argv in
-a | --args)
shift
ARGS+=("$1")
expanded_arg="${1//__GIT_WORKING_DIR__/$PWD}"
ARGS+=("$expanded_arg")
shift
;;
--)
@ -45,6 +46,7 @@ parse_cmdline_() {
;;
esac
done
}
tflint_() {