-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #478 from pzaino/develop
Added "critical" flag to scraping rule's element to allow users to define critical rules, improved general code quality
- Loading branch information
Showing
54 changed files
with
865 additions
and
311 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,7 @@ go.work | |
app_config.go | ||
config.yaml | ||
config.sh | ||
.env | ||
.DS_Store | ||
|
||
# build artefacts | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# .golangci.yml | ||
run: | ||
timeout: 5m | ||
tests: false | ||
|
||
linters-settings: | ||
gocyclo: | ||
min-complexity: 45 | ||
|
||
staticcheck: {} | ||
|
||
goconst: | ||
min-len: 3 | ||
min-occurrences: 2 | ||
|
||
dupl: | ||
threshold: 50 | ||
|
||
linters: | ||
enable: | ||
- govet # Use govet instead of maligned (it has 'fieldalignment' check) | ||
- gocyclo | ||
- gosec | ||
- revive | ||
- goconst | ||
# - dupl | ||
- unused # Replaces structcheck, varcheck, and deadcode | ||
- ineffassign | ||
- typecheck | ||
- nakedret | ||
- misspell | ||
- dogsled | ||
|
||
disable: | ||
- lll # Line length linter, often too restrictive | ||
- funlen # Function length linter, can be noisy for large projects | ||
|
||
issues: | ||
exclude-use-default: false | ||
max-issues-per-linter: 0 | ||
max-same-issues: 0 | ||
|
||
output: | ||
sort-results: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.