Crates.io | typope |
lib.rs | typope |
version | 0.3.0 |
source | src |
created_at | 2024-08-04 10:40:41.402187 |
updated_at | 2024-08-24 08:52:07.125799 |
description | Pedantic source code checker for orthotypography mistakes and other typographical errors |
homepage | |
repository | https://github.com/ronnychevalier/typope |
max_upload_size | |
id | 1324888 |
size | 139,225 |
typope
Pedantic tool to find orthotypography mistakes,
typographical errors, and other mistakes that are not covered by tools
like typos
to ensure that your source code is
free from typographical heresy.
This tool is still experimental: you may encounter false positives.
cargo install --locked typope
Analyze source code recursively in the current directory:
typope
typope
supports a subset of the same command line options as typos
, such as --hidden
or --no-ignore
.
See typope --help
for more details.
typope
can read the configuration files from typos
(e.g., .typos.toml
) such as:
[files]
extend-exclude = ["directory"]
ignore-hidden = false
[default]
extend-ignore-re = ["some regex.*rrrregex"]
[type.cpp]
check-file = false
See typos
reference documentation for more details, but know that only a subset of these fields are supported:
the ones irrelevant for typope
at the moment (e.g., check-filename
, extend-words
, or extend-identifiers
) are ignored.
typope
has only one rule at the moment:
typope
relies on tree-sitter
to parse the following languages:
Many more could be supported if you are motivated to open a PR :)
To minimize false positives, only typos found in literal strings (e.g., "this is a string"
)
are detected. It means typos in comments are ignored for the moment.
Raw literal strings (e.g., in Rust this would be r"raw string"
) are ignored on purpose.
In Markdown, code blocks or code spans (e.g., `example`
) are ignored on purpose.
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.