Перейти к файлу
zjhe 501f1b83f2 get ready for next release 2023-04-11 22:24:44 +08:00
.github/workflows download terraform-provider-azurerm via git, in linux http getter seems not respect context deadline. add badge to readme. fix incorrect ignore argument for gosec job 2022-11-03 15:32:04 +08:00
docs add description of functions, structs and interfaces 2022-09-15 00:38:42 +08:00
install use terraform-azurerm-schema repo to get resource schema. azurerm_resource_tag rule doesn't check nested block anymore. 2023-04-11 18:02:11 +08:00
integration Refactor code, remove ignore_config logic, will add back in the future. 2022-09-20 22:49:11 +08:00
project get ready for next release 2023-04-11 22:24:44 +08:00
rules refactor 2023-04-11 19:38:13 +08:00
script bump version. fix a nil panic issue. add doc test 2022-09-22 23:26:37 +08:00
scripts 修改: scripts/updateSubmodule.sh 2022-07-30 23:50:37 +08:00
version refactor code. inject GITHUB_TOKEN for version_ensure_test 2022-09-21 22:32:02 +08:00
.gitignore init 2022-08-07 18:40:01 +08:00
.gitmodules init 2022-08-07 18:40:01 +08:00
.goreleaser.yml fix goreleaser config 2022-09-22 10:33:52 +08:00
CHANGELOG.md update changelog, bump version 2022-11-03 20:51:10 +08:00
LICENSE init 2022-07-18 12:22:19 +08:00
Makefile re-write build script with go so windows machine can run e2e test as long asmake and go have been installed. 2022-09-21 13:44:18 +08:00
README.md Bump dependent version 2023-03-21 16:22:38 +08:00
SECURITY.md Microsoft mandatory file 2023-01-24 15:50:29 +00:00
go.mod use terraform-azurerm-schema repo to get resource schema. azurerm_resource_tag rule doesn't check nested block anymore. 2023-04-11 18:02:11 +08:00
go.sum use terraform-azurerm-schema repo to get resource schema. azurerm_resource_tag rule doesn't check nested block anymore. 2023-04-11 18:02:11 +08:00
main.go bump version. fix a nil panic issue. add doc test 2022-09-22 23:26:37 +08:00

README.md

TFLint Ruleset for terraform-provider-azurerm-ext

test lint e2e

TFLint ruleset extension plugin for Terraform Provider for Azure (Resource Manager)

Requirements

  • TFLint v0.35+
  • Go v1.18

Building the plugin

Clone the repository locally and run the following command:

$ make

You can easily install the built plugin with the following:

$ make install

To utilize the lastest Azure API info (this may cause incompatibility with current plugin version):

$ make updateSubmodule
$ make install

Note that if you install the plugin with make install, you must omit the version and source attributes in .tflint.hcl:

plugin "azurerm-ext" {
    enabled = true
}

If you install the plugin with tflint --init, you must specify the following content in .tflint.hcl:

plugin "azurerm-ext" {
    enabled = true
    version = "0.0.1"
    source  = "github.com/DrikoldLun/tflint-ruleset-azurerm-ext"
    signing_key = <<-KEY
    -----BEGIN PGP PUBLIC KEY BLOCK-----

    mQGNBGLtC9wBDADUty0QYzsGe7+Q1e2slFNFw6+SVQKvj+/K3CGrKt1sl8evPLOy
    Q+kNUmCtTSunPgRlxPWICNa/QiV5AhR5Jn7B0o92OG8LjHJ1ThrvzbHVDyCkKPb/
    PzpsSNjnWVxZV3uTO3brzaUOn9nbmfOGBtJQc4V2a9U8Z8X3WVh2LCn3qXb6xRtM
    SP/DIccZHChMQpgYheh3kZIPOvRyLA4Kp8MRB1MOi44aQyfneOA5ryVa7yLNHn1h
    QyKQ0HiGGnCjYS5NEtyBWtzm2xRWEmJRWydsDDDvBLI+44ymhriwZUrS8FVUgiYo
    GjIGp6JOxP/V3HqfCP22I1sfheXFX4jzr0qWasKYGoSn9CoAUxvoO1k19jLCL3cV
    Fw1JC26wIHlTE9GBLNWklgfBJapK34Iqwy9Q5SAuw6gi5ZoGN5kVMqmzWacsxcZZ
    MAAhOdSwOsGNx/Zx6D2eJ8BWsybvdz8RQ3AXx7YCGSwHgNbcgjjRKNQlxs8X60XN
    bQYip6Xu8V2S3Y0AEQEAAbQjTHVuIFpoYW5nIDx6aGFuZ2xuanUyMDE1QGdtYWls
    LmNvbT6JAdEEEwEIADsWIQSNp1KuIvc/Uuj2uScp5xG7/lWJIgUCYu0L3AIbAwUL
    CQgHAgIiAgYVCgkICwIEFgIDAQIeBwIXgAAKCRAp5xG7/lWJIjZxC/0SG46lBuyj
    8og2fdcCTiKdI1IllIjKnrHjh1Hp92ohfD+N9Q729qwN7CmC/MSlhLB2bTUn6HZ0
    Pp6Go+h5V0mGO9CtN15icbvhEpO+k48wGLfX9qNfc5Wod2a8zkyTZ2ZAlEudxEwT
    A7mdpGhi6zLCnsSlC+/A293KnzyIm3/8GwZbOoGBmPOFYb2FLCRvIupFj+VcOsDz
    5ZnmrLVNSC69dDmcXRqRpgdd60J7wS093qqsd0G67Mj7FCxOc4BLfDMKE/MYSJmq
    xRpFak6hjQVYGmUQhkyu+pPAdz+oR5fRCDwlmjtClnTE2IfP6bi4IX3+g+s3GJU0
    bHSh1ImWUvnjJ/G/ZmeYtWWAxt1ZzJj0fjnF6nS+uzh/9bstY4EklMd8cY5v/vmU
    ittjB1KH5IJueDHL5JNoWi0tJVh8vSLuM3HbZ7yWfvE+uaextyfpOPJmIt+z5yOM
    4MHeu12TCIxKrSkdq/Z+3b1FWQTUDPDBr/41fpt22H+Lxf4F2Jcn7Tc=
    =T2nt
    -----END PGP PUBLIC KEY BLOCK-----
    KEY
}

If you want to specify the ignore/retain filename patterns for some rules in this plugin, write the following ignore config in .tflintignore.azurerm-ext.json:

{
  "azurerm_resource_tag" : [
    "^*$",
    "!^main\\.tf$"
  ]
}

The pattern regular expression follows Go syntax, and the prefix ! means the file with such name pattern would still be checked.

Follow the instructions to edit the generated files and open a new pull request.