Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update tooling #38

Merged
merged 6 commits into from
Jul 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace=true
charset = utf-8
max_line_length = 120

[*.{lua,vim}]
max_line_length = 100
indent_size = 2

[*.{md,yml,yaml,toml}]
indent_size = 2

[*.go]
indent_style = tab
indent_size = 4
24 changes: 0 additions & 24 deletions .github/workflows/ci.yml

This file was deleted.

22 changes: 22 additions & 0 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: linters
on: [push, pull_request]

jobs:
linters:
name: linters
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: JohnnyMorganz/stylua-action@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: latest
args: --check .

- uses: NTBBloodbath/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: .

- uses: editorconfig-checker/action-editorconfig-checker@main
- run: editorconfig-checker
15 changes: 0 additions & 15 deletions .pre-commit-config.yaml

This file was deleted.

11 changes: 0 additions & 11 deletions Makefile

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ It will install next tools:
- [iferr](https://github.com/koron/iferr)

2. Modify struct tags:
By default `json` tag will be added/removed, if not set:
By default `json` tag will be added/removed, if not set:

```vim
:GoTagAdd json " For add json tag
Expand Down
29 changes: 29 additions & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
version: "3"
tasks:
format:
desc: formats all lua files in repo
cmds: [stylua .]

lint:
desc: runs all linters
cmds:
- task: lint_lua
- task: lint_editorconfig

lint_lua:
desc: runs lua linter on all repo
cmds: [selene .]

lint_editorconfig:
desc: runs editorconfig-checker
cmds: [editorconfig-checker]

test:
aliases: [tests, spec]
cmds:
- |
nvim --headless \
-u ./spec/minimal_init.vim\
-c "PlenaryBustedDirectory spec \
{minimal_init='./spec/minimal_init.lua'\
,sequential=true}"