Skip to content
This repository was archived by the owner on Dec 11, 2024. It is now read-only.

Commit 8ae2698

Browse files
authored
Exclude long urls in comments from go linting
As per: golangci/golangci-lint#207 (comment)
1 parent 5f6b583 commit 8ae2698

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.golangci.yml

+7
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ issues:
1010
# Default value for this option is true.
1111
exclude-use-default: false
1212

13+
14+
exclude-rules:
15+
# As per https://github.com/golangci/golangci-lint/issues/207#issuecomment-534771981
16+
- linters:
17+
- lll
18+
source: "^// http"
19+
1320
linters:
1421
# enable-all is deprecated, so enable linters individually
1522
enable:

internal/confluence/homepage.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func newHomepage(spaceKey string, a api.Client) (homepage, error) {
3636
// for the Confluence instance that specs are being published to. We calculate this on the fly each
3737
// time because it is not easy at all for the user of the plugin to know the time offset for CQL
3838
// queries required by their Confluence instance - see:
39-
// nolint[:lll] https://community.atlassian.com/t5/Confluence-questions/How-do-I-pass-a-UTC-time-as-the-value-of-lastModified-in-a-REST/qaq-p/1557903
39+
// https://community.atlassian.com/t5/Confluence-questions/How-do-I-pass-a-UTC-time-as-the-value-of-lastModified-in-a-REST/qaq-p/1557903
4040
func (h *homepage) cqlTimeOffset() (int, error) {
4141
logger.Debugf(true, "Confluence homepage ID is %s for space %s", h.spaceKey, h.id)
4242
logger.Debugf(true, "Homepage created at: %v (UTC)", h.created)

0 commit comments

Comments
 (0)