From 853946b6653da07fd7f7f1923b072bee4045a652 Mon Sep 17 00:00:00 2001 From: Luca Capezzuto Date: Sat, 11 Jun 2022 11:51:02 +0200 Subject: [PATCH] Luacheck: ignore W113 too; GitHub Action: specify permissions Ignoring W113 safely avoids warnings due to Awesome modules not found by Luacheck. Signed-off-by: Luca Capezzuto --- .github/workflows/main.yml | 18 ++++++++++++------ .luacheckrc | 4 +++- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2959d64..70635ae 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,12 +1,18 @@ -name: Luacheck +name: Lain + on: [push] -jobs: - Luacheck_Tests: + +permissions: + contents: read + +jobs: + linting: runs-on: ubuntu-latest steps: - - run: echo "Running tests triggered by a ${{ github.event_name }} event." - - run: echo "Testing ${{ github.ref }} from ${{ github.repository }} on ${{ runner.os }}" + - run: | + echo "Running tests triggered by a ${{ github.event_name }} event." + echo "Testing ${{ github.ref }} from ${{ github.repository }} on ${{ runner.os }}" - name: Check out code uses: actions/checkout@v3 - name: Run tests - uses: lunarmodules/luacheck@v0 + uses: lunarmodules/luacheck@v0 diff --git a/.luacheckrc b/.luacheckrc index 5889780..811a783 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -6,6 +6,8 @@ globals = { "client", "screen", "mouse" } +-- https://luacheck.readthedocs.io/en/stable/warnings.html ignore = { - "131", + "113", + "131" }