stash/pkg/scraper
SmallCoccinelle a5ca8fc678
Enable safe linters (#1786)
* Enable safe linters

Enable the linters dogsled, rowserrcheck, and sqlclosecheck.

These report no errors currently in the code base.

Enable misspell.

Misspell finds two spelling mistakes in comments, which are fixed by the
patch as well.

Add and sort linters which are relatively
safe to add over time. Comment them out for now.

* Close the response body

If we can get a HTTP response, it has a body which ought to be closed.

By doing so, we avoid potentially leaking connections.

* Enable the exportloopref linter

There are two places in the code with these warnings. Fix them while
enabling the linter.

* Remove redundant types in tests

If a slice already determines the type, the inner type declaration is
redundant. Remove the inner declarations.

* Mark autotag test cases as parallel

Autotag test cases is by far the outlier when it comes to test time.
While go test runs test cases in parallel,
it doesn't do so inside a given package, unless one marks the test cases
as parallel.

This change provides a significant speedup on a 8-core machine for test
runs.
2021-10-03 11:48:03 +11:00
..
stashbox refactor: move from io/ioutil to io and os package (#1772) 2021-09-27 10:55:23 +10:00
action.go Scrape scene by name (#1712) 2021-09-14 14:54:53 +10:00
config.go Scrape scene by name (#1712) 2021-09-14 14:54:53 +10:00
cookies.go Update `chromedp` to fix console errors (#1521) 2021-06-23 08:05:58 +10:00
freeones.go added details, deathdate, hair color, weight to performers and added details to studios (#1274) 2021-04-16 16:06:35 +10:00
image.go refactor: move from io/ioutil to io and os package (#1772) 2021-09-27 10:55:23 +10:00
json.go refactor: move from io/ioutil to io and os package (#1772) 2021-09-27 10:55:23 +10:00
json_test.go added details, deathdate, hair color, weight to performers and added details to studios (#1274) 2021-04-16 16:06:35 +10:00
mapped.go Scrape scene by name (#1712) 2021-09-14 14:54:53 +10:00
mapped_test.go scraper/mapped: Add feetToCm post process. (#711) 2020-08-12 11:17:43 +10:00
matchers.go Studio aliases (#1660) 2021-09-09 18:13:42 +10:00
query_url.go Scrape scene by name (#1712) 2021-09-14 14:54:53 +10:00
scrapers.go Scrape scene by name (#1712) 2021-09-14 14:54:53 +10:00
script.go Lint checks phase 2 (#1747) 2021-09-23 17:15:50 +10:00
stash.go Scrape scene by name (#1712) 2021-09-14 14:54:53 +10:00
url.go Enable safe linters (#1786) 2021-10-03 11:48:03 +11:00
xpath.go Lint checks phase 2 (#1747) 2021-09-23 17:15:50 +10:00
xpath_test.go Enable safe linters (#1786) 2021-10-03 11:48:03 +11:00