-
Notifications
You must be signed in to change notification settings - Fork 917
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added vale to CLI #2568
base: main
Are you sure you want to change the base?
added vale to CLI #2568
Conversation
Thanks for the PR! I appreciate It's currently over a thousands lines of code spread over 45 files, which is quite challenging to review. I also prefer not to add such amounts of code to our codebase. Are all the files critical for this functionality to function? Anything you might be able to cleanup? Edit: Going quickly though the log, the warning Also, could Vale be integrated into our pre-commit config? Edit 2: It seems Vale supports pre-commit! |
@EwoutH, I updated the version of vale and also suppressed vale to allow the use of "agent". I had actually cloned code from this However, the reason for failure in the checks above, (pre-commit.ci -pr) says that it failed because it wasn't able to find vale, |
Maybe it’s easier to start with a minimal implementation, using only pre-commit, and then extend from there. |
@EwoutH, Hi, I think I figured it out it is working now:) |
With 45 files changed, this PR has become impossible to review. I see a lot of value in adding this, however, would it be possible to have only this one change? Next, in follow up pr's we can go throught the code base to fix all issues that are flagged after vale has been activated. |
Sure, so from what I understand you would like me to cut down on the number of files right? I think one thing that I could is change the style from Microsoft to Write-Good (https://github.com/errata-ai/write-good/tree/master/write-good) this only has 9 yml files...Would that be fine? |
My bad, I had not carefully checked the PR. It is not 45 files changed, but 1 file changed (pre-commit) and 44 new files required for vale. Can you briefly explain the options and why you went with the Microsoft style? |
Sure, so officially these are the styles that vale recognizes: I chose Microsoft because it has a wider range of error catching abilities and can focus on a lot more writing elements compared to some other options. Write-good is alright too but it is more basic and won't be able to catch errors that Microsoft can. |
Summary
I added Vale, a prose linter to CLI as requested in "Add prose linter to CI #1572 " issue. So, each time a user pushes/ creates a PR, the CLI automatically runs, and its suggestions and warnings can be viewed. Currently, I have configured it to only check on .md files, but that can be changed according to use case by altering the " .vale.ini "file.
Screenshots
Currently after running on the existing repo, vale made a lot of recommendation and suggestions. I intentionally created a "bad" .md file titled TESTVALE.md just to test it, the results are attached below:
It gave some errors and warnings on the existing files as well. I have attached a log to that below.
4_Run Vale.txt
Closes #1572.