stash/pkg/models
SmallCoccinelle a9e2a590b2
Lint checks phase 2 (#1747)
* Log 3 unchecked errors

Rather than ignore errors, log them at
the WARNING log level.

The server has been functioning without these, so assume they are not at
the ERROR level.

* Log errors in concurrency test

If we can't initialize the configuration, treat the test as a failure.

* Undo the errcheck on configurations for now.

* Handle unchecked errors in pkg/manager

* Resolve unchecked errors

* Handle DLNA/DMS unchecked errors

* Handle error checking in concurrency test

Generalize config initialization, so we can initialize a configuration
without writing it to disk.

Use this in the test case, since otherwise the test fails to write.

* Handle the remaining unchecked errors

* Heed gosimple in update test

* Use one-line if-initializer statements

While here, fix a wrong variable capture error.

* testing.T doesn't support %w

use %v instead which is supported.

* Remove unused query builder functions

The Int/String criterion handler functions are now generalized.

Thus, there's no need to keep these functions around anymore.

* Mark filterBuilder.addRecursiveWith nolint

The function is useful in the future and no other refactors are looking
nice.

Keep the function around, but tell the linter to ignore it.

* Remove utils.Btoi

There are no users of this utility function

* Return error on scan failure

If we fail to scan the row when looking for the
unique checksum index, then report the error upwards.

* Fix comments on exported functions

* Fix typos

* Fix startup error
2021-09-23 17:15:50 +10:00
..
mocks Studio aliases (#1660) 2021-09-09 18:13:42 +10:00
extension_find_filter.go Auto tag rewrite (#1324) 2021-04-26 12:51:31 +10:00
extension_resolution.go [Feature] Better resolution search (#1568) 2021-08-02 13:22:39 +10:00
gallery.go Add scene/image/gallery popover count buttons for performer/studio/tag cards (#1293) 2021-04-15 10:46:31 +10:00
image.go Add scene/image/gallery popover count buttons for performer/studio/tag cards (#1293) 2021-04-15 10:46:31 +10:00
json_time.go Prevent invalid date tag in video file from aborting scan (#836) 2020-10-11 12:02:41 +11:00
model_gallery.go Autotag support for images and galleries (#1345) 2021-05-03 13:09:46 +10:00
model_image.go Autotag support for images and galleries (#1345) 2021-05-03 13:09:46 +10:00
model_joins.go Data layer restructuring (#997) 2021-01-18 12:23:20 +11:00
model_movie.go Data layer restructuring (#997) 2021-01-18 12:23:20 +11:00
model_performer.go Added rating to performers and studios (#1308) 2021-04-26 13:48:32 +10:00
model_saved_filter.go Saved filters (#1474) 2021-06-16 14:53:32 +10:00
model_scene.go Add Handy / Funscript support (#1377) 2021-05-24 13:34:28 +10:00
model_scene_marker.go Data layer restructuring (#997) 2021-01-18 12:23:20 +11:00
model_scraped_item.go Unify scrape refactor (#1630) 2021-09-07 11:54:22 +10:00
model_studio.go Added rating to performers and studios (#1308) 2021-04-26 13:48:32 +10:00
model_tag.go Tag aliases (#1412) 2021-05-26 14:36:05 +10:00
movie.go Remove slim graphql endpoints (#1207) 2021-03-17 11:17:01 +11:00
performer.go fix typos in performer models repo interface (#1410) 2021-05-24 14:07:08 +10:00
repository.go Saved filters (#1474) 2021-06-16 14:53:32 +10:00
saved_filter.go Saved filters (#1474) 2021-06-16 14:53:32 +10:00
scene.go Add duration statistics to stats page (#1626) 2021-08-26 13:37:08 +10:00
scene_marker.go Data layer restructuring (#997) 2021-01-18 12:23:20 +11:00
scraped.go Data layer restructuring (#997) 2021-01-18 12:23:20 +11:00
sql.go Make file upload limits configurable (#1079) 2021-01-29 20:27:02 +11:00
sqlite_date.go Add partial import functionality (#812) 2020-09-20 18:36:02 +10:00
sqlite_timestamp.go Handle zip file modification (#877) 2020-11-05 10:26:51 +11:00
stash_ids.go Data layer restructuring (#997) 2021-01-18 12:23:20 +11:00
studio.go Studio aliases (#1660) 2021-09-09 18:13:42 +10:00
tag.go Tag hierarchy (#1519) 2021-09-09 14:58:43 +10:00
transaction.go Lint checks phase 2 (#1747) 2021-09-23 17:15:50 +10:00