stash/pkg
SmallCoccinelle bc6d04dc2a
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.
2021-09-28 09:29:45 +10:00
..
api Remove new-from-rev from the linter (#1783) 2021-09-28 09:29:45 +10:00
autotag refactor: move from io/ioutil to io and os package (#1772) 2021-09-27 10:55:23 +10:00
database Lint checks phase 2 (#1747) 2021-09-23 17:15:50 +10:00
dlna refactor: move from io/ioutil to io and os package (#1772) 2021-09-27 10:55:23 +10:00
ffmpeg refactor: move from io/ioutil to io and os package (#1772) 2021-09-27 10:55:23 +10:00
gallery Remove new-from-rev from the linter (#1783) 2021-09-28 09:29:45 +10:00
image Remove new-from-rev from the linter (#1783) 2021-09-28 09:29:45 +10:00
job Fix data race in progress_test (#1696) 2021-09-07 13:30:26 +10:00
logger Scraper log improvements (#1741) 2021-09-19 10:06:34 +10:00
manager Don't scan zero length files or directories (#1779) 2021-09-27 16:49:30 +10:00
models Add movie count to performer and studio card (#1760) 2021-09-27 11:31:49 +10:00
movie Remove new-from-rev from the linter (#1783) 2021-09-28 09:29:45 +10:00
performer Remove new-from-rev from the linter (#1783) 2021-09-28 09:29:45 +10:00
plugin refactor: move from io/ioutil to io and os package (#1772) 2021-09-27 10:55:23 +10:00
scene Remove new-from-rev from the linter (#1783) 2021-09-28 09:29:45 +10:00
scraper refactor: move from io/ioutil to io and os package (#1772) 2021-09-27 10:55:23 +10:00
session Remove unused (#1709) 2021-09-09 14:10:08 +10:00
sqlite Remove new-from-rev from the linter (#1783) 2021-09-28 09:29:45 +10:00
static Replace packr with go embed (#1751) 2021-09-22 13:08:34 +10:00
studio Remove new-from-rev from the linter (#1783) 2021-09-28 09:29:45 +10:00
tag Remove new-from-rev from the linter (#1783) 2021-09-28 09:29:45 +10:00
utils refactor: move from io/ioutil to io and os package (#1772) 2021-09-27 10:55:23 +10:00