From 48874e45983e89b5e21dd2b274bc4cc3584e76fc Mon Sep 17 00:00:00 2001 From: theFox6 Date: Wed, 26 Feb 2020 16:42:37 +0100 Subject: [PATCH] add github files --- .github/ISSUE_TEMPLATE/bug_report.md | 33 +++++++++++++++++++++++ .github/ISSUE_TEMPLATE/feature_request.md | 18 +++++++++++++ .github/workflows/luacheck.yml | 13 +++++++++ .luacheck_health | 26 ------------------ .luacheck_tidy | 11 ++++++++ .luacheckrc | 29 +++++++++++++++----- .travis.yml | 6 ++--- mod.conf | 3 +++ 8 files changed, 103 insertions(+), 36 deletions(-) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.md create mode 100644 .github/ISSUE_TEMPLATE/feature_request.md create mode 100644 .github/workflows/luacheck.yml delete mode 100644 .luacheck_health create mode 100644 .luacheck_tidy create mode 100644 mod.conf diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..2f4becb --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,33 @@ +--- +name: Bug report +about: Report a bug to help fixing it +labels: unconfirmed bug + +--- + +**Describe the bug** +Insert a description of what the bug is. + +**To Reproduce** +If known, steps to reproduce the behavior: +1. Use '...' +2. Click on '....' +3. Input '....' +4. See error + +**Expected behavior** +Insert a description of what you expected to happen. + +**Screenshots** +If applicable, add screenshots to help explain your problem. + +**Log** +Add the contents of debug.txt if possible under the last separator before the bug appeared. + +**Desktop (please complete the following information):** + - Minetest version: [If you are on a devel version, please add git commit hash +You can use `minetest --version` to find it.] + - Other mods activated: [mods activated in the world where the bug appeared this mod depends on or that depend on this mod] + +**Additional context** +Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 0000000..1f0d6c3 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,18 @@ +--- +name: Feature request +about: Suggest an idea for this project +labels: enhancement + +--- + +**Is your feature request related to a problem? Please describe.** +Insert a description of what the problem is. Example: I'm always frustrated when [...] + +**Describe the solution you'd like** +Insert a description of what you want to happen. + +**Describe alternatives you've considered** +Insert a description of any alternative solutions or features you've considered. + +**Additional context** +Add any other context eg. screenshots about the feature request here. diff --git a/.github/workflows/luacheck.yml b/.github/workflows/luacheck.yml new file mode 100644 index 0000000..47e9e74 --- /dev/null +++ b/.github/workflows/luacheck.yml @@ -0,0 +1,13 @@ +name: luacheck + +on: [push] + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2.0.0 + - name: run luacheck + uses: Roang-zero1/factorio-mod-luacheck@master + with: + LUACHECKRC_URL: https://raw.githubusercontent.com/${{github.repository}}/${{github.sha}}/.luacheckrc diff --git a/.luacheck_health b/.luacheck_health deleted file mode 100644 index f4def04..0000000 --- a/.luacheck_health +++ /dev/null @@ -1,26 +0,0 @@ -allow_defined_top = true - -read_globals = { - "default", - "dump", - "ItemStack", - "PseudoRandom", - "stairsplus", - "intllib", - "Settings", - math = { fields = {"sign"} }, - "minetest", - "vector", - "VoxelArea", - "VoxelManip", -} - -ignore = { - "211", - "212", - "213", - "611", - "612", - "621", - "631" -} diff --git a/.luacheck_tidy b/.luacheck_tidy new file mode 100644 index 0000000..7812b4c --- /dev/null +++ b/.luacheck_tidy @@ -0,0 +1,11 @@ +allow_defined_top = true + +read_globals = { + "minetest", "default", + "dump", "vector", + "VoxelManip", "VoxelArea", + "ItemStack", "PseudoRandom", + "stairsplus", "intllib", + "Settings", + math = { fields = {"sign"} } +} \ No newline at end of file diff --git a/.luacheckrc b/.luacheckrc index 7812b4c..f4def04 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -1,11 +1,26 @@ allow_defined_top = true read_globals = { - "minetest", "default", - "dump", "vector", - "VoxelManip", "VoxelArea", - "ItemStack", "PseudoRandom", - "stairsplus", "intllib", + "default", + "dump", + "ItemStack", + "PseudoRandom", + "stairsplus", + "intllib", "Settings", - math = { fields = {"sign"} } -} \ No newline at end of file + math = { fields = {"sign"} }, + "minetest", + "vector", + "VoxelArea", + "VoxelManip", +} + +ignore = { + "211", + "212", + "213", + "611", + "612", + "621", + "631" +} diff --git a/.travis.yml b/.travis.yml index b4bcbb7..4eda332 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,15 +7,15 @@ addons: before_install: - luarocks install --local luacheck env: - - CONFIG=.luacheck_health + - CONFIG=.luacheck_tidy - CONFIG=.luacheckrc matrix: allow_failures: - name: "beauty check" - env: CONFIG=.luacheckrc + env: CONFIG=.luacheck_tidy exclude: - name: "health check" - env: CONFIG=.luacheck_health + env: CONFIG=.luacheckrc script: - $HOME/.luarocks/bin/luacheck --config $CONFIG . notifications: diff --git a/mod.conf b/mod.conf new file mode 100644 index 0000000..36bc74c --- /dev/null +++ b/mod.conf @@ -0,0 +1,3 @@ +name = microexpansion +description = A storage managing solution to get an overview over all your items. +depends = default