Commit Graph

11 Commits (d1a755e5b7c676750f3dfad2254e047e2d23c4ac)

Author SHA1 Message Date
TheFox0x7 2a02734f93
Refactor older tests to use testify ()
Refactor checks to use assert/require
Use require.Eventually for waiting in elastic and meilisearch tests
Use require to exit early instead of assert
TheFox0x7 33e8e82c4b
Enable tenv and testifylint rules ()
Enables tenv and testifylint linters
closes: https://github.com/go-gitea/gitea/issues/32842
flynnnnnnnnnn e81ccc406b
Implement FSFE REUSE for golang files ()
Change all license headers to comply with REUSE specification.

Fix 

Co-authored-by: flynnnnnnnnnn <flynnnnnnnnnn@github>
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
John Olheiser baadb51445
Add gitea-vet ()
* Add copyright

Signed-off-by: jolheiser <john.olheiser@gmail.com>

* Add gitea-vet and fix non-compliance

Signed-off-by: jolheiser <john.olheiser@gmail.com>

* Combine tools.go into build.go and clean up

Signed-off-by: jolheiser <john.olheiser@gmail.com>

* Remove extra GO111MODULE=on

Signed-off-by: jolheiser <john.olheiser@gmail.com>
kolaente f9ec2f89f2 Add golangci ()
Oleg Kovalov 5a4648cdd6 Remove check for negative length ()
SagePtr eb0c848f5b Use native go method to get current user rather than environment variable ()
* Use native go method to get current user rather than environment var

* Use t.Skip instead of return in test
Lunny Xiao 46ecb0a14d golint fixed for modules/user
Matthias Loibl d318f612a9 Add tests for CurrentUsername() ()
Pablo Saavedra 98b152030d The pruning for the synchronized mirrors is a option now. Default value: enable_prune = true ()
Executed go fmt

getEngine() not handles DB parameters () ()

Uses .AllCols() for Update in updateMirror()

Spanish traslation removed

Fixed a wrong way to ommit the --prune option in process.ExecDir() for MirrorUpdate function
Paolo Borelli 0d38794c7f Factor out function to get the current user
The same logic was duplicated in three places. Factor it
out so that we can add further fallbacks in a single place.