Keith Maxwell
88fa0b9294
Add a terraform linter
...
This linter uses the check functionality built into terraform. ALE
already has a fixer using `terraform fmt` but this doesn't provide error
messages. ALE already has a linter using `tflint` but this requires an
extra application to be installed.
For example this linter will give a warning that ! is an illegal
character in the line below:
variable "example" !{}
This linter runs the buffer through the command below and parses the
output:
terraform fmt -no-color -check=true -
This commit includes a basic implementation, documentation and tests.
The only option is to control which executable is run.
Tested with:
$ terraform -version
Terraform v0.11.13
2019-05-23 15:49:02 +01:00
..
2019-02-22 18:05:04 +00:00
2019-02-22 18:05:04 +00:00
2018-09-04 16:51:18 +01:00
2019-02-22 18:05:04 +00:00
2019-05-20 13:00:32 +01:00
2019-02-22 18:05:04 +00:00
2019-02-22 18:05:04 +00:00
2019-05-20 22:08:03 +01:00
2019-04-10 18:52:52 +01:00
2019-04-10 20:59:58 +01:00
2018-06-20 14:59:51 +02:00
2019-02-22 18:05:04 +00:00
2019-02-22 18:05:04 +00:00
2019-05-20 22:08:03 +01:00
2019-02-22 18:05:04 +00:00
2019-02-22 18:05:04 +00:00
2019-04-11 16:24:59 +08:00
2019-02-22 18:05:04 +00:00
2019-02-22 18:05:04 +00:00
2019-02-06 20:29:58 -02:00
2019-04-07 14:58:06 +01:00
2018-09-04 16:51:18 +01:00
2019-02-22 18:05:04 +00:00
2019-02-22 18:05:04 +00:00
2019-04-07 15:34:39 +01:00
2019-03-21 02:55:49 -04:00
2019-05-19 21:16:17 +01:00
2019-04-07 14:58:06 +01:00
2018-03-23 12:17:54 +00:00
2019-02-22 18:05:04 +00:00
2017-12-20 22:53:03 -06:00
2019-02-22 18:05:04 +00:00
2019-02-22 18:05:04 +00:00
2019-02-22 18:05:04 +00:00
2019-04-10 19:23:16 +01:00
2019-02-22 18:05:04 +00:00
2019-02-22 18:05:04 +00:00
2019-04-07 15:34:39 +01:00
2019-02-22 18:05:04 +00:00
2019-04-17 14:26:09 +01:00
2019-02-02 16:20:14 +01:00
2019-04-11 16:24:59 +08:00
2019-02-22 18:05:04 +00:00
2019-02-22 18:05:04 +00:00
2019-05-22 09:23:03 +09:00
2019-04-11 16:24:58 +08:00
2019-03-15 16:21:48 -05:00
2019-02-22 18:05:04 +00:00
2019-04-15 13:36:03 +01:00
2019-02-22 18:05:04 +00:00
2019-02-22 18:05:04 +00:00
2019-02-22 18:05:04 +00:00
2019-03-09 13:55:54 +00:00
2018-09-04 16:51:18 +01:00
2019-03-09 13:55:54 +00:00
2019-02-22 18:05:04 +00:00
2019-02-22 18:05:04 +00:00
2019-02-22 18:05:04 +00:00
2019-02-22 18:05:04 +00:00
2017-04-18 00:35:53 +01:00
2019-02-02 16:20:14 +01:00
2019-05-20 19:57:08 +01:00
2019-05-20 19:57:08 +01:00
2019-02-22 18:05:04 +00:00
2019-02-22 18:05:04 +00:00
2019-02-22 18:05:04 +00:00
2019-05-14 22:58:58 +01:00
2019-02-02 16:20:14 +01:00
2019-02-02 16:20:14 +01:00
2019-02-22 18:05:04 +00:00
2019-04-13 12:24:56 +01:00
2019-02-22 18:05:04 +00:00
2019-02-22 18:05:04 +00:00
2019-05-13 21:57:44 +01:00
2019-02-22 18:05:04 +00:00
2019-02-22 18:05:04 +00:00
2019-05-09 17:28:18 +01:00
2019-02-22 18:05:04 +00:00
2019-02-22 18:05:04 +00:00
2019-01-14 19:45:33 +00:00
2019-02-22 18:05:04 +00:00
2017-11-17 15:34:07 +09:00
2019-02-22 18:05:04 +00:00
2019-04-07 15:34:39 +01:00
2019-04-11 23:05:59 +08:00
2019-02-22 18:05:04 +00:00
2019-02-22 18:05:04 +00:00
2019-02-22 18:05:04 +00:00
2019-04-18 16:48:10 -06:00
2019-04-07 15:34:39 +01:00
2019-02-22 18:05:04 +00:00
2018-09-04 16:51:18 +01:00
2019-02-22 18:05:04 +00:00
2017-04-18 00:35:53 +01:00
2019-02-22 18:05:04 +00:00
2019-02-22 18:05:04 +00:00
2019-04-08 16:25:30 +01:00
2019-02-22 18:05:04 +00:00
2019-05-23 15:49:02 +01:00
2016-10-21 21:02:20 -05:00
2019-05-13 15:50:03 -03:00
2019-02-02 16:20:14 +01:00
2019-03-09 13:55:54 +00:00
2019-02-22 18:05:04 +00:00
2019-05-02 11:59:18 +01:00
2019-02-22 18:05:04 +00:00
2019-02-22 18:05:04 +00:00
2019-04-07 14:58:06 +01:00
2019-02-22 18:05:04 +00:00
2019-02-02 16:20:14 +01:00
2019-02-22 18:05:04 +00:00
2019-02-22 18:05:04 +00:00
2019-02-22 18:05:04 +00:00