Víctor Zamanillo
f72c0a2cb7
nolint for Post without context
2020-07-23 15:09:45 +02:00
Víctor Zamanillo
b508618410
nolint for comma ok static check
2020-07-23 15:09:24 +02:00
Víctor Zamanillo
22678095b7
Fixed builtinShadow of predeclared identifier: append (gocritic)
2020-07-23 14:31:07 +02:00
Víctor Zamanillo
80b791fd98
Removed nolint instruction
...
We are not ready to use funlen yet, to solve funlen issues we will need some refactor task which could block this branch release.
2020-07-23 14:30:47 +02:00
Víctor Zamanillo
6d633526b4
Fixed should rewrite http.NewRequestWithContext (noctx)
2020-07-22 18:04:29 +02:00
Víctor Zamanillo
348e809708
Fixed paramTypeCombine (gocritic)
2020-07-22 18:02:44 +02:00
Víctor Zamanillo
f8670be078
Fixed ineffectual assignment to `body` (ineffassign)
2020-07-22 17:56:59 +02:00
Víctor Zamanillo
3c3d67a657
Fixed should rewrite http.NewRequestWithContext (noctx)
2020-07-22 17:55:43 +02:00
Víctor Zamanillo
5a3220b889
Fixed capitalized / shadowing url param
2020-07-22 17:53:37 +02:00
Víctor Zamanillo
77eb7090f3
Fixed funlen
2020-07-22 17:52:35 +02:00
Víctor Zamanillo
ec5b0cebdb
Format code with gofmt
2020-07-22 17:47:58 +02:00
Víctor Zamanillo
7cac6136df
Fixed should rewrite http.NewRequestWithContext (noctx)
2020-07-22 17:45:42 +02:00
Víctor Zamanillo
4302429745
Fixed Warningf call has arguments but no formatting directives (govet)
2020-07-22 17:16:49 +02:00
Víctor Zamanillo
27553da5c2
Fixed shadowing declarations
2020-07-22 17:15:47 +02:00
Víctor Zamanillo
2e8ee83606
Fixed misspelling of Process
2020-07-22 17:12:47 +02:00
Víctor Zamanillo
47d9227a64
Fixed formatting directive for gologger.Warningf
2020-07-22 17:11:21 +02:00
Víctor Zamanillo
20b2711388
Fixed Error return value of function is not checked (errcheck)
2020-07-22 17:09:55 +02:00
Víctor Zamanillo
fad4830df1
Fixed ineffectual assignment to `buf` (ineffassign)
2020-07-22 16:26:26 +02:00
Víctor Zamanillo
5290362992
Fixed getSubdomainsFromSQL `ctx` is unused (unparam)
2020-07-22 16:25:31 +02:00
Víctor Zamanillo
ebed4f21e1
Fixed importShadowing (gocritic)
2020-07-22 16:22:01 +02:00
Víctor Zamanillo
5c8aa60d47
Fixed regexpSimplify (gocritic)
...
Can re-write `<a href="([A-Za-z0-9\/.]+)"><b>` as `<a href="([A-Za-z0-9/.]+)"><b>`
2020-07-22 16:21:40 +02:00
Víctor Zamanillo
9798cd9d3f
Fixed importShadowing (gocritic)
2020-07-22 16:17:55 +02:00
Víctor Zamanillo
2f198a3dd8
Fixed hugeParams (gocritic)
...
We passet huge parameters by pointer
2020-07-22 16:14:26 +02:00
Víctor Zamanillo
377be346fa
Fixed sloppyLen (gocritic)
...
len(matchTokens) <= 0 can be len(matchTokens) == 0
2020-07-22 16:00:46 +02:00
Víctor Zamanillo
75c3682b6e
Fixed S1002: should omit comparison to bool constant (gosimple)
2020-07-22 15:53:59 +02:00
Víctor Zamanillo
56a83256e4
Fixed golint style issues
2020-07-22 15:52:41 +02:00
Víctor Zamanillo
47a37a7dde
Fixed File is not `gofmt`-ed with `-s` (gofmt)
...
Fixed running 'gofmt -s -w file'
2020-07-22 15:38:38 +02:00
Víctor Zamanillo
736dff1c64
Fixed misspellings (misspell)
2020-07-22 15:35:01 +02:00
Víctor Zamanillo
14f260e532
Fixed struct of size 624 bytes could be of size 592 bytes (maligned)
...
Ref: https://medium.com/@sebassegros/golang-dealing-with-maligned-structs-9b77bacf4b97
2020-07-22 15:31:34 +02:00
Víctor Zamanillo
1656c9c3c8
Fixed S1023: redundant `return` statement (gosimple)
2020-07-22 15:27:52 +02:00
Víctor Zamanillo
8a1edce3ba
Fixed S1012 (gosimple)
...
Should use `time.Since` instead of `time.Now().Sub`
2020-07-22 15:27:19 +02:00
Víctor Zamanillo
3eb417db16
Fixed S1031: unnecessary nil check around range (gosimple)
2020-07-22 15:25:02 +02:00
Víctor Zamanillo
7fbbd79dca
Fixed assignOp (gocritic)
2020-07-22 15:24:02 +02:00
Víctor Zamanillo
9ab615edca
Fixed mnd: Magic numbers (gomnd)
2020-07-22 15:20:41 +02:00
bauthard
8a6ab9eb8a
banner update
2020-07-22 18:39:11 +05:30
Víctor Zamanillo
eb9bb0c930
Fixed wrapperFunc
...
use strings.ReplaceAll method instead off strings.Replace (gocritic)
2020-07-22 15:05:10 +02:00
bauthard
7587797c5a
Merge pull request #276 from thezoomerhacker/thezoomer
...
Updated spyse.go to API v3
2020-07-22 17:23:26 +05:30
thezoomerhacker
066aaedafd
Updated spyse.go to API v3
...
Changed request to API v3
V2 is currently throwing a 404 error
2020-07-21 11:20:42 -04:00
bauthard
572fc83350
Merge pull request #275 from vzamanillo/github-item-404
...
Fixed incorrect handling of 404 status code on github source
2020-07-21 17:39:39 +05:30
Víctor Zamanillo
2a73ce2811
Fixed incorrect handling of 404 status code
...
Fixes a bug introduced on #274
2020-07-21 13:55:15 +02:00
bauthard
69411756a5
Merge pull request #274 from vzamanillo/improved-http-error-handling
...
Improved HTTP error handling
2020-07-21 16:47:30 +05:30
Víctor Zamanillo
c0cec04a04
Fixed incorrect handling on item 404 status code
...
We can not use continue because skip the current item text match results
2020-07-21 13:05:55 +02:00
Víctor Zamanillo
41b0f931b5
Fixed missing github source from default sources
2020-07-20 22:18:57 +02:00
Víctor Zamanillo
7841621a06
Removed digicert source
...
digicert source is not working anymore, "CT log search has been discontinued"
2020-07-20 21:45:01 +02:00
Víctor Zamanillo
9d6d79f19d
Report request item error only if status code is 404
2020-07-20 21:41:52 +02:00
Víctor Zamanillo
af4509c9b9
Unescaped URL on unexpected status code agent message
2020-07-20 21:37:23 +02:00
Víctor Zamanillo
937ad6a441
Fixed isNotFound check
2020-07-20 21:34:01 +02:00
Víctor Zamanillo
8e2ce0aa6e
Continue on 404 error while reading item code before matching subdomains
2020-07-20 20:59:35 +02:00
Víctor Zamanillo
3af1d48d5a
New method to discard a HTTP response on unexpected status
2020-07-20 20:49:50 +02:00
Víctor Zamanillo
a4576376d7
Return the response on unexpected status code
...
Sometimes we may have to check the status code to act accordingly, ej: GitHub source needs to check for 403 to know when a request rate limit exceeded occurs, invalidate the current token and get the next in the pool.
2020-07-20 19:38:52 +02:00