mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #5228 from jbampton/spell-checker
feat(CI): add a GitHub Action to check spelling
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
name: 💎 Spellchecker
|
||||
|
||||
on: [pull_request]
|
||||
|
||||
jobs:
|
||||
misspell:
|
||||
name: 🧹 Check Spelling
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: 🍒 Check Out
|
||||
uses: actions/checkout@v2
|
||||
- name: 🍅 Install
|
||||
run: |
|
||||
wget -O - -q https://git.io/misspell | sh -s -- -b .
|
||||
- name: 🌶️ Misspell
|
||||
run: |
|
||||
find . -type f | xargs ./misspell -error
|
||||
@@ -856,7 +856,7 @@ lambda_body(codegen_scope *s, node *tree, int blk)
|
||||
oa = node_len(tree->car->cdr->car);
|
||||
/* rest argument? */
|
||||
ra = tree->car->cdr->cdr->car ? 1 : 0;
|
||||
/* mandatory arugments after rest argument */
|
||||
/* mandatory arguments after rest argument */
|
||||
pa = node_len(tree->car->cdr->cdr->cdr->car);
|
||||
pargs = tree->car->cdr->cdr->cdr->car;
|
||||
/* keyword arguments */
|
||||
|
||||
@@ -6826,7 +6826,7 @@ str_dump(mrb_state *mrb, const char *str, int len)
|
||||
int ai = mrb_gc_arena_save(mrb);
|
||||
mrb_value s;
|
||||
# if INT_MAX > MRB_INT_MAX / 4
|
||||
/* check maximum length with "\xNN" charactor */
|
||||
/* check maximum length with "\xNN" character */
|
||||
if (len > MRB_INT_MAX / 4) {
|
||||
len = MRB_INT_MAX / 4;
|
||||
}
|
||||
|
||||
@@ -12827,7 +12827,7 @@ str_dump(mrb_state *mrb, const char *str, int len)
|
||||
int ai = mrb_gc_arena_save(mrb);
|
||||
mrb_value s;
|
||||
# if INT_MAX > MRB_INT_MAX / 4
|
||||
/* check maximum length with "\xNN" charactor */
|
||||
/* check maximum length with "\xNN" character */
|
||||
if (len > MRB_INT_MAX / 4) {
|
||||
len = MRB_INT_MAX / 4;
|
||||
}
|
||||
|
||||
@@ -298,7 +298,7 @@ is_absolute_traditional_path(const char *path, size_t len)
|
||||
}
|
||||
|
||||
static int
|
||||
is_aboslute_unc_path(const char *path, size_t len) {
|
||||
is_absolute_unc_path(const char *path, size_t len) {
|
||||
if (len < 2) return 0;
|
||||
return (CHECK_UNCDEV_PATH && !IS_DEVICEID(path[2]));
|
||||
}
|
||||
@@ -317,7 +317,7 @@ mrb_file_is_absolute_path(const char *path)
|
||||
if (len > 0)
|
||||
return (
|
||||
is_absolute_traditional_path(path, len) ||
|
||||
is_aboslute_unc_path(path, len) ||
|
||||
is_absolute_unc_path(path, len) ||
|
||||
is_absolute_device_path(path, len)
|
||||
);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user