Skip to content

Releases: bflad/tfproviderlint

v0.22.0

15 Feb 23:19
Compare
Choose a tag to compare

FEATURES

  • New Check: XR006: check for Resource that implements Timeouts for missing Create, Delete, Read, or Update implementation (#222)

ENHANCEMENTS

  • passes/helper/schema/crudfuncinfo: Support CreateContextFunc, DeleteContextFunc, ReadContextFunc, and UpdateContextFunc matches (#221)
  • passes/R014: Support CreateContextFunc, DeleteContextFunc, ReadContextFunc, and UpdateContextFunc 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

06 Dec 22:14
f493ff4
Compare
Choose a tag to compare

FEATURES

  • New Check: R019: check for (*schema.ResourceData).HasChanges() receiver method usage with many arguments
  • New Check: V009: check for validation.StringMatch() calls with empty message argument
  • New Check: V010: check for validation.StringDoesNotMatch() calls with empty message argument

BUG FIXES

  • passes/AT009: Correct constant detection for acctest.RandStringFromCharSet() calls that can be acctest.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

29 Oct 14:56
36f478c
Compare
Choose a tag to compare

FEATURES

  • New Check: AT009: check for acctest.RandStringFromCharSet() calls that can be acctest.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

05 Oct 13:17
58df42d
Compare
Choose a tag to compare

FEATURES

  • New Check: R018: check for time.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

14 Aug 05:01
281c34d
Compare
Choose a tag to compare

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

12 Aug 02:26
92926ff
Compare
Choose a tag to compare

FEATURES

  • New Check: R015: check for (*schema.ResourceData).SetId() receiver method usage with unstable resource.UniqueId() value
  • New Check: R016: check for (*schema.ResourceData).SetId() receiver method usage with unstable resource.PrefixedUniqueId() value
  • New Check: R017: check for (*schema.ResourceData).SetId() receiver method usage with unstable time.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

11 Aug 02:27
e45dbaf
Compare
Choose a tag to compare

BREAKING CHANGES

  • helper/terraformtype/helper/resource: Real SDK v1 types inside RetryErrorInfo, TestCaseInfo, and TestStepInfo have been replaced with internal representations to prevent importing SDK versions.
  • helper/terraformtype/helper/schema: Real SDK v1 types inside SchemaInfo and ResourceInfo have been replaced with internal representations to prevent importing SDK versions.

FEATURES

  • New Extra Check: XS002: check for map[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

05 Aug 14:36
Compare
Choose a tag to compare

BREAKING CHANGES

  • helper/analysisfixtest: Removed package since testing for SuggestedFixes is now available with golang.org/x/tools/go/analysis/analysistest.RunWithSuggestedFixes

FEATURES

  • New Extra Check: XR005: check for Resource that Description is configured

ENHANCEMENTS

  • helper/terraformtype/helper/schema: Support basic linking of ResourceInfo and SchemaInfo (#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

24 Mar 02:33
71b6fc9
Compare
Choose a tag to compare

ENHANCEMENTS

  • helper/analysisutils: Add DeprecatedWithReplacementPointerSelectorExprAnalyzer, TypeAssertExprRemovalAnalyzer and TypeAssertExprAnalyzer with associated runners
  • helper/astutils: Support *ast.StarExpr in IsPackageFunc
  • 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

23 Mar 21:02
Compare
Choose a tag to compare

BREAKING CHANGES

  • helper/analysisutils: DeprecatedReceiverMethodSelectorExprAnalyzer and DeprecatedReceiverMethodSelectorExprRunner 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 and DeprecatedWithReplacementSelectorExprRunner 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 implements SuggestedFixes
  • helper/analysisutils: DeprecatedWithReplacementSelectorExprRunner now implements SuggestedFixes
  • 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