databricks-cli/libs/process
Denis Bilenko 0b80784df7
Enable testifylint and fix the issues (#2065)
## Changes
- Enable new linter: testifylint.
- Apply fixes with --fix.
- Fix remaining issues (mostly with aider).

There were 2 cases we --fix did the wrong thing - this seems to a be a
bug in linter: https://github.com/Antonboom/testifylint/issues/210

Nonetheless, I kept that check enabled, it seems useful, just need to be
fixed manually after autofix.

## Tests
Existing tests
2025-01-02 12:03:41 +01:00
..
background.go Added process stubbing for easier testing of launched subprocesses (#963) 2023-11-09 14:24:05 +00:00
background_test.go Enable testifylint and fix the issues (#2065) 2025-01-02 12:03:41 +01:00
forwarded.go Added process stubbing for easier testing of launched subprocesses (#963) 2023-11-09 14:24:05 +00:00
forwarded_test.go Enable testifylint and fix the issues (#2065) 2025-01-02 12:03:41 +01:00
opts.go Attempt to reduce test flakiness on Windows (#1845) 2024-10-24 12:03:12 +00:00
opts_test.go Enable testifylint and fix the issues (#2065) 2025-01-02 12:03:41 +01:00
stub.go Enable errcheck everywhere and fix or silent remaining issues (#1987) 2024-12-11 13:26:00 +01:00
stub_test.go Add error checking in tests and enable errcheck there (#1980) 2024-12-09 13:56:41 +01:00