merge comments from old lint:ignore directives into //nolint

This commit is contained in:
Denis Bilenko 2024-12-04 16:20:56 +01:00
parent 82ac762aa8
commit 4639a73343
2 changed files with 3 additions and 4 deletions

View File

@ -56,8 +56,7 @@ func (m *importResource) Apply(ctx context.Context, b *bundle.Bundle) diag.Diagn
buf := bytes.NewBuffer(nil) buf := bytes.NewBuffer(nil)
tf.SetStdout(buf) tf.SetStdout(buf)
//lint:ignore SA1019 We use legacy -state flag for now to plan the import changes based on temporary state file //nolint:staticcheck // SA1019 We use legacy -state flag for now to plan the import changes based on temporary state file
//nolint:staticcheck
changed, err := tf.Plan(ctx, tfexec.State(tmpState), tfexec.Target(importAddress)) changed, err := tf.Plan(ctx, tfexec.State(tmpState), tfexec.Target(importAddress))
if err != nil { if err != nil {
return diag.Errorf("terraform plan: %v", err) return diag.Errorf("terraform plan: %v", err)

View File

@ -250,8 +250,8 @@ func (t *cobraTestRunner) RunBackground() {
// Reset context on command for the next test. // Reset context on command for the next test.
// These commands are globals so we have to clean up to the best of our ability after each run. // These commands are globals so we have to clean up to the best of our ability after each run.
// See https://github.com/spf13/cobra/blob/a6f198b635c4b18fff81930c40d464904e55b161/command.go#L1062-L1066 // See https://github.com/spf13/cobra/blob/a6f198b635c4b18fff81930c40d464904e55b161/command.go#L1062-L1066
//lint:ignore SA1012 cobra sets the context and doesn't clear it //nolint:staticcheck // cobra sets the context and doesn't clear it
cli.SetContext(nil) //nolint:staticcheck cli.SetContext(nil)
// Make caller aware of error. // Make caller aware of error.
errch <- err errch <- err