@@ -12,9 +12,9 @@ import (
12
12
func Test_NewAnnotations (t * testing.T ) {
13
13
src := `
14
14
resource "aws_instance" "foo" {
15
- /* tflint-ignore: aws_instance_invalid_type */
15
+ /* tflint-ignore: aws_instance_invalid_type, terraform_deprecated_syntax */
16
16
instance_type = "t2.micro" // tflint-ignore: aws_instance_invalid_type
17
- # tflint-ignore: aws_instance_invalid_type This is also comment
17
+ # tflint-ignore: aws_instance_invalid_type
18
18
iam_instance_profile = "foo" # This is also comment
19
19
// This is also comment
20
20
}`
@@ -30,14 +30,14 @@ resource "aws_instance" "foo" {
30
30
31
31
expected := Annotations {
32
32
{
33
- Content : "aws_instance_invalid_type" ,
33
+ Content : "aws_instance_invalid_type, terraform_deprecated_syntax " ,
34
34
Token : hclsyntax.Token {
35
35
Type : hclsyntax .TokenComment ,
36
- Bytes : []byte ("/* tflint-ignore: aws_instance_invalid_type */" ),
36
+ Bytes : []byte ("/* tflint-ignore: aws_instance_invalid_type, terraform_deprecated_syntax */" ),
37
37
Range : hcl.Range {
38
38
Filename : "resource.tf" ,
39
39
Start : hcl.Pos {Line : 3 , Column : 3 },
40
- End : hcl.Pos {Line : 3 , Column : 49 },
40
+ End : hcl.Pos {Line : 3 , Column : 78 },
41
41
},
42
42
},
43
43
},
@@ -57,7 +57,7 @@ resource "aws_instance" "foo" {
57
57
Content : "aws_instance_invalid_type" ,
58
58
Token : hclsyntax.Token {
59
59
Type : hclsyntax .TokenComment ,
60
- Bytes : []byte ("# tflint-ignore: aws_instance_invalid_type This is also comment \n " ),
60
+ Bytes : []byte ("# tflint-ignore: aws_instance_invalid_type\n " ),
61
61
Range : hcl.Range {
62
62
Filename : "resource.tf" ,
63
63
Start : hcl.Pos {Line : 5 , Column : 3 },
0 commit comments