codeclimate-tflint

command module
v0.0.0-...-062f805 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2023 License: LGPL-3.0 Imports: 14 Imported by: 0

README

Code Climate tflint Engine

Code Climate

codeclimate-tflint is a Code Climate engine that wraps TFLint. You can run it on your command line using the Code Climate CLI, or on our hosted analysis platform.

TFLint is a pluggable Terraform Linter.

This engine is based on TFLint v0.43.0

Installation
  1. If you haven't already, install the Code Climate CLI.
  2. Run codeclimate engines:enable tflint. This command both installs the engine and enables it in your .codeclimate.yml file.
  3. You're ready to analyze! Browse into your project's folder and run codeclimate analyze.
Configuration

By default, TFLint will look for a .tflint.hcl file in the root of your project. Optionally configure Code Climate to look at a different path:

plugins:
  tflint:
    enabled: true
    config:
      config: optional/path/to/.tflint.hcl

In the same way you can set all the options supported by TFLint (more details here):

# .codeclimate.yml
plugins:
  tflint:
    enabled: true
    config:
      config: "" # --config=FILE
      ignore_module: [ # --ignore-module=SOURCE
        "..."
      ]
      enable_rule: [ # --enable-rule=RULE_NAME
        "..."
      ]
      disable_rule: [ # --disable-rule=RULE_NAME
        "..."
      ]
      only: [ # --only=RULE_NAME
        "..."
      ]
      enable_plugin: [ # --enable-plugin=PLUGIN_NAME
        "..."
      ]
      var_file: "" # --var-file=FILE
      var: [ # --var='foo=bar'
        "..."
      ]
      module: true # --module 
Need help?

For help with TFLint, check out their documentation.

If you're running into a Code Climate issue, first look over this project's GitHub Issues, as your question may have already been covered. If not, go ahead and open a support ticket with us.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL