From cbc6cf4f54c2b6767a3b62949fb82c9985581d7c Mon Sep 17 00:00:00 2001 From: jessebot Date: Mon, 8 Apr 2024 09:45:41 +0200 Subject: [PATCH] add yamllint config file to make line legnth a warning instead of error --- .config/bash/path.sh | 3 +++ .config/yamllint/config.yml | 7 +++++++ 2 files changed, 10 insertions(+) create mode 100644 .config/yamllint/config.yml diff --git a/.config/bash/path.sh b/.config/bash/path.sh index 34ab4bf..ed50b2b 100644 --- a/.config/bash/path.sh +++ b/.config/bash/path.sh @@ -127,3 +127,6 @@ export W3M_DIR="~/.local/state/w3m" # add gcloud to path on macOS because they don't have a homebrew package export PATH=$PATH:$HOME/.local/bin/google-cloud-sdk/bin + +# make sure we make all yamllint changes for safer linting +export YAMLLINT_CONFIG_FILE="$XDG_CONFIG_HOME/yamllint/config.yml" diff --git a/.config/yamllint/config.yml b/.config/yamllint/config.yml new file mode 100644 index 0000000..addf0aa --- /dev/null +++ b/.config/yamllint/config.yml @@ -0,0 +1,7 @@ +extends: default + +rules: + # 80 chars should be enough, but don't fail if a line is longer + line-length: + max: 80 + level: warning