pulumi/sdk/go/common/util/cmdutil
Julien 7e2ccd8757
Prepare golangci-lint upgrade (#17065)
The latest version of golangci-lint (1.60.3) flags a bunch of new issues
in our code base. This PR addresses part of them ahead of the upgrade.

* A dynamic string passed to printf style functions as first argument,
this can lead to bad `%` interpolations. The fix is typically to use
`"%s"` as first argument and pass the dynamic string as 2nd argument.
* Using `os.ModePerm` in tests instead of more restricted file
permissions. The fix is to use 0o600 for files, or 0o700 for
directories.
* Int conversion overflows. The fix has to be done case by case,
checking that no overflow can occur.
2024-08-28 07:57:38 +00:00
..
testdata Fix TestTerminate_gracefulShutdown/python flake (#16471) 2024-06-26 05:50:58 +00:00
args.go Update golangci-lint (#14624) 2023-11-21 15:16:13 +00:00
child_js.go [display] Enable WASM compilation (#16246) 2024-05-24 20:27:56 +00:00
child_unix.go [display] Enable WASM compilation (#16246) 2024-05-24 20:27:56 +00:00
child_windows.go Revert "resource/plugin: Shut down plugins gracefully (#13795)" (#13844) 2023-08-31 16:29:55 +00:00
console.go Prepare golangci-lint upgrade (#17065) 2024-08-28 07:57:38 +00:00
console_input.go [display] Enable WASM compilation (#16246) 2024-05-24 20:27:56 +00:00
console_input_js.go [display] Enable WASM compilation (#16246) 2024-05-24 20:27:56 +00:00
console_password.go Prepare golangci-lint upgrade (#17065) 2024-08-28 07:57:38 +00:00
console_test.go cmdutil.ReadConsole[NoEcho]: Use bubbletea (#13815) 2023-08-30 17:08:44 +00:00
diag.go Remove Colorization.Auto (#15030) 2024-01-03 16:33:07 +00:00
exit.go Prepare golangci-lint upgrade (#17065) 2024-08-28 07:57:38 +00:00
exit_test.go Clean up multi-error rendering (#17039) 2024-08-22 10:32:45 +00:00
profile.go [cli] Better memory profiling 2023-05-25 09:20:12 -07:00
spinner.go Add `--suppress-progresss` flag to CLI (#14690) 2024-02-05 11:48:10 +00:00
stack.go Support always qualifying stack names (#11081) (#15857) 2024-04-04 10:11:46 +00:00
term.go feat(cmdutil): TerminateProcessGroup for graceful termination (#13792) 2023-08-27 22:05:44 +00:00
term_js.go [display] Enable WASM compilation (#16246) 2024-05-24 20:27:56 +00:00
term_test.go Fix TestTerminate_gracefulShutdown/python flake (#16471) 2024-06-26 05:50:58 +00:00
term_unix.go [display] Enable WASM compilation (#16246) 2024-05-24 20:27:56 +00:00
term_windows.go feat(cmdutil): TerminateProcessGroup for graceful termination (#13792) 2023-08-27 22:05:44 +00:00
trace.go Reimport appdash from our mirror (#14701) 2023-11-30 14:21:35 +00:00