From b2d65fdc403de594ec18d2fcdb72b61942e2a920 Mon Sep 17 00:00:00 2001 From: Aire-One Date: Fri, 25 Oct 2024 01:50:55 +0200 Subject: [PATCH] chore: add Makefile --- .cspell.json | 14 ++++++++++++++ .editorconfig | 3 +++ Makefile | 21 +++++++++++++++++++++ 3 files changed, 38 insertions(+) create mode 100644 Makefile diff --git a/.cspell.json b/.cspell.json index 350535a..b4b0e04 100644 --- a/.cspell.json +++ b/.cspell.json @@ -1,17 +1,31 @@ { + "$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json", + "version": "0.2", + "useGitignore": true, + "ignorePaths": [".git"], + "enableGlobDot": true, "words": [ "Aire-One", "capi", "constructorfct", + "dbus", + "drawin", + "dryrun", "fatalwarnings", "fullscreen", "hasitem", "JohnnyMorganz", + "keygrabber", "ldoc", "luacheck", + "luacheckrc", "luadoc", + "luarocks", "lunarmodules", + "mktemp", "mousebindings", + "mousegrabber", + "rockspec", "staticfct", "stylua" ] diff --git a/.editorconfig b/.editorconfig index 98236fe..b204fac 100644 --- a/.editorconfig +++ b/.editorconfig @@ -13,3 +13,6 @@ insert_final_newline = true [*.{json,yaml}] indent_size = 2 + +[Makefile] +indent_style = tab diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f516cbd --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +install: + luarocks install --local --only-deps awesome-slot-dev-1.rockspec + +luacheck: + luacheck . + +stylua: + stylua --check . + +ldoc-dryrun: + $(eval TMP := $(shell mktemp -d)) + ldoc --fatalwarnings --dir $(TMP) . + rm -rf $(TMP) + +cspell: + cspell lint . + +lint: luacheck stylua ldoc-dryrun cspell + +ldoc: + ldoc .