bidichk finds dangerous unicode character sequences in Go source files.
The following unicode characters are considered dangerous:
Download bidichk from the releases or get the latest version from source with:
go install github.com/breml/bidichk/cmd/bidichk@latest
golangci-lint supports bidichk, so you can enable this linter and use it.
Check everything:
bidichk ./...
If you run bidichk via golangci-lint look at .golangci.example.yml for an example of the configuration.
Otherwise you can run bidichk with --disallowed-runes flag to specify the runes you consider harmful.
E.g. the following command considers only the LEFT-TO-RIGHT-OVERRIDE unicode rune as dangerous:
bidichk --disallowed-runes LEFT-TO-RIGHT-OVERRIDE ./...
For the full list of supported unicode runes see above or use
bidichk --help
Go
100.0%
bidichk finds dangerous unicode character sequences in Go source files.
The following unicode characters are considered dangerous:
Download bidichk from the releases or get the latest version from source with:
go install github.com/breml/bidichk/cmd/bidichk@latest
golangci-lint supports bidichk, so you can enable this linter and use it.
Check everything:
bidichk ./...
If you run bidichk via golangci-lint look at .golangci.example.yml for an example of the configuration.
Otherwise you can run bidichk with --disallowed-runes flag to specify the runes you consider harmful.
E.g. the following command considers only the LEFT-TO-RIGHT-OVERRIDE unicode rune as dangerous:
bidichk --disallowed-runes LEFT-TO-RIGHT-OVERRIDE ./...
For the full list of supported unicode runes see above or use
bidichk --help
Go
100.0%