mirror of https://github.com/lcpz/lain.git
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 <luca.cpz@gmail.com>
This commit is contained in:
parent
aa2f9138f4
commit
853946b665
|
@ -1,12 +1,18 @@
|
||||||
name: Luacheck
|
name: Lain
|
||||||
|
|
||||||
on: [push]
|
on: [push]
|
||||||
jobs:
|
|
||||||
Luacheck_Tests:
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
linting:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- run: echo "Running tests triggered by a ${{ github.event_name }} event."
|
- run: |
|
||||||
- run: echo "Testing ${{ github.ref }} from ${{ github.repository }} on ${{ runner.os }}"
|
echo "Running tests triggered by a ${{ github.event_name }} event."
|
||||||
|
echo "Testing ${{ github.ref }} from ${{ github.repository }} on ${{ runner.os }}"
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
uses: lunarmodules/luacheck@v0
|
uses: lunarmodules/luacheck@v0
|
||||||
|
|
|
@ -6,6 +6,8 @@ globals = {
|
||||||
"client", "screen", "mouse"
|
"client", "screen", "mouse"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
-- https://luacheck.readthedocs.io/en/stable/warnings.html
|
||||||
ignore = {
|
ignore = {
|
||||||
"131",
|
"113",
|
||||||
|
"131"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue