You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 23, 2025. It is now read-only.
First of all, thank you for this really useful project.
Shisho finds matches in files which are auto-generated or I don't have control over them (vendored). It's not feasible to fix the reported issues in these files.
I.e. consider this policy file for Golang:
version: '1'rules:
- id: 'deny-fmt-println'language: gomessage: | Avoid calling fmt.Println, as it can make log output messy. Use logging instead.pattern: | fmt.Println(:[_])
- id: 'deny-panic'language: gomessage: | Avoid calling panic() manually. Return the error instead.pattern: | panic(:[_])
generated code & vendor folder: I'd like to exclude it from the search, perhaps via CLI flag or extending the rule file with file excludes.
ignoring false positives: Sometimes we want to silence the linter in particular cases. We could use some comments and either match against those comments in constraints (manually) or make shisho aware of a convention: panic("foo") // shisho:ignore deny-panic