mirror of
https://github.com/sysadminsmedia/homebox.git
synced 2025-12-21 13:23:14 +01:00
* Remove documents table (WIP) * Further cleanup of documents table * This should clean up the errors, but actual attachment handling still needs added. * Full generation to update the JS side of things too * Further fixes * Fix cyclic dependency issue * In theory the API side works now * Fix go linting issues * Fix frontend issues * Way closer, but has a foreign key constrant issue * UI actually works now * Fix deduplication feature not working right * Upgrade to `golangci-lint` v2 file * Add ability to set primary during attachment creation * Update swagger with new primary attachment during creation stuff * Files are actually saved now, but there's still a bug * Fix critical issue whith how deletions were working * Fix the byte copy issue * Hopefully everything is fixed now * Fix golangci-lint config and lint files * Fix lint issue * Fix a few more tests * Fix lint issues again * More minor test fixes * Update backend/internal/core/services/service_items_attachments.go Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Fix migration (I think) * Fixed postgres migration * Change some migration options to work better * Some more little things that I tried * Fix merge go.mod * Fix migrations * Little lint thing * Fix AttachmentsList.vue with updated API --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
82 lines
1.5 KiB
YAML
82 lines
1.5 KiB
YAML
version: "2"
|
|
linters:
|
|
default: none
|
|
enable:
|
|
- asciicheck
|
|
- bodyclose
|
|
- copyloopvar
|
|
- depguard
|
|
- dogsled
|
|
- errcheck
|
|
- errorlint
|
|
- exhaustive
|
|
- gochecknoinits
|
|
- goconst
|
|
- gocritic
|
|
- gocyclo
|
|
- goprintffuncname
|
|
- govet
|
|
- ineffassign
|
|
- misspell
|
|
- nakedret
|
|
- revive
|
|
- sqlclosecheck
|
|
- staticcheck
|
|
- tagalign
|
|
- testifylint
|
|
- unconvert
|
|
- unused
|
|
- whitespace
|
|
- zerologlint
|
|
settings:
|
|
depguard:
|
|
rules:
|
|
main:
|
|
deny:
|
|
- pkg: io/util
|
|
desc: |
|
|
Deprecated: As of Go 1.16, the same functionality is now provided by
|
|
package io or package os, and those implementations should be
|
|
preferred in new code. See the specific function documentation for
|
|
details.
|
|
exhaustive:
|
|
default-signifies-exhaustive: true
|
|
goconst:
|
|
min-len: 5
|
|
min-occurrences: 5
|
|
gocritic:
|
|
enabled-checks:
|
|
- ruleguard
|
|
revive:
|
|
confidence: 3
|
|
severity: warning
|
|
tagalign:
|
|
order:
|
|
- json
|
|
- schema
|
|
- yaml
|
|
- yml
|
|
- toml
|
|
- validate
|
|
testifylint:
|
|
enable-all: true
|
|
exclusions:
|
|
generated: lax
|
|
paths:
|
|
- internal/data/ent.*
|
|
- third_party$
|
|
- builtin$
|
|
- examples$
|
|
issues:
|
|
fix: true
|
|
formatters:
|
|
enable:
|
|
- gofmt
|
|
exclusions:
|
|
generated: lax
|
|
paths:
|
|
- internal/data/ent.*
|
|
- third_party$
|
|
- builtin$
|
|
- examples$
|