diff --git a/.codespellrc b/.codespellrc new file mode 100644 index 0000000000..baf40c2f67 --- /dev/null +++ b/.codespellrc @@ -0,0 +1,3 @@ +[codespell] +ignore-words-list = crate +skip = ./.git,./target diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 1baed0238f..3c8eed0c75 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -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 diff --git a/merlin/arm384/res/aliyundrivewebdav-menu.js b/merlin/arm384/res/aliyundrivewebdav-menu.js index e1cc28fc7b..468c6d70e2 100755 --- a/merlin/arm384/res/aliyundrivewebdav-menu.js +++ b/merlin/arm384/res/aliyundrivewebdav-menu.js @@ -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(' '); } } @@ -2833,4 +2833,4 @@ new function() { PREFIX: "\x02", SHRUNK: /\x02\d+\b/g }) -}; \ No newline at end of file +};