Comments (3)
Lots of things are possible with adequate effort. Note that codespell currently checks files and/or stdin, not a buffer in memory.
from codespell.
You could try to adapt this function to operate both on files/stdin and a buffer in memory, not only files/stdin:
codespell/codespell_lib/_codespell.py
Line 820 in 085a697
But then Lapce is written in Rust, and codespell is written in Python. It might be simpler to start from scratch, reusing the dictionaries of typos of codespell.
Edit : Or not. codespell can read from stdin, see #3224 for example.
from codespell.
Perhaps Language Server Protocol (LSP) is of interest.
from codespell.
Related Issues (20)
- codespell exits brutally on ill-formed config file
- .codespellrc file doesn't work HOT 8
- Codespell don't handle KeyboardInterrupt exception
- "--interactive" useless without "-w" HOT 1
- Feature Request: "--builtin=all"
- Share dictionaries with typos?
- False positive with accented last name HOT 6
- Does `.codespellrc` support comments? HOT 2
- [2.2.6] `--ignore-words-list Nd` has no effect, "Nd" is still reported as a typo HOT 2
- [wishlist]: annotate PDFs
- [wishlist]: Add a way to enter an alternative word in "Choose an option (blank for none):
- [wishlist]: Add a way to enter an alternative word in "Choose an option (blank for none):"
- codespell complains about its `ignore-words-list` in pyproject.toml HOT 5
- Reports spelling error in a format string HOT 4
- RFC: improve diagnostic formatting HOT 4
- How do I found error: OnwerName ==> OwnerName ? HOT 1
- Repo-Review
- Missing typos in dictionary.txt
- pyproject.toml: : How to set private dictionary and standard dictionnary at the same time? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from codespell.