stash/pkg/manager
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
..
config Lint checks phase 2 (#1747) 2021-09-23 17:15:50 +10:00
jsonschema Studio aliases (#1660) 2021-09-09 18:13:42 +10:00
paths Errcheck phase 1 (#1715) 2021-09-21 09:34:25 +10:00
apikey.go Setup and migration UI refactor (#1190) 2021-04-12 09:31:33 +10:00
checksum.go Fix: config race conditions with RWMutex (#1645) 2021-08-24 15:18:30 +10:00
downloads.go Selective export (#770) 2020-09-15 17:28:53 +10:00
exclude_files.go Cleanup fixes (#1422) 2021-05-25 11:03:09 +10:00
exclude_files_test.go Added exclude patterns support for Clean Task (#274) 2019-12-23 21:06:07 -05:00
filename_parser.go Studio aliases (#1660) 2021-09-09 18:13:42 +10:00
gallery.go Images section (#813) 2020-10-13 10:12:46 +11:00
generator.go Make audio stream optional for preview generation (#1454) 2021-06-11 15:01:32 +10:00
generator_phash.go Add in-memory screenshot generation for sprites and phash (#1316) 2021-05-05 13:22:05 +10:00
generator_preview.go Make audio stream optional for preview generation (#1454) 2021-06-11 15:01:32 +10:00
generator_sprite.go Fix: unhandled errors (#1419) 2021-05-25 18:40:51 +10:00
image.go Errcheck phase 1 (#1715) 2021-09-21 09:34:25 +10:00
import.go Add partial import functionality (#812) 2020-09-20 18:36:02 +10:00
json_utils.go Images section (#813) 2020-10-13 10:12:46 +11:00
manager.go Lint checks phase 2 (#1747) 2021-09-23 17:15:50 +10:00
manager_tasks.go Reorder waitgroup completion (#1748) 2021-09-22 13:22:59 +10:00
migrate_hash.go Migrate generated files when a scene is rescanned (#1106) 2021-02-10 10:50:34 +11:00
post_migrate.go Data layer restructuring (#997) 2021-01-18 12:23:20 +11:00
running_streams.go Errcheck phase 1 (#1715) 2021-09-21 09:34:25 +10:00
scene.go Generate screenshot images for markers (#1604) 2021-09-15 12:27:05 +10:00
scene_screenshot.go Allow uploading of custom scene covers (#262) 2019-12-13 15:40:58 -05:00
screenshot.go Errcheck phase 1 (#1715) 2021-09-21 09:34:25 +10:00
studio.go Data layer restructuring (#997) 2021-01-18 12:23:20 +11:00
subscribe.go Job queueing (#1379) 2021-05-24 14:24:18 +10:00
task.go Reorder waitgroup completion (#1748) 2021-09-22 13:22:59 +10:00
task_autotag.go Fix autotag tag alias (#1713) 2021-09-17 09:23:56 +10:00
task_clean.go Plugin hooks (#1452) 2021-06-11 17:24:58 +10:00
task_export.go Lint checks phase 2 (#1747) 2021-09-23 17:15:50 +10:00
task_generate_markers.go Lint checks phase 2 (#1747) 2021-09-23 17:15:50 +10:00
task_generate_phash.go Reorder waitgroup completion (#1748) 2021-09-22 13:22:59 +10:00
task_generate_preview.go Reorder waitgroup completion (#1748) 2021-09-22 13:22:59 +10:00
task_generate_screenshot.go Reorder waitgroup completion (#1748) 2021-09-22 13:22:59 +10:00
task_generate_sprite.go Reorder waitgroup completion (#1748) 2021-09-22 13:22:59 +10:00
task_import.go Reorder waitgroup completion (#1748) 2021-09-22 13:22:59 +10:00
task_migrate_hash.go Reorder waitgroup completion (#1748) 2021-09-22 13:22:59 +10:00
task_plugin.go Plugin hooks (#1452) 2021-06-11 17:24:58 +10:00
task_scan.go Improve image scanning performance and thumbnail generation (#1655) 2021-09-23 15:22:14 +10:00
task_stash_box_tag.go Lint checks phase 2 (#1747) 2021-09-23 17:15:50 +10:00
task_transcode.go Reorder waitgroup completion (#1748) 2021-09-22 13:22:59 +10:00