From c70c1212f39dedb44a48e6f9ef261f315ec1bbc3 Mon Sep 17 00:00:00 2001 From: John Bampton Date: Mon, 12 Jun 2023 01:37:05 +1000 Subject: [PATCH 1/2] super-linter: VALIDATE_ALL_CODEBASE true --- .github/workflows/super-linter.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/super-linter.yml b/.github/workflows/super-linter.yml index c2ec8f2d..dd905498 100644 --- a/.github/workflows/super-linter.yml +++ b/.github/workflows/super-linter.yml @@ -23,5 +23,5 @@ jobs: DEFAULT_BRANCH: main ERROR_ON_MISSING_EXEC_BIT: true VALIDATE_EDITORCONFIG: true - VALIDATE_ALL_CODEBASE: false + VALIDATE_ALL_CODEBASE: true GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 17d3a520f4c14a108fb515058ccbbf619535b00f Mon Sep 17 00:00:00 2001 From: John Bampton Date: Mon, 12 Jun 2023 01:46:09 +1000 Subject: [PATCH 2/2] `.one` files use tabs for indents --- tmp/c-new/input.one | 86 ++++++++++++++++++++++----------------------- tmp/c/input.one | 6 ++-- 2 files changed, 46 insertions(+), 46 deletions(-) diff --git a/tmp/c-new/input.one b/tmp/c-new/input.one index 216e8288..b5b2a223 100644 --- a/tmp/c-new/input.one +++ b/tmp/c-new/input.one @@ -15,13 +15,13 @@ package main // const i32 global_int2 = 110 i8 test1 { - _ 4 - _ 4+3 - _ 5+1-2+6 - _ 5.5 - 0.1 * 5.2 + 6 / 24 - _ (2 + 15 * ( 25 - 13 ) / 1 - 4) + 10 / 2 - _ -3 - _ +4 + _ 4 + _ 4+3 + _ 5+1-2+6 + _ 5.5 - 0.1 * 5.2 + 6 / 24 + _ (2 + 15 * ( 25 - 13 ) / 1 - 4) + 10 / 2 + _ -3 + _ +4 } /* @@ -29,20 +29,20 @@ i8 test2{ } i8 main { - // _ - _ 1 - __ 2 - !_ 3 - !__ 4 - __ 8, 9, 10 + // _ + _ 1 + __ 2 + !_ 3 + !__ 4 + __ 8, 9, 10 } i8 ret_num { - ret 54 + ret 54 } i8 ret_my_num (i8 a) { - ret a, 1, 10, 100, 1000 + ret a, 1, 10, 100, 1000 } */ @@ -52,42 +52,42 @@ i8 ret_my_num (i8 a) { /* test() { - u8 u_age = 32 + u8 u_age = 32 - age = 5 + age = 5 - const c_police = 110 // You cannot change the value of this variable anymore! + const c_police = 110 // You cannot change the value of this variable anymore! - final c_my_phone - c_my_phone = 91240405555 // You cannot change the value of this variable anymore! + final c_my_phone + c_my_phone = 91240405555 // You cannot change the value of this variable anymore! - final c_my_phone2 = 912404011111 // You cannot change the value of this variable anymore! + final c_my_phone2 = 912404011111 // You cannot change the value of this variable anymore! - name = "Max" - name = "Max!" + name = "Max" + name = "Max!" - string s_name = "Max" - s_name = "Max?" + string s_name = "Max" + s_name = "Max?" - // 5 - // 5.64.4 - // if + // 5 + // 5.64.4 + // if - if 5 > 4 { - _ "Yes\n" - // equal to - __ "Yes" - } + if 5 > 4 { + _ "Yes\n" + // equal to + __ "Yes" + } - names = ["Max", "Ali", "John"] - string[] sa_names = ["Max", "Ali", "John"] - for name in names { - _ name - } - _ "Hello, World!" - _ 1, 2, 3, 4, 5 - _ ret_num() - _ ret_my_num(40) - _ ret_my_num(10) + names = ["Max", "Ali", "John"] + string[] sa_names = ["Max", "Ali", "John"] + for name in names { + _ name + } + _ "Hello, World!" + _ 1, 2, 3, 4, 5 + _ ret_num() + _ ret_my_num(40) + _ ret_my_num(10) } */ diff --git a/tmp/c/input.one b/tmp/c/input.one index a1c932ef..69a99fe6 100644 --- a/tmp/c/input.one +++ b/tmp/c/input.one @@ -6,7 +6,7 @@ main(i32 a){ - # this have crash: ret -3 - ret 110 - ret 3 + # this have crash: ret -3 + ret 110 + ret 3 }