Use editorconfig-checker (#982)

This commit is contained in:
6543 2022-06-17 12:03:34 +02:00 committed by GitHub
parent 14b3cfff1b
commit 08479390ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 60 additions and 41 deletions

14
.ecrc Normal file
View file

@ -0,0 +1,14 @@
{
"Exclude": [
".git",
"go.mod", "go.sum",
"vendor",
"fixtures",
"LICENSE",
"node_modules",
"server/store/datastore/migration/testfiles/sqlite.db",
"server/store/datastore/feed.go",
"_test.go",
"Makefile"
]
}

View file

@ -14,6 +14,7 @@ indent_style = tab
[*.md]
trim_trailing_whitespace = false
indent_size = 1
[Makefile]
indent_style = tab

View file

@ -52,6 +52,10 @@ pipeline:
- "**/*.go"
- "go.*"
lint-editorconfig:
image: mstruebing/editorconfig-checker
group: test
test:
image: golang:1.18
group: test

View file

@ -60,6 +60,7 @@ Some versions need some changes to the server configuration or the pipeline conf
- `drone.sqlite` -> `woodpecker.sqlite`
- Plugin Settings moved into `settings` section:
```diff
pipline:
something:

View file

@ -33,4 +33,3 @@ You should not use `sess.Begin()`, `sess.Commit()` or `sess.Close()` inside a mi
:::
To automatically execute the migration after the start of the server, the new migration needs to be added to the end of `migrationTasks` in `server/store/datastore/migration/migration.go`. After a successful execution of that transaction the server will automatically add the migration to a list, so it won't be executed again on the next start.