lint pipeline

pull/221/head
ray-x 2 years ago
parent 348ab9dced
commit de5c88c766

@ -0,0 +1,21 @@
name: lint
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
selene:
name: Lint
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: NTBBloodbath/selene-action@v1.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --config selene.toml --color always ./lua

@ -1,7 +1,7 @@
return {
init = function()
local loader = nil
local packer_plugins = packer_plugins or nil -- suppress warnings
packer_plugins = packer_plugins or nil -- suppress warnings
local log = require('navigator.util').log
-- packer only
if packer_plugins ~= nil then -- packer install
@ -51,7 +51,7 @@ return {
end,
load = function(plugin_name, path)
local loader = nil
local packer_plugins = packer_plugins or nil -- suppress warnings
packer_plugins = packer_plugins or nil -- suppress warnings
-- packer only
if packer_plugins ~= nil then -- packer install
local lazy_plugins = {}

@ -1 +1 @@
std="lua51+vim"
std="lua52+vim"

@ -1,5 +1,5 @@
[selene]
base = "lua51"
base = "lua52"
name = "vim"
[vim]
@ -8,9 +8,11 @@ any = true
[_G]
property = true
writable = "new-fields"
[_NgConfigValues]
property = true
writable = "new-fields"
any = true
# property = true
# writable = "full-write"
[debug]
property = true

Loading…
Cancel
Save