diff --git a/.golangci.yml b/.golangci.yml index 0d5bb20..f634435 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,4 +1,21 @@ --- +linters: + enable: + - misspell + - revive + linters-settings: errcheck: - exclude: scripts/errcheck_excludes.txt + exclude-functions: + # Don't flag lines such as "io.Copy(io.Discard, resp.Body)". + - io.Copy + # Used in HTTP handlers, any error is handled by the server itself. + - (net/http.ResponseWriter).Write + # Never check for logger errors. + - (github.com/go-kit/log.Logger).Log + revive: + rules: + # https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#unused-parameter + - name: unused-parameter + severity: warning + disabled: true diff --git a/CHANGELOG.md b/CHANGELOG.md index 2cfc35f..94ba596 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ ## master / unreleased -* [BUGFIX] /clients endpoint return application/json as Content-Type +## 0.2.0 / 2024-03-28 + +* [FEATURE] Implement flags to control retry delays #83 +* [ENHANCEMENT] Add scrape_id to error log #120 +* [BUGFIX] /clients endpoint return application/json as Content-Type #121 ## 0.1.0 / 2019-07-29 diff --git a/VERSION b/VERSION index 6e8bf73..0ea3a94 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.1.0 +0.2.0 diff --git a/scripts/errcheck_excludes.txt b/scripts/errcheck_excludes.txt deleted file mode 100644 index c2ab021..0000000 --- a/scripts/errcheck_excludes.txt +++ /dev/null @@ -1,8 +0,0 @@ -// Don't flag lines such as "io.Copy(ioutil.Discard, resp.Body)". -io.Copy -// The next two are used in HTTP handlers, any error is handled by the server itself. -io.WriteString -(net/http.ResponseWriter).Write - -// Never check for logger errors. -(github.com/go-kit/log.Logger).Log