Skip to content

Commit

Permalink
empty part fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Hidanio committed Jan 31, 2025
1 parent 70a25da commit 8dfc82f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/linter/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -1520,7 +1520,7 @@ func (d *rootWalker) ReportPHPDoc(phpDocLocation PHPDocLocation, level int, chec

func IsRuleEnabledForPath(root *RuleNode, filePath string, checkRule string) bool {
normalizedPath := filepath.ToSlash(filepath.Clean(filePath))
parts := strings.Split(normalizedPath, "/")[1:]
parts := strings.Split(normalizedPath, "/")
currentNode := root

// Starting with global state. We have guarantee while parsing config that rule is `on` and exist
Expand Down

0 comments on commit 8dfc82f

Please sign in to comment.