From 91cbb2ec38adcc7de42e44ea267693b78105cd9e Mon Sep 17 00:00:00 2001 From: Teriukha Mikhail <76103754+xtoter@users.noreply.github.com> Date: Sat, 29 Jun 2024 12:01:08 +0300 Subject: [PATCH] (#357) add AlliumLinter --- .github/workflows/refalLinter.yml | 26 ++++++++++++++++++++++++++ refal/config.yaml | 5 +++++ 2 files changed, 31 insertions(+) create mode 100644 .github/workflows/refalLinter.yml create mode 100644 refal/config.yaml diff --git a/.github/workflows/refalLinter.yml b/.github/workflows/refalLinter.yml new file mode 100644 index 00000000..856460e8 --- /dev/null +++ b/.github/workflows/refalLinter.yml @@ -0,0 +1,26 @@ +# Эта джоба предназначена для проверки рефал кода, она использует latest версию AlliumLinter +name: refalLinter + +on: [ push ] + +env: + # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) + BUILD_TYPE: Release + +jobs: + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.20' + + - name: Build + run: go install github.com/OnionGrief/AlliumLinter@latest + + - name: Test + run: AlliumLinter lint -d . -p ./refal/config.yaml diff --git a/refal/config.yaml b/refal/config.yaml new file mode 100644 index 00000000..06428a72 --- /dev/null +++ b/refal/config.yaml @@ -0,0 +1,5 @@ +SnakeCase: false +CamelCase: false +ConstCount: 3 +ConstLen: 3 +BlockLen: 3 \ No newline at end of file