Comments (2)
http://unconj.ca/blog/linting-prose-in-emacs.html defines one; I modified the regex a bit since errors can have newlines in them:
(flycheck-define-checker proselint
"A linter for prose."
:command ("proselint" source-inplace)
:error-patterns
((warning line-start (file-name) ":" line ":" column ": "
(id (one-or-more (not (any " "))))
(message (one-or-more not-newline)
(zero-or-more "\n" (any " ") (one-or-more not-newline)))
line-end))
:modes (text-mode markdown-mode gfm-mode))
(add-to-list 'flycheck-checkers 'proselint)
If you install flycheck from MELPA, all you need then is e.g.
(add-hook 'markdown-mode-hook #'flycheck-mode)
(add-hook 'text-mode-hook #'flycheck-mode)
from proselint.
Closed by #287.
from proselint.
Related Issues (20)
- Six dependency
- is demo site broken? HOT 2
- (invalid, removed)
- when there is an error, `proselint --json` should output the error to `stderr` rather than `stdout` HOT 8
- βVeryβ is very restrictive
- Bug: config is being ignored, even though confirmed as valid by `--dump-config` HOT 1
- Print out every occurrence of an issue
- Many errors when doing anything HOT 1
- Clarify the message from "weasel_words.very"
- Use "logging" instead of "print" to enable output-control
- Filenames are lost when using as pre-commit hook
- Allow inverse `existence_check`s (re: up-goer-five check) HOT 6
- Ignored check names mismatched HOT 2
- Check for proper spaces around punctuation HOT 3
- Simple sample program on readme page fails with KeyError: 'checks' HOT 3
- Useless dependency? HOT 2
- Does not work well with Markdown formatting HOT 3
- Proselint.com is down :/ HOT 4
- Ignore Specific Files
- Retain Project-Specific Configuration Option HOT 2
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 proselint.