Skip to content

Commit

Permalink
include deprecated checks by default
Browse files Browse the repository at this point in the history
Signed-off-by: nikpivkin <[email protected]>
  • Loading branch information
nikpivkin committed Aug 31, 2024
1 parent f167070 commit 4ad1c75
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions pkg/flag/rego_flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ var (
Name: "include-deprecated-checks",
ConfigName: "rego.include-deprecated-checks",
Usage: "include deprecated checks",
Default: true,
}
SkipCheckUpdateFlag = Flag[bool]{
Name: "skip-check-update",
Expand Down
4 changes: 2 additions & 2 deletions pkg/iac/scanners/cloudformation/scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ type Scanner struct {
includeDeprecatedChecks bool
}

func (s *Scanner) SetIncludeDeprecatedChecks(bool) {
s.includeDeprecatedChecks = true
func (s *Scanner) SetIncludeDeprecatedChecks(b bool) {
s.includeDeprecatedChecks = b
}

func (s *Scanner) SetCustomSchemas(map[string][]byte) {}
Expand Down

0 comments on commit 4ad1c75

Please sign in to comment.