diff --git a/Makefile.am b/Makefile.am index 9774f01b..f946a185 100644 --- a/Makefile.am +++ b/Makefile.am @@ -82,6 +82,7 @@ templatesdir = $(datadir) dist_templates_DATA = \ editorconfig \ gitlab-ci.yml \ + luacheckrc \ luarc.json \ zola_book.html \ zola_series.html \ diff --git a/luacheckrc b/luacheckrc new file mode 100644 index 00000000..72a57d88 --- /dev/null +++ b/luacheckrc @@ -0,0 +1,7 @@ +std = "lua54+sile" + +max_line_length = false + +files["pandoc-filters"] = { + std = "+pandoc_filter" +} diff --git a/rules/rules.mk b/rules/rules.mk index c2e3ac8d..aab66034 100644 --- a/rules/rules.mk +++ b/rules/rules.mk @@ -365,6 +365,10 @@ PROJECTCONFIGS += .gitignore echo '$(IGNORES)' | $(SED) -e 's/ /\n/g' > $@ +PROJECTCONFIGS += .luacheckrc +.luacheckrc: $(CASILEDIR)/luacheckrc + cp $< $@ + PROJECTCONFIGS += .luarc.json .luarc.json: $(CASILEDIR)/luarc.json cp $< $@ diff --git a/src/setup/mod.rs b/src/setup/mod.rs index ef2e682c..88bee440 100644 --- a/src/setup/mod.rs +++ b/src/setup/mod.rs @@ -149,7 +149,7 @@ pub fn is_make_gnu() -> Result { } fn regen_dotfiles(repo: Repository) -> Result<()> { - let targets = vec![".editorconfig", ".gitignore", ".luarc.json"]; + let targets = vec![".editorconfig", ".gitignore", ".luacheckrc", ".luarc.json"]; let make_targets: Vec = targets.iter().map(|&x| x.into()).collect(); make::run(make_targets)?; let mut index = repo.index()?;