mirror of https://github.com/databricks/cli.git
merge comments from old lint:ignore directives into //nolint
This commit is contained in:
parent
82ac762aa8
commit
4639a73343
|
@ -56,8 +56,7 @@ func (m *importResource) Apply(ctx context.Context, b *bundle.Bundle) diag.Diagn
|
|||
buf := bytes.NewBuffer(nil)
|
||||
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
|
||||
//nolint:staticcheck // SA1019 We use legacy -state flag for now to plan the import changes based on temporary state file
|
||||
changed, err := tf.Plan(ctx, tfexec.State(tmpState), tfexec.Target(importAddress))
|
||||
if err != nil {
|
||||
return diag.Errorf("terraform plan: %v", err)
|
||||
|
|
|
@ -250,8 +250,8 @@ func (t *cobraTestRunner) RunBackground() {
|
|||
// 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.
|
||||
// See https://github.com/spf13/cobra/blob/a6f198b635c4b18fff81930c40d464904e55b161/command.go#L1062-L1066
|
||||
//lint:ignore SA1012 cobra sets the context and doesn't clear it
|
||||
cli.SetContext(nil) //nolint:staticcheck
|
||||
//nolint:staticcheck // cobra sets the context and doesn't clear it
|
||||
cli.SetContext(nil)
|
||||
|
||||
// Make caller aware of error.
|
||||
errch <- err
|
||||
|
|
Loading…
Reference in New Issue