Skip to content

Commit 6a046ca

Browse files
committed
docs: add reference to FindPage method in normalizePathPrefix comments
1 parent 0aa5844 commit 6a046ca

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

internal/analysis/deadcode/service.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ func (s *Service) FindPage(ctx context.Context, opts Options) (Result, error) {
9595
// normalizePathPrefix cleans a path prefix and returns an empty string if the cleaned result is ".".
9696
// @intent ensure path prefix filtering is consistent regardless of trailing slashes or "." input
9797
// @domainRule a path prefix of "." should be treated the same as an empty prefix (no filtering)
98+
// @see deadcode.Service.FindPage
9899
func normalizePathPrefix(prefix string) string {
99100
if prefix == "" {
100101
return ""

internal/analysis/largefunc/service.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ func (s *Service) FindPage(ctx context.Context, opts Options) (Result, error) {
9797
// normalizePathPrefix cleans a path prefix and returns an empty string if the cleaned result is ".".
9898
// @intent ensure path prefix filtering is consistent regardless of trailing slashes or "." input
9999
// @domainRule a path prefix of "." should be treated the same as an empty prefix (no filtering)
100+
// @see largefunc.Service.FindPage
100101
func normalizePathPrefix(prefix string) string {
101102
if prefix == "" {
102103
return ""

0 commit comments

Comments
 (0)