Skip to content

Commit

Permalink
(#357) add AlliumLinter
Browse files Browse the repository at this point in the history
  • Loading branch information
xtoter authored and Teryukha Mikhail Romanovich committed Jun 29, 2024
1 parent 55cd771 commit 7f93aea
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/refalLinter.yml
Original file line number Diff line number Diff line change
@@ -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
5 changes: 5 additions & 0 deletions refal/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
SnakeCase: false
CamelCase: false
ConstCount: 3
ConstLen: 3
BlockLen: 3

0 comments on commit 7f93aea

Please sign in to comment.