Giter VIP home page Giter VIP logo

Comments (4)

jdkato avatar jdkato commented on May 27, 2024 1

This is possible with the latest release:

$ vale --filter='.Name=="Readability.FleschKincaid"' --output=JSON myfile.md

from vale.

jdkato avatar jdkato commented on May 27, 2024

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.

sdwheeler avatar sdwheeler commented on May 27, 2024

There are two issues I have:

  1. I get no readability score output - I just get empty JSON {} or ✔ 0 errors, 0 warnings and 0 suggestions in 1 file.
  2. 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.

sdwheeler avatar sdwheeler commented on May 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.