Skip to content

Commit f46ba05

Browse files
Added file extensions *.html & *.xhtml (AST-121014) (#1355)
* Added file extensions *.html & *.xhtml * updated message and change log level to debug (AST-116482)
1 parent 6ca38a0 commit f46ba05

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

internal/params/filters.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ var BaseIncludeFilters = []string{
147147
"*.mjs",
148148
"*.mts",
149149
"*.cts",
150+
"*.html",
151+
"*.xhtml",
150152
}
151153

152154
var BaseExcludeFilters = []string{

internal/wrappers/configuration/configuration.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"os/user"
99
"strings"
1010

11+
"github.com/checkmarx/ast-cli/internal/logger"
1112
"github.com/checkmarx/ast-cli/internal/params"
1213
"github.com/gofrs/flock"
1314
"github.com/pkg/errors"
@@ -281,7 +282,7 @@ func GetConfigFilePath() (string, error) {
281282

282283
func verifyConfigDir(fullPath string) {
283284
if _, err := os.Stat(fullPath); os.IsNotExist(err) {
284-
fmt.Println("Creating directory")
285+
logger.PrintfIfVerbose("Creating configuration file at default directory path")
285286
err = os.Mkdir(fullPath, homeDirectoryPermissions)
286287
if err != nil {
287288
log.Fatal("Cannot file home directory.", err)

0 commit comments

Comments
 (0)