-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Currently runs clean.
- Loading branch information
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Linting | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
luacheck: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup Lua | ||
uses: leafo/gh-actions-lua@v8 | ||
with: | ||
luaVersion: 5.4 | ||
- name: Setup Lua Rocks | ||
uses: leafo/gh-actions-luarocks@v4 | ||
- name: Setup luacheck | ||
run: luarocks install luacheck | ||
- name: Run Code Linter | ||
run: | | ||
luacheck . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
-- love uses luajit with some extras (unpack) from 5.2 | ||
std = "love+luajit+lua52" | ||
|
||
-- These are acceptable to me, but not currently necessary. | ||
--~ max_line_length = false -- Do not limit line length. | ||
--~ unused_secondaries = false -- Filter out warnings related to unused variables set together with used ones. | ||
|
||
exclude_files = { | ||
-- leafo/gh-actions-lua & luarocks put lua files here | ||
'.install', | ||
'.lua', | ||
'.luarocks', | ||
} | ||
|
||
-- vim:set et sw=4 ts=4 ft=lua: |