From 287cdeea5de654be9d40b212ce096c03a38723c1 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Fri, 10 Jul 2020 00:38:10 +0300 Subject: [PATCH] Silence some warnings. --- .bashrc | 2 ++ .pre-commit-config.yaml | 1 + 2 files changed, 3 insertions(+) diff --git a/.bashrc b/.bashrc index cf83422..9fe81c8 100644 --- a/.bashrc +++ b/.bashrc @@ -140,6 +140,7 @@ alias check_unix='nc -Uvzw3' alias listen_tcp='nc -vlk 0.0.0.0' alias listen_udp='nc -uvlk 0.0.0.0' alias listen_unix='nc -Uvlk' +# shellcheck disable=SC2032 alias rm='rm --dir' alias tfa='terraform apply tfplan' alias tfvf='tfv && terraform fmt -diff' @@ -276,6 +277,7 @@ sync_comics () { this_month="$( date "$format" )" last_month="$( date --date '1 month ago' "$format" )" rsync --prune-empty-dirs --ignore-missing-args --recursive --compress --progress --exclude "*.part" "$last_month" "$this_month" "$HOME/Downloads/Comics/" + # shellcheck disable=SC2033 find "$HOME/Downloads/Comics/" -name "$(date --date '2 month ago' +'0-Day\ Week\ of\ %Y.%m.*')" -exec rm -r {} + } diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6031cfc..a3af767 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,6 +8,7 @@ repos: - id: check-executables-have-shebangs - id: check-merge-conflict - id: check-symlinks + exclude: myclirc|netrc|packet-cli|mycli-history|scwrc - id: detect-private-key - id: trailing-whitespace - id: requirements-txt-fixer -- GitLab