mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +03:00
Remove new-from-rev from the linter (#1783)
* Fix all revive warnings in the code base All of these are of the form ``` var Identifier Type = Expr ``` where the `Type` is known from the output of `Expr` and can be omitted as a result. * Handle unchecked errors * Remove new-from-rev Since the project passes all linter checks now, including older revisions, we can remove new-from-rev. While here, reorder the linter config file, and move the enabled linters up and settings down. * Fix failing test cases Studio & Performer export tests use local time rather than UTC. This fixes the test cases so integration test passes.
This commit is contained in:
@@ -44,18 +44,24 @@ const url = "url"
|
||||
|
||||
const studioName = "studio"
|
||||
|
||||
const frontImage = "ZnJvbnRJbWFnZUJ5dGVz"
|
||||
const backImage = "YmFja0ltYWdlQnl0ZXM="
|
||||
const (
|
||||
frontImage = "ZnJvbnRJbWFnZUJ5dGVz"
|
||||
backImage = "YmFja0ltYWdlQnl0ZXM="
|
||||
)
|
||||
|
||||
var frontImageBytes = []byte("frontImageBytes")
|
||||
var backImageBytes = []byte("backImageBytes")
|
||||
var (
|
||||
frontImageBytes = []byte("frontImageBytes")
|
||||
backImageBytes = []byte("backImageBytes")
|
||||
)
|
||||
|
||||
var studio models.Studio = models.Studio{
|
||||
Name: models.NullString(studioName),
|
||||
}
|
||||
|
||||
var createTime time.Time = time.Date(2001, 01, 01, 0, 0, 0, 0, time.UTC)
|
||||
var updateTime time.Time = time.Date(2002, 01, 01, 0, 0, 0, 0, time.UTC)
|
||||
var (
|
||||
createTime = time.Date(2001, 01, 01, 0, 0, 0, 0, time.UTC)
|
||||
updateTime = time.Date(2002, 01, 01, 0, 0, 0, 0, time.UTC)
|
||||
)
|
||||
|
||||
func createFullMovie(id int, studioID int) models.Movie {
|
||||
return models.Movie{
|
||||
|
||||
Reference in New Issue
Block a user