-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add autocorrect for better lint (#181)
* feat: add autocorrect for better lint * ci: update course pages * Fix date format * feat: add autocorrect config file * recover files to test autocorrect * add special rules * feat: add autocorrect handling for badge divs * ci: update course pages * fix * ci: update course pages * mannual update * ci: update course pages * update code * recover content * remove temp --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
8c42591
commit 25b1e14
Showing
5 changed files
with
182 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,149 @@ | ||
# yaml-language-server: $schema=https://huacnlee.github.io/autocorrect/schema.json | ||
rules: | ||
# Auto add spacing between CJK (Chinese, Japanese, Korean) and English words. | ||
# 0 - off, 1 - error, 2 - warning | ||
space-word: 1 | ||
# Add space between some punctuations. | ||
space-punctuation: 1 | ||
# Add space between brackets (), [] when near the CJK. | ||
space-bracket: 1 | ||
# Add space between ``, when near the CJK. | ||
space-backticks: 1 | ||
# Add space between dash `-` | ||
space-dash: 1 | ||
# Convert to fullwidth. | ||
fullwidth: 1 | ||
# To remove space near the fullwidth punctuations. | ||
no-space-fullwidth: 1 | ||
# To remove space arouned the fullwidth quotes “”, ''. | ||
no-space-fullwidth-quote: 1 | ||
# Fullwidth alphanumeric characters to halfwidth. | ||
halfwidth-word: 1 | ||
# Fullwidth punctuations to halfwidth in english. | ||
halfwidth-punctuation: 1 | ||
# Spellcheck | ||
spellcheck: 0 | ||
# Enable or disable in spatial context | ||
context: | ||
# Enable or disable to format codeblock in Markdown or AsciiDoc etc. | ||
codeblock: 1 | ||
textRules: | ||
"知识共享署名-非商业性使用-相同方式共享": 0 | ||
"ROS2": 0 | ||
spellcheck: | ||
words: | ||
# Please do not add a general English word (eg. apple, python) here. | ||
# Users can add their special words to their .autocorrectrc file by their need. | ||
fileTypes: | ||
# ext: grammar_name | ||
# HTML | ||
html: html | ||
htm: html | ||
vue: html | ||
ejs: html | ||
html.erb: html | ||
svelte: html | ||
# YAML | ||
yaml: yaml | ||
yml: yaml | ||
# Rust | ||
rust: rust | ||
rs: rust | ||
# SQL | ||
sql: sql | ||
# Ruby | ||
ruby: ruby | ||
rb: ruby | ||
Gemfile: ruby | ||
Rakefile: ruby | ||
Profile: ruby | ||
gemspec: ruby | ||
# Crystal | ||
crystal: ruby | ||
cr: ruby | ||
# Elixir | ||
elixir: elixir | ||
ex: elixir | ||
exs: elixir | ||
# JavaScript | ||
js: javascript | ||
jsx: javascript | ||
javascript: javascript | ||
ts: javascript | ||
tsx: javascript | ||
typescript: javascript | ||
js.erb: javascript | ||
# CSS | ||
css: css | ||
scss: css | ||
sass: css | ||
less: css | ||
# JSON | ||
json: json | ||
json5: json | ||
# Go | ||
go: go | ||
# Python | ||
python: python | ||
py: python | ||
# Objective-C | ||
objective_c: objective_c | ||
objective-c: objective_c | ||
m: objective_c | ||
h: objective_c | ||
# Strings for Cocoa | ||
strings: strings | ||
# C# | ||
csharp: csharp | ||
cs: csharp | ||
# Java | ||
java: java | ||
proto: java | ||
# Scala | ||
scala: scala | ||
# Swift | ||
swift: swift | ||
# Kotlin | ||
kotlin: kotlin | ||
kt: kotlin | ||
gradle: kotlin | ||
# PHP | ||
php: php | ||
# Dart | ||
dart: dart | ||
# Markdown | ||
markdown: markdown | ||
md: markdown | ||
mdx: markdown | ||
# LaTeX | ||
latex: latex | ||
tex: latex | ||
# AsciiDoc | ||
asciidoc: asciidoc | ||
adoc: asciidoc | ||
asc: asciidoc | ||
# Gettext | ||
po: gettext | ||
pot: gettext | ||
# Conf | ||
properties: conf | ||
conf: conf | ||
ini: conf | ||
cfg: conf | ||
toml: conf | ||
# C / C++ | ||
cc: c | ||
cpp: c | ||
c: c | ||
# XML | ||
xml: xml | ||
# Notebook | ||
jupyter: jupyter | ||
ipynb: jupyter | ||
# Shell | ||
sh: ruby | ||
shell: ruby | ||
# Text | ||
text: text | ||
plain: text | ||
txt: text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters