Skip to content

Fix and enable tfproviderlint R002 check: Remove extraneous dereferences in Set() calls #9952

@ryndaniels

Description

@ryndaniels

Description

As per tfproviderlint check R002, we want to remove extraneous * dereferences to Set() calls, since Set() automatically handles pointers and the extra * without a nil check can cause a panic.

Failing example:

var stringPtr *string

d.Set("example", *stringPtr)

Should become:

var stringPtr *string

d.Set("example", stringPtr)

Definition of Done

  • In GNUmakefile, add -R002 to tfproviderlint command under lint target and have TravisCI testing pass

Metadata

Metadata

Assignees

Labels

linterPertains to changes to or issues with the various linters.technical-debtAddresses areas of the codebase that need refactoring or redesign.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions