Skip to content

Conversation

@irbekrm
Copy link
Contributor

@irbekrm irbekrm commented Jan 20, 2026

Special case lookups for path that end with staticcheck.conf - assume that this is staticcheck looking for its configfiles above @ rather than a legitimate module path being built and return 'not exists' to avoid staticcheck failing when attempting to parse the returned as its configfile.

Updates #17

staticcheck currently walks the module path to look
for staticcheck.conf files and don't stop at
@. If lookups succeed it attempts to parse the
returned as staticcheck.conf file even if it's
a directory, such as in our case, where we
assume that any lookups for paths without '@'
are in-process building of module path.

This change just special cases staticcheck.conf
and ensures that any lookups for paths that end
in staticcheck.conf and don't contain '@' return
ErrIsNotExists.

Updates #17

Signed-off-by: Irbe Krumina <irbekrm@gmail.com>
@irbekrm irbekrm merged commit 2e8b9c3 into main Jan 20, 2026
7 checks passed
@irbekrm irbekrm deleted the irbekrm/files_above_mod_path branch January 20, 2026 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants