From 7360deee7451d685120bf529e2fdb821a3023110 Mon Sep 17 00:00:00 2001 From: Daniel Rainer Date: Mon, 2 Feb 2026 17:42:25 +0100 Subject: [PATCH] format: remove trailing whitespace Part of #12408 --- share/completions/apkanalyzer.fish | 4 ++-- share/completions/bzr.fish | 2 +- share/completions/fab.fish | 2 +- share/completions/pkg.fish | 2 +- share/completions/rm.fish | 2 +- share/completions/shortcuts.fish | 6 +++--- share/completions/stow.fish | 2 +- tests/checks/test.fish | 10 +++++----- tests/checks/ulimit.fish | 2 +- 9 files changed, 16 insertions(+), 16 deletions(-) diff --git a/share/completions/apkanalyzer.fish b/share/completions/apkanalyzer.fish index f72044e1b..0cca90274 100644 --- a/share/completions/apkanalyzer.fish +++ b/share/completions/apkanalyzer.fish @@ -29,7 +29,7 @@ complete -n '__fish_seen_subcommand_from apk; and __fish_seen_subcommand_from co complete -n "__fish_seen_subcommand_from apk; and __fish_seen_subcommand_from $apk_subcommands" -c apkanalyzer -ka '(__fish_complete_suffix .apk)' -# files +# files complete -f -n "__fish_seen_subcommand_from files; and not __fish_seen_subcommand_from $apk_subcommands" -c apkanalyzer -a list -d 'Lists all files in the APK' complete -f -n "__fish_seen_subcommand_from files; and not __fish_seen_subcommand_from $apk_subcommands" -c apkanalyzer -a cat -d 'Prints out the file contents' # files options @@ -69,7 +69,7 @@ complete -n '__fish_seen_subcommand_from dex; and __fish_seen_subcommand_from co complete -n "__fish_seen_subcommand_from dex; and __fish_seen_subcommand_from $dex_subcommands" -c apkanalyzer -ka '(__fish_complete_suffix .apk)' complete -n '__fish_seen_subcommand_from dex; and __fish_seen_subcommand_from code' -c apkanalyzer -ka '(__fish_complete_suffix .class)' -# resources +# resources complete -f -n "__fish_seen_subcommand_from resources; and not __fish_seen_subcommand_from $resources_subcommands" -c apkanalyzer -a packages -d 'Prints a list of the packages that are defined in the resources table' complete -f -n "__fish_seen_subcommand_from resources; and not __fish_seen_subcommand_from $resources_subcommands" -c apkanalyzer -a configs -d 'Prints a list of configurations for the specified type' complete -f -n "__fish_seen_subcommand_from resources; and not __fish_seen_subcommand_from $resources_subcommands" -c apkanalyzer -a value -d 'Prints the value of the resource specified by config, name, and type' diff --git a/share/completions/bzr.fish b/share/completions/bzr.fish index e2d9bcf16..f75d9d27f 100644 --- a/share/completions/bzr.fish +++ b/share/completions/bzr.fish @@ -102,7 +102,7 @@ complete -f -c bzr -n '__fish_seen_subcommand_from check' -l tree -d 'Check the complete -f -c bzr -n '__fish_seen_subcommand_from check' -l repo -d 'Check the repository related to the current directory' complete -f -c bzr -n '__fish_seen_subcommand_from check' -l branch -d 'Check the branch related to the current directory' -# Common long/short options +# Common long/short options set -l $cmds init branch add ignore mv status diff merge commit send log check complete -f -c bzr -n '__fish_seen_subcommand_from $cmds' -l usage -d 'Show usage message and options' complete -f -c bzr -n '__fish_seen_subcommand_from $cmds' -s h -l help -d 'Show help message' diff --git a/share/completions/fab.fish b/share/completions/fab.fish index 0aeeb3520..72191ff2c 100644 --- a/share/completions/fab.fish +++ b/share/completions/fab.fish @@ -6,7 +6,7 @@ function __fish_complete_fab_tasks end end -# tasks +# tasks complete -x -c fab -a "(__fish_complete_fab_tasks)" # options diff --git a/share/completions/pkg.fish b/share/completions/pkg.fish index 5951e4eba..3aaa8dbc8 100644 --- a/share/completions/pkg.fish +++ b/share/completions/pkg.fish @@ -168,7 +168,7 @@ complete -c pkg -n '__fish_pkg_is list' -xa '(pkg query "%n")' # update complete -c pkg -n '__fish_pkg_is add update' -s f -l force -d "Force a full download of a repository" -# alias +# alias set -l with_package_names all-depends annotations build-depends cinfo comment csearch desc iinfo isearch \ list options origin provided-depends roptions shared-depends show size diff --git a/share/completions/rm.fish b/share/completions/rm.fish index 9a32bd434..6dff389fe 100644 --- a/share/completions/rm.fish +++ b/share/completions/rm.fish @@ -16,7 +16,7 @@ else # macos: rm [-fidPRrvW ] file ... # netbsd: rm [-fidPRrvWx ] file ... # freebsd: rm [-fidPRrvWxI] file ... - # dragonfly: rm [-fidPRrvWxI] file ... + # dragonfly: rm [-fidPRrvWxI] file ... complete -c rm -s f -d "Never prompt for removal" complete -c rm -s i -d "Prompt for removal" diff --git a/share/completions/shortcuts.fish b/share/completions/shortcuts.fish index 8ce0a87dd..c27791ecb 100644 --- a/share/completions/shortcuts.fish +++ b/share/completions/shortcuts.fish @@ -9,13 +9,13 @@ if test "$(command -s shortcuts)" = /usr/bin/shortcuts command shortcuts --generate-completion-script=fish | source end -# output is like: +# output is like: # function __fish_shortcuts_using_command # set cmd (commandline -xpc) -# if test (count $cmd) -eq (count $argv) +# if test (count $cmd) -eq (count $argv) # for i in (seq (count $argv)) -# if test $cmd[$i] != $argv[$i] +# if test $cmd[$i] != $argv[$i] # return 1 # end # end diff --git a/share/completions/stow.fish b/share/completions/stow.fish index 553a9e9c9..1d7820e8c 100644 --- a/share/completions/stow.fish +++ b/share/completions/stow.fish @@ -1,5 +1,5 @@ # Sources: -# stow --help +# stow --help # https://www.gnu.org/software/stow/manual/stow.html # https://git.savannah.gnu.org/cgit/stow.git/tree/NEWS diff --git a/tests/checks/test.fish b/tests/checks/test.fish index ffcddba93..9b738ce9a 100644 --- a/tests/checks/test.fish +++ b/tests/checks/test.fish @@ -106,7 +106,7 @@ test -d #CHECKERR: test: Missing argument at index 2 #CHECKERR: -d #CHECKERR: ^ -#CHECKERR: {{.*}}test.fish (line {{\d+}}): +#CHECKERR: {{.*}}test.fish (line {{\d+}}): #CHECKERR: test -d #CHECKERR: ^ @@ -114,14 +114,14 @@ test foo #CHECKERR: test: Missing argument at index 2 #CHECKERR: foo #CHECKERR: ^ -#CHECKERR: {{.*}}test.fish (line {{\d+}}): +#CHECKERR: {{.*}}test.fish (line {{\d+}}): #CHECKERR: test foo #CHECKERR: ^ test "" #CHECKERR: test: Missing argument at index 2 #CHECKERR: ^ -#CHECKERR: {{.*}}test.fish (line {{\d+}}): +#CHECKERR: {{.*}}test.fish (line {{\d+}}): #CHECKERR: test "" #CHECKERR: ^ @@ -129,7 +129,7 @@ test -z "" -a foo #CHECKERR: test: Missing argument at index 5 #CHECKERR: -z -a foo #CHECKERR: ^ -#CHECKERR: {{.*}}test.fish (line {{\d+}}): +#CHECKERR: {{.*}}test.fish (line {{\d+}}): #CHECKERR: test -z "" -a foo #CHECKERR: ^ @@ -138,7 +138,7 @@ echo $status test #CHECKERR: test: Expected at least one argument -#CHECKERR: {{.*}}test.fish (line {{\d+}}): +#CHECKERR: {{.*}}test.fish (line {{\d+}}): #CHECKERR: test #CHECKERR: ^ #CHECKERR: (Type 'help test' for related documentation) diff --git a/tests/checks/ulimit.fish b/tests/checks/ulimit.fish index 3fa3bef7e..d6142f30f 100644 --- a/tests/checks/ulimit.fish +++ b/tests/checks/ulimit.fish @@ -8,7 +8,7 @@ ulimit --core-size ulimit 4352353252352352334 #CHECKERR: ulimit: Invalid limit '4352353252352352334' -#CHECKERR: +#CHECKERR: #CHECKERR: {{.*}}checks/ulimit.fish (line {{\d+}}): #CHECKERR: ulimit 4352353252352352334 #CHECKERR: ^