Skip to content

Commit

Permalink
Remove AWSResourceLinter, build separate tool that generates JSON dat…
Browse files Browse the repository at this point in the history
…a that this tool can process
  • Loading branch information
lhitchon committed Sep 29, 2018
1 parent 962b5ea commit 02ec997
Show file tree
Hide file tree
Showing 10 changed files with 1 addition and 350 deletions.
5 changes: 1 addition & 4 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@
# unused-packages = true


[[constraint]]
name = "github.com/aws/aws-sdk-go"
version = "1.14.27"

[[constraint]]
name = "github.com/ghodss/yaml"
version = "1.0.0"
Expand Down
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,6 @@ The program can also read files from a separate YAML file, and can scan these ty
* YAML
* JSON

And also the scanning of information from AWS Descibe API calls for:

* Security Groups
* IAM Users


## Example invocations

### Validate Terraform files with built-in rules
Expand Down
90 changes: 0 additions & 90 deletions linter/aws.go

This file was deleted.

51 changes: 0 additions & 51 deletions linter/aws_test.go

This file was deleted.

96 changes: 0 additions & 96 deletions linter/iam.go

This file was deleted.

2 changes: 0 additions & 2 deletions linter/linter.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ func NewLinter(ruleSet assertion.RuleSet, vs assertion.ValueSource, filenames []
return FileLinter{Filenames: filenames, ValueSource: vs, Loader: KubernetesResourceLoader{}}, nil
case "Terraform":
return FileLinter{Filenames: filenames, ValueSource: vs, Loader: TerraformResourceLoader{}}, nil
case "AWS":
return AWSResourceLinter{RuleSet: ruleSet, ValueSource: vs, Loader: AWSLazyLoader{}}, nil
case "LintRules":
return FileLinter{Filenames: filenames, ValueSource: vs, Loader: RulesResourceLoader{}}, nil
case "YAML":
Expand Down
1 change: 0 additions & 1 deletion linter/linter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ func TestNewLinter(t *testing.T) {
{"./testdata/rules/generic-yaml.yml", "FileLinter"},
{"./testdata/rules/generic-json.yml", "FileLinter"},
{"./testdata/rules/generic-csv.yml", "FileLinter"},
{"./testdata/rules/aws_resource.yml", "AWSResourceLinter"},
{"./testdata/rules/kubernetes.yml", "FileLinter"},
{"./testdata/rules/rules.yml", "FileLinter"},
}
Expand Down
50 changes: 0 additions & 50 deletions linter/security_group.go

This file was deleted.

Loading

0 comments on commit 02ec997

Please sign in to comment.