Skip to content

Commit

Permalink
Add codespell check to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Feb 13, 2022
1 parent d669d93 commit 719a1ea
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .codespellrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[codespell]
ignore-words-list = crate
skip = ./.git,./target
8 changes: 8 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,11 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features

spellcheck:
name: spellcheck
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: codespell-project/actions-codespell@master
4 changes: 2 additions & 2 deletions merlin/arm384/res/aliyundrivewebdav-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ function js_beautify(js_source_text, indent_size, indent_character, indent_level

function print_space() {
var last_output = output.length ? output[output.length - 1] : ' ';
if (last_output !== ' ' && last_output !== '\n' && last_output !== indent_string) { // prevent occassional duplicate space
if (last_output !== ' ' && last_output !== '\n' && last_output !== indent_string) { // prevent occasional duplicate space
output.push(' ');
}
}
Expand Down Expand Up @@ -2833,4 +2833,4 @@ new function() {
PREFIX: "\x02",
SHRUNK: /\x02\d+\b/g
})
};
};

0 comments on commit 719a1ea

Please sign in to comment.