Add and enforce golangci-lint (#16)

This commit is contained in:
Dave Gallant
2020-07-05 22:44:05 -04:00
committed by GitHub
parent 2ec9bca107
commit d9474be233
13 changed files with 141 additions and 59 deletions

View File

@@ -8,12 +8,13 @@ import (
// TestLoadConfiguration tests loading the example config
func TestLoadConfiguration(t *testing.T) {
exampleConfig := LoadConfiguration("../config-example.yaml")
exampleConfig, err := LoadConfiguration("../config-example.yaml")
assert.NoError(t, err)
expectedFeeds := []string{
"https://news.ycombinator.com/rss",
"https://www.reddit.com/r/golang/.rss",
"https://www.reddit.com/r/linux/.rss",
"https://aws.amazon.com/blogs/security/feed/",
"https://www.phoronix.com/rss.php",
"https://www.zdnet.com/topic/security/rss.xml",
}