Skip to content

Commit

Permalink
setting ignore hcl errors to true
Browse files Browse the repository at this point in the history
  • Loading branch information
morganmellor committed Aug 31, 2022
1 parent 9c8cb33 commit 2d91c5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion internal/app/tfsec/cmd/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ func configureOptions(cmd *cobra.Command, fsRoot, dir string) ([]options.Scanner
scannerOptions = append(
scannerOptions,
scanner.ScannerWithSingleThread(singleThreadedMode),
scanner.ScannerWithStopOnHCLError(!ignoreHCLErrors),
scanner.ScannerWithStopOnHCLError(ignoreHCLErrors),
scanner.ScannerWithStopOnRuleErrors(stopOnCheckError),
scanner.ScannerWithSkipDownloaded(excludeDownloaded),
scanner.ScannerWithAllDirectories(allDirs),
Expand Down
7 changes: 1 addition & 6 deletions tfsec/tfsec.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
package tfsec

import (
"fmt"
"github.com/mightymarty/tfsec/internal/app/tfsec/cmd"
)

func ScanWrapper(path string) (string, error) {
func ScanWrapper(path string) (interface{}, error) {
return cmd.RunTFScan(path)
}

func TestFuncCall() {
fmt.Println("testing func calls")
}

0 comments on commit 2d91c5a

Please sign in to comment.