You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
return []string{}, errors.New("`debug` option was removed in v0.8.0. Please set `TFLINT_LOG` environment variables instead")
113
-
}
114
-
ifoption=="fast" {
115
-
return []string{}, errors.New("`fast` option was removed in v0.9.0. The `aws_instance_invalid_ami` rule is already fast enough")
112
+
return []string{}, errors.New("--debug option was removed in v0.8.0. Please set TFLINT_LOG environment variables instead")
116
113
}
117
114
ifoption=="error-with-issues" {
118
-
return []string{}, errors.New("`error-with-issues` option was removed in v0.9.0. The behavior is now default")
115
+
return []string{}, errors.New("--error-with-issues option was removed in v0.9.0. The behavior is now default")
119
116
}
120
117
ifoption=="quiet"||option=="q" {
121
-
return []string{}, errors.New("`quiet` option was removed in v0.11.0. The behavior is now default")
118
+
return []string{}, errors.New("--quiet option was removed in v0.11.0. The behavior is now default")
122
119
}
123
120
ifoption=="ignore-rule" {
124
-
return []string{}, errors.New("`ignore-rule` option was removed in v0.12.0. Please use `--disable-rule` instead")
121
+
return []string{}, errors.New("--ignore-rule option was removed in v0.12.0. Please use --disable-rule instead")
125
122
}
126
123
ifoption=="deep" {
127
-
return []string{}, errors.New("`deep` option was removed in v0.23.0. Deep checking is now a feature of the AWS plugin, so please configure the plugin instead")
124
+
return []string{}, errors.New("--deep option was removed in v0.23.0. Deep checking is now a feature of the AWS plugin, so please configure the plugin instead")
return []string{}, fmt.Errorf("`%s` option was removed in v0.23.0. AWS rules are provided by the AWS plugin, so please configure the plugin instead", option)
127
+
return []string{}, fmt.Errorf("--%s option was removed in v0.23.0. AWS rules are provided by the AWS plugin, so please configure the plugin instead", option)
131
128
}
132
129
ifoption=="loglevel" {
133
-
return []string{}, errors.New("`loglevel` option was removed in v0.40.0. Please set `TFLINT_LOG` environment variables instead")
130
+
return []string{}, errors.New("--loglevel option was removed in v0.40.0. Please set TFLINT_LOG environment variables instead")
134
131
}
135
-
return []string{}, fmt.Errorf("`%s` is unknown option. Please run `tflint --help`", option)
132
+
return []string{}, fmt.Errorf(`--%s is unknown option. Please run "tflint --help"`, option)
_, _=color.New(color.FgYellow).Fprintln(cli.outStream, "No signing key configured. Set `signing_key` to verify that the release is signed by the plugin developer")
52
+
_, _=color.New(color.FgYellow).Fprintln(cli.outStream, `No signing key configured. Set "signing_key" to verify that the release is signed by the plugin developer`)
53
53
}
54
54
55
55
_, err=installCfg.Install()
56
56
iferr!=nil {
57
57
returnfmt.Errorf("Failed to install a plugin; %w", err)
// VersionConstraints endpoint is available in tflint-plugin-sdk v0.14+.
280
280
returnrulesetPlugin, fmt.Errorf(`Plugin "%s" SDK version is incompatible. Compatible versions: %s`, name, plugin.SDKVersionConstraints)
281
281
} else {
282
-
returnrulesetPlugin, fmt.Errorf("Failed to get TFLint version constraints to `%s` plugin; %w", name, err)
282
+
returnrulesetPlugin, fmt.Errorf(`Failed to get TFLint version constraints to "%s" plugin; %w`, name, err)
283
283
}
284
284
}
285
285
if!constraints.Check(tflint.Version) {
286
286
returnrulesetPlugin, fmt.Errorf("Failed to satisfy version constraints; tflint-ruleset-%s requires %s, but TFLint version is %s", name, constraints, tflint.Version)
Copy file name to clipboardExpand all lines: integrationtest/inspection/enable-required-config-rule-by-cli/result.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
"issues": [],
3
3
"errors": [
4
4
{
5
-
"message": "Failed to check ruleset; failed to check \"aws_s3_bucket_with_config_example\" rule: This rule cannot be enabled with the `--enable-rule` option because it lacks the required configuration",
5
+
"message": "Failed to check ruleset; failed to check \"aws_s3_bucket_with_config_example\" rule: This rule cannot be enabled with the --enable-rule option because it lacks the required configuration",
0 commit comments