From 5936b2059cbbf2f1e013092638b47f00e9abe0ee Mon Sep 17 00:00:00 2001 From: Ben Grande Date: Mon, 8 Jul 2024 19:59:27 +0200 Subject: [PATCH] chore: editorconfig check --- files/dom0/.local/bin/dom0/qvm-ls-class | 4 +++- files/dom0/.local/share/bash-completion/completions/qvm | 2 +- files/git/.config/git/config | 2 +- files/git/.config/git/template/hooks/pre-receive.sample | 6 +++--- files/sh/.config/dircolors/dircolors | 4 ++-- files/sh/.config/sh/shrc | 6 +++--- files/sh/.config/zsh/.zshrc | 4 ++-- files/vim/.config/vim/after/colors/vividchalk.vim | 2 +- 8 files changed, 16 insertions(+), 14 deletions(-) diff --git a/files/dom0/.local/bin/dom0/qvm-ls-class b/files/dom0/.local/bin/dom0/qvm-ls-class index 005d1ad..838428a 100755 --- a/files/dom0/.local/bin/dom0/qvm-ls-class +++ b/files/dom0/.local/bin/dom0/qvm-ls-class @@ -13,12 +13,14 @@ case "${1-}" in -d|--disp) class="DispVM";; -s|--standalone) class="StandaloneVM";; "") true;; - *) printf '%s\n' "usage: ${0##*/} [CLASS] + *) # editorconfig-checker-disable + printf '%s\n' "usage: ${0##*/} [CLASS] -A, --admin -t, --template -a, --app -d, --disp -s, --standalone" + # editorconfig-checker-enable exit 1 ;; esac diff --git a/files/dom0/.local/share/bash-completion/completions/qvm b/files/dom0/.local/share/bash-completion/completions/qvm index a3a58ac..28a3c90 100644 --- a/files/dom0/.local/share/bash-completion/completions/qvm +++ b/files/dom0/.local/share/bash-completion/completions/qvm @@ -147,7 +147,7 @@ complete -F _qvmcmd-runtrans qvm-kill # complete n>=2 arguments with filenames _qvmcmd-any_state-filenames() { if [ "$(_get-cword-pos "${COMP_CWORD}")" = 1 ]; then - _complete-qubes "any_state" + _complete-qubes "any_state" else _complete-filenames fi diff --git a/files/git/.config/git/config b/files/git/.config/git/config index 6963ffb..d9421d9 100644 --- a/files/git/.config/git/config +++ b/files/git/.config/git/config @@ -9,7 +9,7 @@ [alias] ; https://git.wiki.kernel.org/index.php/Aliases - ; https://github.com/schacon/gitscm/tree/master + ; https://github.com/schacon/gitscm/tree/master ; Abbreviations co = checkout br = branch diff --git a/files/git/.config/git/template/hooks/pre-receive.sample b/files/git/.config/git/template/hooks/pre-receive.sample index 827a916..51c9ca3 100755 --- a/files/git/.config/git/template/hooks/pre-receive.sample +++ b/files/git/.config/git/template/hooks/pre-receive.sample @@ -1,6 +1,6 @@ #!/bin/sh -# SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. +# SPDX-FileCopyrightText: 2023 - 2024 Benjamin Grande M. S. # # SPDX-License-Identifier: AGPL-3.0-or-later @@ -89,8 +89,8 @@ check_signed_push_keyring(){ done gpg_out="$("$gpg" --status-fd=1 --no-default-keyring \ - --homedir "${GIT_PUSH_CERT_PGPHOMEDIR}" \ - --verify "$cert_sig" "$cert_msg" 2>&1)" + --homedir "${GIT_PUSH_CERT_PGPHOMEDIR}" \ + --verify "$cert_sig" "$cert_msg" 2>&1)" gpg_ec="$?" gpg_sig="$(echo "$gpg_out" | awk '/ GOODSIG /{print $3}')" if test "$gpg_ec" = "0"; then diff --git a/files/sh/.config/dircolors/dircolors b/files/sh/.config/dircolors/dircolors index d0eb938..8495619 100644 --- a/files/sh/.config/dircolors/dircolors +++ b/files/sh/.config/dircolors/dircolors @@ -1,7 +1,7 @@ # dircolors ## SPDX-FileCopyrightText: 2004 - 2022 Tim Pope -## SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. +## SPDX-FileCopyrightText: 2023 - 2024 Benjamin Grande M. S. ## ## SPDX-License-Identifier: AGPL-3.0-or-later @@ -52,7 +52,7 @@ TERM xterm* #RESET 0 # reset to "normal" color DIR 01;34 # directory LINK 01;36 # symbolic link. (If you set this to 'target' instead of a - # numerical value, the color is as for the file pointed to.) +# numerical value, the color is as for the file pointed to.) # MULTIHARDLINK 00 # regular file with more than one link FIFO 33 # pipe SOCK 01;35 # socket diff --git a/files/sh/.config/sh/shrc b/files/sh/.config/sh/shrc index da44286..2479b7d 100644 --- a/files/sh/.config/sh/shrc +++ b/files/sh/.config/sh/shrc @@ -1,7 +1,7 @@ #!/bin/sh ## SPDX-FileCopyrightText: 2004 - 2022 Tim Pope -## SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. +## SPDX-FileCopyrightText: 2023 - 2024 Benjamin Grande M. S. ## ## SPDX-License-Identifier: AGPL-3.0-or-later @@ -39,7 +39,7 @@ if has lsblk; then alias lsblku='lsblk -o $_lsblk_options,UUID,PARTUUID' fi if ! grep --color 2>&1 | grep -qE "(unrecognized|unknown) option" && - ! grep --exclude 2>&1 | grep -qE "(unrecognized|unknown) option" + ! grep --exclude 2>&1 | grep -qE "(unrecognized|unknown) option" then alias grep="grep --exclude='.*.swp' --exclude='*~' --color=auto" fi @@ -127,7 +127,7 @@ fi ## }}} ## {{{ Git if { ! test -f /usr/share/whonix/marker && has git; } || - { test -f /usr/share/whonix/marker && git -v >/dev/null 2>&1; } + { test -f /usr/share/whonix/marker && git -v >/dev/null 2>&1; } then ## Whonix UWT wrapper circumvents the command existence check. alias g="git" diff --git a/files/sh/.config/zsh/.zshrc b/files/sh/.config/zsh/.zshrc index ac2c930..3b3bea3 100644 --- a/files/sh/.config/zsh/.zshrc +++ b/files/sh/.config/zsh/.zshrc @@ -1,7 +1,7 @@ #!/usr/bin/env zsh ## SPDX-FileCopyrightText: 2004 - 2022 Tim Pope -## SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. +## SPDX-FileCopyrightText: 2023 - 2024 Benjamin Grande M. S. ## ## SPDX-License-Identifier: AGPL-3.0-or-later @@ -158,7 +158,7 @@ zstyle ':completion:*' squeeze-slashes true zstyle ':completion:*' use-compctl true zstyle ':completion:*' verbose true zstyle ':completion:*:*:-command-:*:*' file-patterns \ - '*(#q-*):executables:Executables *(-/):directories:Directories' + '*(#q-*):executables:Executables *(-/):directories:Directories' zstyle -e ':completion:*:*:-command-:*:*' tag-order ' reply=(" executables:Executables:Executables diff --git a/files/vim/.config/vim/after/colors/vividchalk.vim b/files/vim/.config/vim/after/colors/vividchalk.vim index df92f27..bc8f20b 100644 --- a/files/vim/.config/vim/after/colors/vividchalk.vim +++ b/files/vim/.config/vim/after/colors/vividchalk.vim @@ -14,7 +14,7 @@ if has("gui_running") endif hi clear if exists("syntax_on") - syntax reset + syntax reset endif let colors_name = "vividchalk"