이전 버전입니다. 현재 최신 버전은 3.25.1입니다. Vale 3.25.1 · 출시일:
설치 파일 3.24.0
| 아키텍처 | 형식 | 설치 범위 | 파일 크기 | 다운로드 | SHA256 |
|---|---|---|---|---|---|
| 64비트 | ZIP → 포터블 · en-US | — | — | github.com | VirusTotal |
링크와 SHA256은 Windows 패키지 관리자 커뮤니티 매니페스트에서 가져왔습니다. 실행하기 전에 다운로드한 파일의 해시를 비교해 보십시오.
릴리스 노트
This release adds `vale test`, a test runner for your rules. A rule that matches nothing still loads, runs, and reports success. You only find out it's broken when it misses something. Now each rule can carry its own test cases:a short document, and the alerts linting it should produce.
extends:existence
message:"Consider removing '%s'."
tokens:
• perhaps
tests:
• name:flags a hedge
input:Perhaps we should ship.
want:|
1:1:House.Hedging:Consider removing 'Perhaps'.
Running `vale test` lints each case and shows a diff when the output doesn't match. A case can pin the exact output (`want`), check for part of it (`contains`), or check that something is left alone (`absent`). It can run one rule on its own or go through your project's configuration, and it can read its input as another format or through a View. `script` rules are tested the same way. `--coverage` fails any rule that no case makes fire, and the exit codes are built for CI.
See [Testing](https://docs.vale.sh/topics/testing) and the [announcement post](https://vale.sh/blog/testing-rules).
## Changelog
• 2ee78171 fix:A rule whose `tests` don't parse fails `vale test` instead of vanishing
• 77da0b08 refactor:Typed errors, pattern errors at the token, and readable contexts
• 634b321c fix:Errors show the real exit code, honor --no-color, and point at the config
• db39c406 feat:`BasedOnStyles = NONE`, the spelled-out empty value
• bc8b91d8 perf:Don't parse a file no rule can run on
• c283a4dc feat:Conditional sections, `[glob if expr]`
• 08923bdf feat:`vale test`, and install a package's own dependencies for it
• 424f6e62 fix:Keep a fenced block skipped when both `pre` and `code` are in SkippedScopes
• 84deb6c3 fix:Keep non-breaking and narrow spaces beside inline markup
• 8cbda873 feat(code):parse C# comments with the C# grammar (#1196)
• 24f277bb test:add `vale test` cases