Releases: bflad/tfproviderlint
Releases · bflad/tfproviderlint
v0.22.0
FEATURES
- New Check:
XR006
: check forResource
that implementsTimeouts
for missingCreate
,Delete
,Read
, orUpdate
implementation (#222)
ENHANCEMENTS
- passes/helper/schema/crudfuncinfo: Support
CreateContextFunc
,DeleteContextFunc
,ReadContextFunc
, andUpdateContextFunc
matches (#221) - passes/R014: Support
CreateContextFunc
,DeleteContextFunc
,ReadContextFunc
, andUpdateContextFunc
reports (#221)
BUG FIXES
- helper/terraformtype/helper/schema: Prevent panics with function or variable
Elem
field values
Docker images
docker pull bflad/tfproviderlint:0.22.0
docker pull bflad/tfproviderlint:0.22
docker pull bflad/tfproviderlint:latest
v0.21.0
FEATURES
- New Check:
R019
: check for(*schema.ResourceData).HasChanges()
receiver method usage with many arguments - New Check:
V009
: check forvalidation.StringMatch()
calls with empty message argument - New Check:
V010
: check forvalidation.StringDoesNotMatch()
calls with empty message argument
BUG FIXES
- passes/AT009: Correct constant detection for
acctest.RandStringFromCharSet()
calls that can beacctest.RandString
(#215)
Docker images
docker pull bflad/tfproviderlint:0.21.0
docker pull bflad/tfproviderlint:0.21
docker pull bflad/tfproviderlint:latest
v0.20.0
FEATURES
- New Check:
AT009
: check foracctest.RandStringFromCharSet()
calls that can beacctest.RandString
ENHANCEMENTS
- passes/helper/acctest: Pass for collecting
acctest.RandStringFromCharSet()
calls - passes/АТ001: Add optional
-ignored-filename-suffixes
and-ignored-filename-prefixes
flags (#210)
Docker images
docker pull bflad/tfproviderlint:0.20.0
docker pull bflad/tfproviderlint:0.20
docker pull bflad/tfproviderlint:latest
v0.19.0
FEATURES
- New Check:
R018
: check fortime.Sleep()
function usage
ENHANCEMENTS
- passes/commentignore: Support multiple comma separated keys and extra
//
comments (#208) - passes/stdlib: Pass for collecting
time.Sleep()
calls
BUG FIXES
- helper/astutils: Prevent
(*types.Info).ObjectOf()
type assertion panics (#207)
Docker images
docker pull bflad/tfproviderlint:0.19.0
docker pull bflad/tfproviderlint:0.19
docker pull bflad/tfproviderlint:latest
v0.18.0
ENHANCEMENTS
- passes/helper/validation: Pass for collecting
validation.StringInSlice()
calls - passes/stdlib: Pass for collecting
fmt.Errorf()
calls
Docker images
docker pull bflad/tfproviderlint:0.18.0
docker pull bflad/tfproviderlint:0.18
docker pull bflad/tfproviderlint:latest
v0.17.0
FEATURES
- New Check:
R015
: check for(*schema.ResourceData).SetId()
receiver method usage with unstableresource.UniqueId()
value - New Check:
R016
: check for(*schema.ResourceData).SetId()
receiver method usage with unstableresource.PrefixedUniqueId()
value - New Check:
R017
: check for(*schema.ResourceData).SetId()
receiver method usage with unstabletime.Now()
value
ENHANCEMENTS
- helper/analysisutils: Add
StdlibFunctionCallExprAnalyzer
with associated runner - helper/astutils: Support standard library handling equivalents (no vendoring) for package functions
- passes/helper/schema: Pass for collecting
(*schema.ResourceData).SetId()
calls - passes/stdlib: Pass for collecting
fmt.Sprintf()
calls
Docker images
docker pull bflad/tfproviderlint:0.17.0
docker pull bflad/tfproviderlint:0.17
docker pull bflad/tfproviderlint:latest
v0.16.0
BREAKING CHANGES
- helper/terraformtype/helper/resource: Real SDK v1 types inside
RetryErrorInfo
,TestCaseInfo
, andTestStepInfo
have been replaced with internal representations to prevent importing SDK versions. - helper/terraformtype/helper/schema: Real SDK v1 types inside
SchemaInfo
andResourceInfo
have been replaced with internal representations to prevent importing SDK versions.
FEATURES
- New Extra Check:
XS002
: check formap[string]*Schema
that keys are in alphabetical order (#177)
Docker images
docker pull bflad/tfproviderlint:0.16.0
docker pull bflad/tfproviderlint:0.16
docker pull bflad/tfproviderlint:latest
v0.15.0
BREAKING CHANGES
- helper/analysisfixtest: Removed package since testing for
SuggestedFixes
is now available withgolang.org/x/tools/go/analysis/analysistest.RunWithSuggestedFixes
FEATURES
- New Extra Check:
XR005
: check forResource
thatDescription
is configured
ENHANCEMENTS
- helper/terraformtype/helper/schema: Support basic linking of
ResourceInfo
andSchemaInfo
(#129) - passes: Initial support for Terraform Plugin SDK v2
- passes/terraform: Pass for collecting
terraform.ResourceProviderFactory
selectors - xpasses: Initial support for Terraform Plugin SDK v2
Docker images
docker pull bflad/tfproviderlint:0.15.0
docker pull bflad/tfproviderlint:0.15
docker pull bflad/tfproviderlint:latest
v0.14.0
ENHANCEMENTS
- helper/analysisutils: Add
DeprecatedWithReplacementPointerSelectorExprAnalyzer
,TypeAssertExprRemovalAnalyzer
andTypeAssertExprAnalyzer
with associated runners - helper/astutils: Support
*ast.StarExpr
inIsPackageFunc
- helper/terraformtype/helper/schema: Constants and functions for working with
Provider
type - helper/terraformtype/terraform: Constants and functions for working with
ResourceProviderFactory
type - passes/helper/schema: Pass for collecting
*schema.Provider
type assertions - passes/terraform: Pass for collecting
terraform.ResourceProvider
selectors
Docker images
docker pull bflad/tfproviderlint:0.14.0
docker pull bflad/tfproviderlint:0.14
docker pull bflad/tfproviderlint:latest
v0.13.0
BREAKING CHANGES
- helper/analysisutils:
DeprecatedReceiverMethodSelectorExprAnalyzer
andDeprecatedReceiverMethodSelectorExprRunner
now expect an*ast.CallExpr
analyzer and package path (e.g.github.com/hashicorp/terraform-plugin-sdk/helper/validation
) instead of just package name (e.g.validation
) - helper/analysisutils:
DeprecatedWithReplacementSelectorExprAnalyzer
andDeprecatedWithReplacementSelectorExprRunner
now expect package paths (e.g.github.com/hashicorp/terraform-plugin-sdk/helper/validation
) instead of just package names (e.g.validation
)
ENHANCEMENTS
- helper/analysisutils:
DeprecatedReceiverMethodSelectorExprRunner
now implementsSuggestedFixes
- helper/analysisutils:
DeprecatedWithReplacementSelectorExprRunner
now implementsSuggestedFixes
- helper/astutils: Add
HasFieldListLength
,IsExprTypeBool
,IsExprTypeMapStringInterface
functions - helper/terraformtype/helper/customdiff: Constants and functions for working with entire package
- helper/terraformtype/helper/schema: Constants and functions for working with
CustomizeDiffFunc
type - helper/terraformtype/helper/schema: Constants and functions for working with
StateUpgradeFunc
type - helper/terraformtype/terraform: Constants and functions for working with
ResourceProvider
type - passes/helper/customdiff: Passes for collecting
customdiff
function information for further analysis - passes/helper/schema: Pass for collecting
CustomizeDiffFunc
function information for further analysis - passes/helper/schema: Pass for collecting
StateUpgradeFunc
function information for further analysis - passes/R007: Support suggested fix
- passes/R008: Support suggested fix
- passes/V002: Support suggested fix
- passes/V003: Support suggested fix
- passes/V004: Support suggested fix
- passes/V005: Support suggested fix
- passes/V006: Support suggested fix
- passes/V007: Support suggested fix
- passes/V008: Support suggested fix
Docker images
docker pull bflad/tfproviderlint:0.13.0
docker pull bflad/tfproviderlint:0.13
docker pull bflad/tfproviderlint:latest