Add NoSmartQuotes lint to reject smart quotes in EIPs #130
+213
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR implements a new lint rule to reject smart quotes in EIPs, resolving issue #129.
Smart quotes (", ", ', ') can be problematic in EIPs, especially in code blocks where they can cause syntax errors. This new lint detects these characters and suggests replacing them with straight quotes (", ').
Changes:
NoSmartQuotes
that detects Unicode smart quotes in markdown contentFiles changed:
eipw-lint/src/lints/markdown/no_smart_quotes.rs
- Implements the lint ruleeipw-lint/tests/lint_markdown_no_smart_quotes.rs
- Tests for the new linteipw-lint/src/lints/markdown.rs
- Registered the new lint moduleeipw-lint/src/lints/known_lints.rs
- Added the new lint to the DefaultLint enumFixes #129