Skip to content

Releases: huacnlee/autocorrect

v1.1.0

19 Jul 12:35
Compare
Choose a tag to compare
  • Add to supports ignore by .gitignore, .autocorrectignore.
  • Print progress on linting.

v1.0.1

17 Jul 08:40
Compare
Choose a tag to compare
  • Add .strings file supports.

v1.0.0

17 Jul 07:38
629db77
Compare
Choose a tag to compare

#3

较大更新

重构了整体实现的各处细节,改动较多,主要是针对 Lint 的支持做了完善。

请升级 VS Code 插件到最新版本:0.4.0+

https://marketplace.visualstudio.com/items?itemName=huacnlee.auto-correct

现在可以用 Diff 的方式展示差异,也同样能通过 JSON 输出(JSON 现在重构成一整个 JSON 来描述所有信息)

  • Lint 支持多个文件;
  • --lint 现在默认以 Diff 的方式输出发现需要改进的问题,便于用在 CI 环境,如 GitLab CI, GitHub Action
  • 新增 --format 参数,支持 [json, diff] 的方式给出不同的 Lint 结果格式,默认:diff;
  • 调整完整日期的处理规则 from:发布于2021年7月17日 -> `发布于 2021 年 7 月 17 日;
  • 增加 text / txt 类型的文件的 Lint 支持;
  • 新增 --type 参数用于强制指定文件类型(只可以用在单个文件的场景),如果有给次参数,将会以这种类型来处理。
$ autocorrect --type ruby --lint Gemfile
$ autocorrect --type javascript --lint Procfile.mjs

GitHub Action 集成效果

https://github.com/huacnlee/autocorrect/runs/3091754929?check_suite_focus=true

截屏2021-07-17 15 24 59

v0.10.1

13 Jul 15:50
Compare
Choose a tag to compare
Improve GitHub Action for cross compile

v0.10.0

05 Jul 16:27
Compare
Choose a tag to compare
  • Lint for Markdown.

v0.9.0

05 Jul 13:55
Compare
Choose a tag to compare
  • Use pest rewrite HTML format, not support lint.
  • Remove html5ever dependency.

v0.8.1

05 Jul 02:22
Compare
Choose a tag to compare
  • Refactor language implement for use Generic Type;
  • Fix some language process details.

v0.8.0

02 Jul 06:03
Compare
Choose a tag to compare
  • Fix stdout, if not present --fix, only stdout print result of the first file.
  • Support --lint to check and output lint result as JSON;

v0.7.0

01 Jul 13:38
Compare
Choose a tag to compare
Add for support Java, Kotlin, Objective-C, Swift, PHP, CSharp, Dart

v0.6.0

30 Jun 15:33
Compare
Choose a tag to compare
  • Use JavaScript for TypeScript, avoid update file if not support file type;
  • Add to support Python;
  • Add for support JSON, CSS, Sass, Less;