From cecab912982fc63ad5770b5c16788df67c151611 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Guillot?= Date: Mon, 8 Aug 2022 21:33:38 -0700 Subject: [PATCH] Fix some linter issues --- .github/dependabot.yml | 9 ++++ .github/workflows/ci.yml | 4 +- .github/workflows/linters.yml | 2 +- cli/doc.go | 2 - client/doc.go | 4 +- config/doc.go | 2 - crypto/doc.go | 2 - doc.go | 2 - errors/doc.go | 2 - fever/doc.go | 2 - fever/handler.go | 86 +++++++++++++++++----------------- fever/response.go | 5 +- googlereader/doc.go | 2 - http/client/client.go | 15 ++---- http/client/doc.go | 2 - http/cookie/doc.go | 2 - http/request/doc.go | 2 - http/response/doc.go | 2 - http/response/html/doc.go | 2 - http/response/json/doc.go | 2 - http/response/xml/doc.go | 2 - http/route/doc.go | 2 - locale/doc.go | 2 - locale/translations/de_DE.json | 3 +- locale/translations/fr_FR.json | 3 +- locale/translations/nl_NL.json | 3 +- locale/translations/pl_PL.json | 3 +- locale/translations/zh_CN.json | 3 +- locale/translations/zh_TW.json | 3 +- logger/doc.go | 2 - model/doc.go | 2 - oauth2/doc.go | 2 - reader/atom/doc.go | 2 - reader/browser/doc.go | 2 - reader/date/doc.go | 2 - reader/doc.go | 2 - reader/encoding/doc.go | 2 - reader/icon/doc.go | 2 - reader/json/doc.go | 2 - reader/opml/doc.go | 2 - reader/parser/doc.go | 2 - reader/processor/doc.go | 2 - reader/rdf/doc.go | 2 - reader/readability/doc.go | 2 - reader/rewrite/doc.go | 2 - reader/rss/doc.go | 2 - reader/sanitizer/doc.go | 2 - reader/scraper/doc.go | 2 - reader/subscription/doc.go | 2 - service/httpd/doc.go | 2 - service/scheduler/doc.go | 2 - storage/doc.go | 2 - tests/category_test.go | 1 + tests/doc.go | 2 - tests/endpoint_test.go | 1 + tests/feed_test.go | 1 + tests/import_export_test.go | 1 + tests/subscription_test.go | 1 + tests/tests.go | 1 + timer/doc.go | 2 - timezone/doc.go | 2 - ui/doc.go | 2 - ui/form/doc.go | 2 - ui/session/doc.go | 2 - ui/static/doc.go | 2 - ui/view/doc.go | 2 - url/doc.go | 2 - version/doc.go | 2 - worker/doc.go | 2 - 69 files changed, 73 insertions(+), 176 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 3db1fd41..b0d6d052 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -17,3 +17,12 @@ updates: - "fguillot" assignees: - "fguillot" + + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" + reviewers: + - "fguillot" + assignees: + - "fguillot" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a1fb19a8..228ed2bf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ jobs: max-parallel: 4 matrix: os: [ubuntu-latest, windows-latest, macOS-latest] - go-version: [1.16, 1.17, 1.18] + go-version: [1.18, 1.19] steps: - name: Set up Go uses: actions/setup-go@v2 @@ -42,7 +42,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v2 with: - go-version: 1.16 + go-version: 1.19 - name: Checkout uses: actions/checkout@v2 - name: Install Postgres client diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml index 3ec92b5e..cfb22ea7 100644 --- a/.github/workflows/linters.yml +++ b/.github/workflows/linters.yml @@ -25,7 +25,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-go@v2 with: - go-version: 1.17 + go-version: 1.19 - uses: golangci/golangci-lint-action@v2 with: args: --skip-dirs tests --disable errcheck --enable sqlclosecheck --enable misspell --enable gofmt --enable goimports --enable whitespace diff --git a/cli/doc.go b/cli/doc.go index ee5d57c9..a7bab431 100644 --- a/cli/doc.go +++ b/cli/doc.go @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. /* - Package cli implements command line arguments for Miniflux application. - */ package cli // import "miniflux.app/cli" diff --git a/client/doc.go b/client/doc.go index eb7a0472..aadfe992 100644 --- a/client/doc.go +++ b/client/doc.go @@ -3,10 +3,9 @@ // license that can be found in the LICENSE file. /* - Package client implements a client library for the Miniflux REST API. -Examples +# Examples This code snippet fetch the list of users: @@ -30,6 +29,5 @@ This one discover subscriptions on a website: return } fmt.Println(subscriptions) - */ package client // import "miniflux.app/client" diff --git a/config/doc.go b/config/doc.go index c8121acd..acaa32f0 100644 --- a/config/doc.go +++ b/config/doc.go @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. /* - Package config handles configuration management for the application. - */ package config // import "miniflux.app/config" diff --git a/crypto/doc.go b/crypto/doc.go index 7f0e6a76..060c48b2 100644 --- a/crypto/doc.go +++ b/crypto/doc.go @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. /* - Package crypto implements helpers related to cryptography. - */ package crypto // import "miniflux.app/crypto" diff --git a/doc.go b/doc.go index 19aabaac..7d315a57 100644 --- a/doc.go +++ b/doc.go @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. /* - Miniflux is a feed reader application. - */ package main // import "miniflux.app" diff --git a/errors/doc.go b/errors/doc.go index 574b49d1..cc509ff2 100644 --- a/errors/doc.go +++ b/errors/doc.go @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. /* - Package errors handles localized errors. - */ package errors // import "miniflux.app/errors" diff --git a/fever/doc.go b/fever/doc.go index faca2a0c..87d2ade5 100644 --- a/fever/doc.go +++ b/fever/doc.go @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. /* - Package fever implements Fever API endpoints. - */ package fever // import "miniflux.app/fever" diff --git a/fever/handler.go b/fever/handler.go index 794f2f01..9508358c 100644 --- a/fever/handler.go +++ b/fever/handler.go @@ -61,13 +61,13 @@ func (h *handler) serve(w http.ResponseWriter, r *http.Request) { /* A request with the groups argument will return two additional members: - groups contains an array of group objects - feeds_groups contains an array of feeds_group objects + groups contains an array of group objects + feeds_groups contains an array of feeds_group objects A group object has the following members: - id (positive integer) - title (utf-8 string) + id (positive integer) + title (utf-8 string) The feeds_group object is documented under “Feeds/Groups Relationships.” @@ -76,7 +76,6 @@ an is_spark equal to 0. The “Sparks” super group is not included in this response and is composed of all feeds with an is_spark equal to 1. - */ func (h *handler) handleGroups(w http.ResponseWriter, r *http.Request) { userID := request.UserID(r) @@ -107,18 +106,18 @@ func (h *handler) handleGroups(w http.ResponseWriter, r *http.Request) { /* A request with the feeds argument will return two additional members: - feeds contains an array of group objects - feeds_groups contains an array of feeds_group objects + feeds contains an array of group objects + feeds_groups contains an array of feeds_group objects A feed object has the following members: - id (positive integer) - favicon_id (positive integer) - title (utf-8 string) - url (utf-8 string) - site_url (utf-8 string) - is_spark (boolean integer) - last_updated_on_time (Unix timestamp/integer) + id (positive integer) + favicon_id (positive integer) + title (utf-8 string) + url (utf-8 string) + site_url (utf-8 string) + is_spark (boolean integer) + last_updated_on_time (Unix timestamp/integer) The feeds_group object is documented under “Feeds/Groups Relationships.” @@ -165,12 +164,12 @@ func (h *handler) handleFeeds(w http.ResponseWriter, r *http.Request) { /* A request with the favicons argument will return one additional member: - favicons contains an array of favicon objects + favicons contains an array of favicon objects A favicon object has the following members: - id (positive integer) - data (base64 encoded image data; prefixed by image type) + id (positive integer) + data (base64 encoded image data; prefixed by image type) An example data value: @@ -206,20 +205,20 @@ func (h *handler) handleFavicons(w http.ResponseWriter, r *http.Request) { /* A request with the items argument will return two additional members: - items contains an array of item objects - total_items contains the total number of items stored in the database (added in API version 2) + items contains an array of item objects + total_items contains the total number of items stored in the database (added in API version 2) An item object has the following members: - id (positive integer) - feed_id (positive integer) - title (utf-8 string) - author (utf-8 string) - html (utf-8 string) - url (utf-8 string) - is_saved (boolean integer) - is_read (boolean integer) - created_on_time (Unix timestamp/integer) + id (positive integer) + feed_id (positive integer) + title (utf-8 string) + author (utf-8 string) + html (utf-8 string) + url (utf-8 string) + is_saved (boolean integer) + is_read (boolean integer) + created_on_time (Unix timestamp/integer) Most servers won’t have enough memory allocated to PHP to dump all items at once. Three optional arguments control determine the items included in the response. @@ -232,7 +231,6 @@ Three optional arguments control determine the items included in the response. Use the with_ids argument with a comma-separated list of item ids to request (a maximum of 50) specific items. (added in API version 2) - */ func (h *handler) handleItems(w http.ResponseWriter, r *http.Request) { var result itemsResponse @@ -327,7 +325,8 @@ The unread_item_ids and saved_item_ids arguments can be used to keep your local with the remote Fever installation. A request with the unread_item_ids argument will return one additional member: - unread_item_ids (string/comma-separated list of positive integers) + + unread_item_ids (string/comma-separated list of positive integers) */ func (h *handler) handleUnreadItems(w http.ResponseWriter, r *http.Request) { userID := request.UserID(r) @@ -384,9 +383,9 @@ func (h *handler) handleSavedItems(w http.ResponseWriter, r *http.Request) { } /* - mark=item - as=? where ? is replaced with read, saved or unsaved - id=? where ? is replaced with the id of the item to modify +mark=item +as=? where ? is replaced with read, saved or unsaved +id=? where ? is replaced with the id of the item to modify */ func (h *handler) handleWriteItems(w http.ResponseWriter, r *http.Request) { userID := request.UserID(r) @@ -448,10 +447,10 @@ func (h *handler) handleWriteItems(w http.ResponseWriter, r *http.Request) { } /* - mark=feed - as=read - id=? where ? is replaced with the id of the feed or group to modify - before=? where ? is replaced with the Unix timestamp of the the local client’s most recent items API request +mark=feed +as=read +id=? where ? is replaced with the id of the feed or group to modify +before=? where ? is replaced with the Unix timestamp of the the local client’s most recent items API request */ func (h *handler) handleWriteFeeds(w http.ResponseWriter, r *http.Request) { userID := request.UserID(r) @@ -474,10 +473,10 @@ func (h *handler) handleWriteFeeds(w http.ResponseWriter, r *http.Request) { } /* - mark=group - as=read - id=? where ? is replaced with the id of the feed or group to modify - before=? where ? is replaced with the Unix timestamp of the the local client’s most recent items API request +mark=group +as=read +id=? where ? is replaced with the id of the feed or group to modify +before=? where ? is replaced with the Unix timestamp of the the local client’s most recent items API request */ func (h *handler) handleWriteGroups(w http.ResponseWriter, r *http.Request) { userID := request.UserID(r) @@ -510,9 +509,8 @@ func (h *handler) handleWriteGroups(w http.ResponseWriter, r *http.Request) { /* A feeds_group object has the following members: - group_id (positive integer) - feed_ids (string/comma-separated list of positive integers) - + group_id (positive integer) + feed_ids (string/comma-separated list of positive integers) */ func (h *handler) buildFeedGroups(feeds model.Feeds) []feedsGroups { feedsGroupedByCategory := make(map[int64][]string) diff --git a/fever/response.go b/fever/response.go index 444af81d..0c68646a 100644 --- a/fever/response.go +++ b/fever/response.go @@ -23,8 +23,8 @@ func (b *baseResponse) SetCommonValues() { /* The default response is a JSON object containing two members: - api_version contains the version of the API responding (positive integer) - auth whether the request was successfully authenticated (boolean integer) + api_version contains the version of the API responding (positive integer) + auth whether the request was successfully authenticated (boolean integer) The API can also return XML by passing xml as the optional value of the api argument like so: @@ -37,7 +37,6 @@ at least one additional member: last_refreshed_on_time contains the time of the most recently refreshed (not updated) feed (Unix timestamp/integer) - */ func newBaseResponse() baseResponse { r := baseResponse{} diff --git a/googlereader/doc.go b/googlereader/doc.go index 683843b5..10b3d564 100644 --- a/googlereader/doc.go +++ b/googlereader/doc.go @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. /* - Package googlereader implements Google Reader API endpoints. - */ package googlereader // import "miniflux.app/googlereader" diff --git a/http/client/client.go b/http/client/client.go index a524cd59..cb966944 100644 --- a/http/client/client.go +++ b/http/client/client.go @@ -29,10 +29,9 @@ const ( ) var ( - errInvalidCertificate = "Invalid SSL certificate (original error: %q)" - errTemporaryNetworkOperation = "This website is temporarily unreachable (original error: %q)" - errPermanentNetworkOperation = "This website is permanently unreachable (original error: %q)" - errRequestTimeout = "Website unreachable, the request timed out after %d seconds" + errInvalidCertificate = "Invalid SSL certificate (original error: %q)" + errNetworkOperation = "This website is unreachable (original error: %q)" + errRequestTimeout = "Website unreachable, the request timed out after %d seconds" ) // Client builds and executes HTTP requests. @@ -205,17 +204,11 @@ func (c *Client) executeRequest(request *http.Request) (*Response, error) { case x509.CertificateInvalidError, x509.HostnameError: err = errors.NewLocalizedError(errInvalidCertificate, uerr.Err) case *net.OpError: - if uerr.Err.(*net.OpError).Temporary() { - err = errors.NewLocalizedError(errTemporaryNetworkOperation, uerr.Err) - } else { - err = errors.NewLocalizedError(errPermanentNetworkOperation, uerr.Err) - } + err = errors.NewLocalizedError(errNetworkOperation, uerr.Err) case net.Error: nerr := uerr.Err.(net.Error) if nerr.Timeout() { err = errors.NewLocalizedError(errRequestTimeout, c.ClientTimeout) - } else if nerr.Temporary() { - err = errors.NewLocalizedError(errTemporaryNetworkOperation, nerr) } } } diff --git a/http/client/doc.go b/http/client/doc.go index 64015cad..03cb6cf0 100644 --- a/http/client/doc.go +++ b/http/client/doc.go @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. /* - Package client provides an HTTP client builder. - */ package client // import "miniflux.app/http/client" diff --git a/http/cookie/doc.go b/http/cookie/doc.go index 0efcc76a..f80831bb 100644 --- a/http/cookie/doc.go +++ b/http/cookie/doc.go @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. /* - Package cookie provides functions to build cookies. - */ package cookie // import "miniflux.app/http/cookie" diff --git a/http/request/doc.go b/http/request/doc.go index 8e30337f..a35fcae2 100644 --- a/http/request/doc.go +++ b/http/request/doc.go @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. /* - Package request contains helper functions to work with the HTTP request. - */ package request // import "miniflux.app/http/request" diff --git a/http/response/doc.go b/http/response/doc.go index 169d3efd..6987ae26 100644 --- a/http/response/doc.go +++ b/http/response/doc.go @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. /* - Package response contains everything related to HTTP responses. - */ package response // import "miniflux.app/http/response" diff --git a/http/response/html/doc.go b/http/response/html/doc.go index de47a225..9051ea4f 100644 --- a/http/response/html/doc.go +++ b/http/response/html/doc.go @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. /* - Package html contains HTML response functions. - */ package html // import "miniflux.app/http/response/html" diff --git a/http/response/json/doc.go b/http/response/json/doc.go index a95415a7..7c10e5e6 100644 --- a/http/response/json/doc.go +++ b/http/response/json/doc.go @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. /* - Package json contains JSON response functions. - */ package json // import "miniflux.app/http/response/json" diff --git a/http/response/xml/doc.go b/http/response/xml/doc.go index 81f3d21e..8ca4655e 100644 --- a/http/response/xml/doc.go +++ b/http/response/xml/doc.go @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. /* - Package xml contains XML response functions. - */ package xml // import "miniflux.app/http/response/xml" diff --git a/http/route/doc.go b/http/route/doc.go index 4b304977..3633d709 100644 --- a/http/route/doc.go +++ b/http/route/doc.go @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. /* - Package route contains helper functions to work with defined routes. - */ package route // import "miniflux.app/http/route" diff --git a/locale/doc.go b/locale/doc.go index cb26c3ec..2f6849e7 100644 --- a/locale/doc.go +++ b/locale/doc.go @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. /* - Package locale handles the internationalization of the application. - */ package locale // import "miniflux.app/locale" diff --git a/locale/translations/de_DE.json b/locale/translations/de_DE.json index 3393b6f4..43194cb8 100644 --- a/locale/translations/de_DE.json +++ b/locale/translations/de_DE.json @@ -395,8 +395,7 @@ "This feed is empty": "Dieses Abonnement ist leer", "This web page is empty": "Diese Webseite ist leer", "Invalid SSL certificate (original error: %q)": "Ungültiges SSL-Zertifikat (ursprünglicher Fehler: %q)", - "This website is temporarily unreachable (original error: %q)": "Diese Webseite ist vorübergehend nicht erreichbar (ursprünglicher Fehler: %q)", - "This website is permanently unreachable (original error: %q)": "Diese Webseite ist dauerhaft nicht erreichbar (ursprünglicher Fehler: %q)", + "This website is unreachable (original error: %q)": "Diese Webseite ist nicht erreichbar (ursprünglicher Fehler: %q)", "Website unreachable, the request timed out after %d seconds": "Webseite nicht erreichbar, die Anfrage endete nach %d Sekunden", "You are not authorized to access this resource (invalid username/password)": "Sie sind nicht berechtigt, auf diese Ressource zuzugreifen (Benutzername/Passwort ungültig)", "Unable to fetch this resource (Status Code = %d)": "Ressource konnte nicht abgerufen werden (code=%d)", diff --git a/locale/translations/fr_FR.json b/locale/translations/fr_FR.json index 3f40a297..db6f49ba 100644 --- a/locale/translations/fr_FR.json +++ b/locale/translations/fr_FR.json @@ -395,8 +395,7 @@ "This feed is empty": "Cet abonnement est vide", "This web page is empty": "Cette page web est vide", "Invalid SSL certificate (original error: %q)": "Certificat SSL invalide (erreur originale : %q)", - "This website is temporarily unreachable (original error: %q)": "Ce site web est temporairement injoignable (erreur originale : %q)", - "This website is permanently unreachable (original error: %q)": "Ce site web n'est pas joignable de façon permanente (erreur originale : %q)", + "This website is unreachable (original error: %q)": "Ce site web n'est pas joignable (erreur originale : %q)", "Website unreachable, the request timed out after %d seconds": "Site web injoignable, la requête à échouée après %d secondes", "You are not authorized to access this resource (invalid username/password)": "Vous n'êtes pas autorisé à accéder à cette ressource (nom d'utilisateur / mot de passe incorrect)", "Unable to fetch this resource (Status Code = %d)": "Impossible de récupérer cette ressource (code=%d)", diff --git a/locale/translations/nl_NL.json b/locale/translations/nl_NL.json index 95e8ca7c..b52357b1 100644 --- a/locale/translations/nl_NL.json +++ b/locale/translations/nl_NL.json @@ -396,7 +396,6 @@ "Category not found for this user": "Categorie niet gevonden voor deze gebruiker", "This web page is empty": "Deze webpagina is leeg", "Invalid SSL certificate (original error: %q)": "Ongeldig SSL-certificaat (originele error: %q)", - "This website is temporarily unreachable (original error: %q)": "Deze website is tijdelijk onbereikbaar (originele error: %q)", - "This website is permanently unreachable (original error: %q)": "Deze website is permanent onbereikbaar (originele error: %q)", + "This website is unreachable (original error: %q)": "Deze website is onbereikbaar (originele error: %q)", "Website unreachable, the request timed out after %d seconds": "Website onbereikbaar, de request gaf een timeout na %d seconden" } diff --git a/locale/translations/pl_PL.json b/locale/translations/pl_PL.json index 4f2383cb..1ad01b8e 100644 --- a/locale/translations/pl_PL.json +++ b/locale/translations/pl_PL.json @@ -404,7 +404,6 @@ "This feed is empty": "Ten kanał jest pusty", "This web page is empty": "Ta strona jest pusta", "Invalid SSL certificate (original error: %q)": "Certyfikat SSL jest nieprawidłowy (błąd: %q)", - "This website is temporarily unreachable (original error: %q)": "Ta strona jest tymczasowo niedostępna (błąd: %q)", - "This website is permanently unreachable (original error: %q)": "Ta strona jest niedostępna (błąd: %q)", + "This website is unreachable (original error: %q)": "Ta strona jest niedostępna (błąd: %q)", "Website unreachable, the request timed out after %d seconds": "Strona internetowa nieosiągalna, żądanie wygasło po %d sekundach" } diff --git a/locale/translations/zh_CN.json b/locale/translations/zh_CN.json index 6458404c..c74a28d7 100644 --- a/locale/translations/zh_CN.json +++ b/locale/translations/zh_CN.json @@ -389,7 +389,6 @@ "This feed is empty": "该源是空的", "This web page is empty": "该网页是空的", "Invalid SSL certificate (original error: %q)": "无效的 SSL 证书 (原始错误: %q)", - "This website is temporarily unreachable (original error: %q)": "该网站暂时不可达 (原始错误: %q)", - "This website is permanently unreachable (original error: %q)": "该网站永久不可达 (原始错误: %q)", + "This website is unreachable (original error: %q)": "该网站永久不可达 (原始错误: %q)", "Website unreachable, the request timed out after %d seconds": "网站不可达, 请求已在 %d 秒后超时" } diff --git a/locale/translations/zh_TW.json b/locale/translations/zh_TW.json index bfb6e4d1..1df594d7 100644 --- a/locale/translations/zh_TW.json +++ b/locale/translations/zh_TW.json @@ -397,7 +397,6 @@ "This feed is empty": "該Feed是空的", "This web page is empty": "該網頁是空的", "Invalid SSL certificate (original error: %q)": "無效的 SSL 憑證 (錯誤: %q)", - "This website is temporarily unreachable (original error: %q)": "該網站暫時無法訪問 (原始錯誤: %q)", - "This website is permanently unreachable (original error: %q)": "該網站永久無法訪問(原始錯誤: %q)", + "This website is unreachable (original error: %q)": "該網站永久無法訪問(原始錯誤: %q)", "Website unreachable, the request timed out after %d seconds": "網站無法訪問, 請求已在 %d 秒後超時" } diff --git a/logger/doc.go b/logger/doc.go index 70354f0d..82852a44 100644 --- a/logger/doc.go +++ b/logger/doc.go @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. /* - Package logger handles application log messages with different levels. - */ package logger // import "miniflux.app/logger" diff --git a/model/doc.go b/model/doc.go index ac458faa..c5536ff1 100644 --- a/model/doc.go +++ b/model/doc.go @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. /* - Package model contains all data structures used by the application. - */ package model // import "miniflux.app/model" diff --git a/oauth2/doc.go b/oauth2/doc.go index 672d5893..bfc0ff68 100644 --- a/oauth2/doc.go +++ b/oauth2/doc.go @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. /* - Package oauth2 abstracts different OAuth2 providers. - */ package oauth2 // import "miniflux.app/oauth2" diff --git a/reader/atom/doc.go b/reader/atom/doc.go index d0b231ad..5cbecc2b 100644 --- a/reader/atom/doc.go +++ b/reader/atom/doc.go @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. /* - Package atom provides an Atom feed parser. - */ package atom // import "miniflux.app/reader/atom" diff --git a/reader/browser/doc.go b/reader/browser/doc.go index 381a7995..bcb8d99e 100644 --- a/reader/browser/doc.go +++ b/reader/browser/doc.go @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. /* - Package browser handles website crawling. - */ package browser // import "miniflux.app/reader/browser" diff --git a/reader/date/doc.go b/reader/date/doc.go index ef0fdaa6..fe79d070 100644 --- a/reader/date/doc.go +++ b/reader/date/doc.go @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. /* - Package date provides a feed date parser. - */ package date // import "miniflux.app/reader/date" diff --git a/reader/doc.go b/reader/doc.go index 68130dbe..a7844e6c 100644 --- a/reader/doc.go +++ b/reader/doc.go @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. /* - Package reader implements everything related to feed parsing. - */ package reader // import "miniflux.app/reader" diff --git a/reader/encoding/doc.go b/reader/encoding/doc.go index f301d041..5ab63799 100644 --- a/reader/encoding/doc.go +++ b/reader/encoding/doc.go @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. /* - Package encoding handles workarounds to deal with encoding edge cases found into feeds. - */ package encoding // import "miniflux.app/reader/encoding" diff --git a/reader/icon/doc.go b/reader/icon/doc.go index 1416291d..6c72aed9 100644 --- a/reader/icon/doc.go +++ b/reader/icon/doc.go @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. /* - Package icon provides all the logic to download website icons. - */ package icon // import "miniflux.app/reader/icon" diff --git a/reader/json/doc.go b/reader/json/doc.go index 7e678e42..af67ce08 100644 --- a/reader/json/doc.go +++ b/reader/json/doc.go @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. /* - Package json provides a JSON feed parser. - */ package json // import "miniflux.app/reader/json" diff --git a/reader/opml/doc.go b/reader/opml/doc.go index 5c94936b..d4e79deb 100644 --- a/reader/opml/doc.go +++ b/reader/opml/doc.go @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. /* - Package opml provides an OPML parser and writer. - */ package opml // import "miniflux.app/reader/opml" diff --git a/reader/parser/doc.go b/reader/parser/doc.go index 11670fad..872ea0ef 100644 --- a/reader/parser/doc.go +++ b/reader/parser/doc.go @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. /* - Package parser provides a generic feed parser that abstract all different formats. - */ package parser // import "miniflux.app/reader/parser" diff --git a/reader/processor/doc.go b/reader/processor/doc.go index df57e980..c57660b8 100644 --- a/reader/processor/doc.go +++ b/reader/processor/doc.go @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. /* - Package processor applies rules and sanitize content for feed entries. - */ package processor // import "miniflux.app/reader/processor" diff --git a/reader/rdf/doc.go b/reader/rdf/doc.go index 5734afe1..d8334ed3 100644 --- a/reader/rdf/doc.go +++ b/reader/rdf/doc.go @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. /* - Package rdf provides a RDF feed parser. - */ package rdf // import "miniflux.app/reader/rdf" diff --git a/reader/readability/doc.go b/reader/readability/doc.go index c414156d..22179e55 100644 --- a/reader/readability/doc.go +++ b/reader/readability/doc.go @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. /* - Package readability implements a web page scraper that returns only relevant content. - */ package readability // import "miniflux.app/reader/readability" diff --git a/reader/rewrite/doc.go b/reader/rewrite/doc.go index ba44b8e2..4f0c172e 100644 --- a/reader/rewrite/doc.go +++ b/reader/rewrite/doc.go @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. /* - Package rewrite provides functions to manipulate feed contents. - */ package rewrite // import "miniflux.app/reader/rewrite" diff --git a/reader/rss/doc.go b/reader/rss/doc.go index d13b31e3..f5a92fca 100644 --- a/reader/rss/doc.go +++ b/reader/rss/doc.go @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. /* - Package rss provides a RSS feed parser. - */ package rss // import "miniflux.app/reader/rss" diff --git a/reader/sanitizer/doc.go b/reader/sanitizer/doc.go index 89dfe622..8e7a4d13 100644 --- a/reader/sanitizer/doc.go +++ b/reader/sanitizer/doc.go @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. /* - Package sanitizer implements a HTML sanitizer that removes unsafe elements. - */ package sanitizer // import "miniflux.app/reader/sanitizer" diff --git a/reader/scraper/doc.go b/reader/scraper/doc.go index ed7ff7e7..5419c257 100644 --- a/reader/scraper/doc.go +++ b/reader/scraper/doc.go @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. /* - Package scraper implements a web page crawler. - */ package scraper // import "miniflux.app/reader/scraper" diff --git a/reader/subscription/doc.go b/reader/subscription/doc.go index ebeee1cb..b8b4d1a0 100644 --- a/reader/subscription/doc.go +++ b/reader/subscription/doc.go @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. /* - Package subscription implements the logic to find subscriptions on a website. - */ package subscription // import "miniflux.app/reader/subscription" diff --git a/service/httpd/doc.go b/service/httpd/doc.go index 8436b2b6..05f6e7c8 100644 --- a/service/httpd/doc.go +++ b/service/httpd/doc.go @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. /* - Package httpd implements the HTTP service. - */ package httpd // import "miniflux.app/service/httpd" diff --git a/service/scheduler/doc.go b/service/scheduler/doc.go index 94615adb..acb1425d 100644 --- a/service/scheduler/doc.go +++ b/service/scheduler/doc.go @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. /* - Package scheduler implements the scheduler service. - */ package scheduler // import "miniflux.app/service/scheduler" diff --git a/storage/doc.go b/storage/doc.go index f13a2e91..f5af3109 100644 --- a/storage/doc.go +++ b/storage/doc.go @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. /* - Package storage implements a set of functions to interact with the database. - */ package storage // import "miniflux.app/storage" diff --git a/tests/category_test.go b/tests/category_test.go index c28abefb..e99cb98d 100644 --- a/tests/category_test.go +++ b/tests/category_test.go @@ -2,6 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. +//go:build integration // +build integration package tests diff --git a/tests/doc.go b/tests/doc.go index b4699181..7c9975e7 100644 --- a/tests/doc.go +++ b/tests/doc.go @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. /* - Package tests contains API integration tests. - */ package tests // import "miniflux.app/tests" diff --git a/tests/endpoint_test.go b/tests/endpoint_test.go index f1ae94d3..91871176 100644 --- a/tests/endpoint_test.go +++ b/tests/endpoint_test.go @@ -2,6 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. +//go:build integration // +build integration package tests diff --git a/tests/feed_test.go b/tests/feed_test.go index 289f6b91..a5ad4dad 100644 --- a/tests/feed_test.go +++ b/tests/feed_test.go @@ -2,6 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. +//go:build integration // +build integration package tests diff --git a/tests/import_export_test.go b/tests/import_export_test.go index dea0b23b..0233822f 100644 --- a/tests/import_export_test.go +++ b/tests/import_export_test.go @@ -2,6 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. +//go:build integration // +build integration package tests diff --git a/tests/subscription_test.go b/tests/subscription_test.go index 4d541f44..b54f6ee7 100644 --- a/tests/subscription_test.go +++ b/tests/subscription_test.go @@ -2,6 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. +//go:build integration // +build integration package tests diff --git a/tests/tests.go b/tests/tests.go index 1227f03d..d2d47010 100644 --- a/tests/tests.go +++ b/tests/tests.go @@ -2,6 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. +//go:build integration // +build integration package tests diff --git a/timer/doc.go b/timer/doc.go index e40a31b8..216c08ca 100644 --- a/timer/doc.go +++ b/timer/doc.go @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. /* - Package timer implements utility functions to measure the execution time of a block of code. - */ package timer // import "miniflux.app/timer" diff --git a/timezone/doc.go b/timezone/doc.go index e666d2e5..d46da71c 100644 --- a/timezone/doc.go +++ b/timezone/doc.go @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. /* - Package timezone contains helper functions to work with timezones. - */ package timezone // import "miniflux.app/timezone" diff --git a/ui/doc.go b/ui/doc.go index 8e4947e9..ea38fad6 100644 --- a/ui/doc.go +++ b/ui/doc.go @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. /* - Package ui implements handlers to render to user interface. - */ package ui // import "miniflux.app/ui" diff --git a/ui/form/doc.go b/ui/form/doc.go index d2f716f9..d81ce0fe 100644 --- a/ui/form/doc.go +++ b/ui/form/doc.go @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. /* - Package form handles HTML form validation and serialization. - */ package form // import "miniflux.app/ui/form" diff --git a/ui/session/doc.go b/ui/session/doc.go index 3e47bc66..617a69b8 100644 --- a/ui/session/doc.go +++ b/ui/session/doc.go @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. /* - Package session provides helper functions to work with the user session. - */ package session // import "miniflux.app/ui/session" diff --git a/ui/static/doc.go b/ui/static/doc.go index d9aadf3c..b1725468 100644 --- a/ui/static/doc.go +++ b/ui/static/doc.go @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. /* - Package static contains assets for the user interface. - */ package static // import "miniflux.app/ui/static" diff --git a/ui/view/doc.go b/ui/view/doc.go index 4ced5dcc..ed32f41f 100644 --- a/ui/view/doc.go +++ b/ui/view/doc.go @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. /* - Package view handles template parameters. - */ package view // import "miniflux.app/ui/view" diff --git a/url/doc.go b/url/doc.go index 98253d0d..2204b955 100644 --- a/url/doc.go +++ b/url/doc.go @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. /* - Package url implements a set of utility functions to parse URL. - */ package url // import "miniflux.app/url" diff --git a/version/doc.go b/version/doc.go index a196762c..58d1bc0b 100644 --- a/version/doc.go +++ b/version/doc.go @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. /* - Package version contains application and build information. - */ package version // import "miniflux.app/version" diff --git a/worker/doc.go b/worker/doc.go index 816f8ad3..909b34d8 100644 --- a/worker/doc.go +++ b/worker/doc.go @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. /* - Package worker implements the background workers. - */ package worker // import "miniflux.app/worker"