pulumi/pkg/resource/deploy
Abhinav Gupta d8c8c74c5d
golangci-lint: Enable staticcheck
Remove staticcheck from the list of disabled linters.
It's enabled by default in golangci-lint.

This also fixes minor remaining staticcheck issues
that don't merit their own pull requests,
or opts out of those that cannot be fixed yet.

Notably, we're opting out of:

- Resource.Name is deprecated (#9469)
- github.com/golang/protobuf is deprecated (#11869)
- strings.Title has been deprecated (#11870)

Besides that, other issues addressed in this change are:

```
// all issues are in pkg
codegen/schema/docs_parser.go:103:4: SA4006: this value of `text` is never used (staticcheck)
codegen/schema/loader.go:253:3: SA9003: empty branch (staticcheck)
resource/deploy/step_executor.go:328:12: SA9003: empty branch (staticcheck)
resource/deploy/step_generator.go:141:10: SA9003: empty branch (staticcheck)
codegen/pcl/invoke.go:97:10: SA9003: empty branch (staticcheck)
codegen/hcl2/model/type_const.go:57:2: SA9003: empty branch (staticcheck)
codegen/hcl2/model/type_enum.go:99:9: SA4001: &*x will be simplified to x. It will not copy x. (staticcheck)
codegen/go/gen_test.go:399:19: SA4017: HasPrefix is a pure function but its return value is ignored (staticcheck)
```

Depends on #11857, #11858, #11859, #11860, #11862, #11865, #11866, #11867, #11868

Resolves #11808
2023-01-14 16:59:46 -08:00
..
deploytest deploytest/ResourceMonitor: Don't drop deps 2023-01-12 14:08:34 -08:00
providers Phase 3 of the convert mapper 2022-12-01 23:43:43 +00:00
builtins.go First pass of adding the convert mapper 2022-11-29 09:46:44 +00:00
deployment.go Merge #11009 #11027 2022-11-01 10:17:07 +00:00
deployment_executor.go Merge #11009 #11027 2022-11-01 10:17:07 +00:00
deployment_executor_test.go Unparent deleted resources when rebuilding state (#10073) 2022-07-08 14:23:58 -07:00
deployment_test.go Remove source_fixed 2022-11-08 15:55:45 +00:00
doc.go Document Go packages (#6009) 2021-01-11 11:07:59 -07:00
import.go Preallocate slices with a known capacity. 2023-01-11 12:52:51 -08:00
manifest.go Split Manifest type to it's own file (#8712) 2022-01-10 12:25:24 +00:00
plan.go feat(engine): Adds structured alias support to the engine 2022-10-11 17:56:32 -04:00
snapshot.go test # This is a combination of 3 commits. 2022-10-25 16:54:58 -07:00
snapshot_test.go test # This is a combination of 3 commits. 2022-10-25 16:54:58 -07:00
source.go Monitor.Invoke and Provider.Invoke take different arguments (#9323) 2022-04-14 10:59:46 +01:00
source_error.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
source_eval.go Preallocate slices with a known capacity. 2023-01-11 12:52:51 -08:00
source_eval_test.go Add DeletedWith resource option 2022-10-31 12:03:18 +02:00
source_null.go Clone snapshot before testing with it (#8551) 2021-12-09 09:09:48 +00:00
source_query.go Preallocate slices with a known capacity. 2023-01-11 12:52:51 -08:00
source_query_test.go Monitor.Invoke and Provider.Invoke take different arguments (#9323) 2022-04-14 10:59:46 +01:00
state_builder.go Non-mutating snapshot normalization (#10128) 2022-07-18 14:04:19 -04:00
state_builder_test.go Non-mutating snapshot normalization (#10128) 2022-07-18 14:04:19 -04:00
step.go Cleanup diag error 2023-01-11 15:20:35 -08:00
step_executor.go golangci-lint: Enable staticcheck 2023-01-14 16:59:46 -08:00
step_generator.go golangci-lint: Enable staticcheck 2023-01-14 16:59:46 -08:00
step_generator_test.go getDiffInfo: Fix slice length check 2023-01-11 21:53:05 -08:00
target.go Add getOrganization to nodejs and python (#10504) 2022-08-31 10:33:29 +01:00