pulumi/pkg/codegen/hcl2/model
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
..
format Update error handling (#8406) 2021-11-12 18:37:17 -08:00
pretty Handle recursive types 2023-01-13 11:28:13 -08:00
attribute.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
binder_expression.go Remove traverse errors on dynamic types 2022-11-16 14:41:30 -08:00
binder_expression_test.go ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08:00
block.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
body.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
diagnostics.go Handle recursive types 2023-01-13 11:28:13 -08:00
expression.go Repair tests expecting nil slices 2023-01-11 21:53:04 -08:00
functions.go Initial implementation of simplified invokes for dotnet and nodejs 2023-01-11 14:17:14 -08:00
print_test.go Escape `${` & `%{` in string literals 2022-12-08 10:46:23 +01:00
printer.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
scope.go Remove traverse errors on dynamic types 2022-11-16 14:41:30 -08:00
spec.md Add an HCL2 static typechecker and semantic model. (#4087) 2020-03-18 09:28:57 -07:00
traversable.go Remove traverse errors on dynamic types 2022-11-16 14:41:30 -08:00
type.go Pretty print PCL types 2022-12-19 17:13:15 +01:00
type_collection.go Update error handling (#8406) 2021-11-12 18:37:17 -08:00
type_const.go golangci-lint: Enable staticcheck 2023-01-14 16:59:46 -08:00
type_enum.go golangci-lint: Enable staticcheck 2023-01-14 16:59:46 -08:00
type_eventuals.go [codegen/hcl2] Improve ConversionFrom perf. (#7545) 2021-07-16 09:56:26 -07:00
type_list.go Handle recursive types 2023-01-13 11:28:13 -08:00
type_map.go Handle recursive types 2023-01-13 11:28:13 -08:00
type_none.go Pretty print PCL types 2022-12-19 17:13:15 +01:00
type_object.go Handle recursive types 2023-01-13 11:28:13 -08:00
type_opaque.go Pretty print PCL types 2022-12-19 17:13:15 +01:00
type_opaque_test.go [codegen] simplify opaque types to string newtype (#9770) 2022-06-13 11:13:03 -07:00
type_output.go Handle recursive types 2023-01-13 11:28:13 -08:00
type_promise.go Handle recursive types 2023-01-13 11:28:13 -08:00
type_scope.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
type_set.go Handle recursive types 2023-01-13 11:28:13 -08:00
type_test.go Allow case insensitive prop typecheck on traversal 2022-11-08 09:08:12 -08:00
type_tuple.go Handle recursive types 2023-01-13 11:28:13 -08:00
type_union.go Handle recursive types 2023-01-13 11:28:13 -08:00
utilities.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
visitor.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00