Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new command line option for Terraform parser #62

Merged
merged 6 commits into from Jan 17, 2020

Conversation

tmcelhattan
Copy link

  • Added new CLI option -tfparser for being able to specify parsing either Terraform v0.11 or v0.12 syntax configuration files
  • Added validator and tests for new CLI option
  • Updated README docs to provide info on new CLI option.

@@ -39,7 +39,7 @@ func TestNewLinter(t *testing.T) {
func TestUnknownLinterType(t *testing.T) {
ruleSet := loadRulesForTest("./testdata/rules/unknown.yml", t)
vs := MockValueSource{}
_, err := NewLinter(ruleSet, vs, []string{})
_, err := NewLinter(ruleSet, vs, []string{}, "")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe I missed them when I was skimming through quickly, but I don't see any tests around passing in a value here.

I'd like to see some.

@tmcelhattan tmcelhattan merged commit 20d08c5 into tf12-beta Jan 17, 2020
@mattnewell mattnewell deleted the update_tf12_cli_option branch January 28, 2020 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants