Comments (4)
This is possible with the latest release:
$ vale --filter='.Name=="Readability.FleschKincaid"' --output=JSON myfile.md
from vale.
The rule would have to exist in the configured style path, but it does not have to be enabled in the configuration. Vale would use the style path from the vale.ini file in the workspace or specified by the --config option.
There's a caveat here: filters can only produce a subset of the .vale.ini
configuration, so the rule does have to be enabled. It can obviously, though, then be excluded in cases that you don't want it.
from vale.
There are two issues I have:
- I get no readability score output - I just get empty JSON
{}
or✔ 0 errors, 0 warnings and 0 suggestions in 1 file.
- I don't want the rules enabled in my default config. I want to run any arbitrary rule from the command line as a one-off test.
EDIT
After further testing, I get output from Readability.GunningFog
, Readability.FleschReadingEase
and Readability.SMOG
only.
from vale.
To work around the default config issue, I created a new configuration called allrules.ini
that has all rules enabled. I can use this from the command line with --filter
to run any rule I want.
from vale.
Related Issues (20)
- Cannot get IgnoredClasses to work HOT 1
- Feature Request: Expand the list of supported scopes
- Existence with tokens seems to fail at catching angle brackets in raw scope HOT 1
- Multiple `raw` Tokens Break Rule HOT 1
- Beginning/End of Line Does Not Work in Regex Patterns HOT 1
- Hyphenated words in exceptions list still being flagged as errors HOT 3
- [Question] Is Vale's scope-awareness able to tell me under which scope a style-check has been found? HOT 1
- Support the Typst typesetting language
- Support for neorg
- Support SARIF output HOT 1
- Pulling `Vocab.zip` using `vale sync` removes all existing folders in my projects `styles/Vocab` HOT 2
- Rule that worked in 2.23 does not work in 2.27 HOT 1
- [Question] Vale Not Detecting Underscores ('_') in Token HOT 2
- Vale incorrectly detects issues inside <pre> tag ONLY if token first appears outside of <pre> tag HOT 3
- Vale counts words per sentence wrong, if one word contains a dot. This triggers 'try to keep sentence short (<30 words)' warning. HOT 5
- Question: how to ignore all words with underscores HOT 1
- Markdown: Link in image markup is linted HOT 3
- "Node.js" should not be rejected HOT 3
- Ignore MyST syntax labels HOT 4
- Release as NPM package HOT 1
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 vale.