refactor: move all shellcheck disable definitions to .shellcheckrc file
This makes standard use of shellcheck work without needing to provide extra configuration anywhere. Also remove use of inline 'shellcheck disable' calls that are already defined in the .shellcheckrc and don't need to be set inline.
This commit is contained in:
@@ -33,7 +33,6 @@ trigger-docker-options-docker-args() {
|
||||
|
||||
[[ -z "$line" ]] && continue
|
||||
|
||||
# shellcheck disable=SC1001
|
||||
case "$line" in
|
||||
\#*)
|
||||
continue
|
||||
|
||||
@@ -13,7 +13,6 @@ cmd-docker-options-remove() {
|
||||
verify_app_name "$APP"
|
||||
read -ra passed_phases <<<"$(get_phases "$2")"
|
||||
shift 2 # everything else passed is the docker option
|
||||
# shellcheck disable=SC2154
|
||||
[[ -z ${passed_docker_option="$@"} ]] && dokku_log_fail "Please specify docker options to remove from the phase"
|
||||
remove_passed_docker_option passed_phases[@] "${passed_docker_option[@]}"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user