ffuff/pkg/filter
M. Ángel Jimeno 19937c4929
pkg: handle gosimple linter findings (#322)
This change is an attempt to handle gosimple linter finfings in order to
make the code easier to follow. It includes the following changes:

- use strings.Contains instead of strings.Index != -1
- use time.Since which is the standard library helper. See https://github.com/golang/go/blob/go1.15.2/src/time/time.go#L866-L867
- remove unneeded return statements at the end of methods
- preallocate maps when their capacity is known
- avoid underscoring values when they can be omitted
- avoid fmt.Sprintf() calls when the only argument is already a string

Signed-off-by: Miguel Ángel Jimeno <miguelangel4b@gmail.com>
2020-10-03 10:45:07 +03:00
..
filter_test.go Added lines count to filter/matcher and stdout + csv + json (#71) 2019-11-09 22:09:12 +02:00
filter.go Add support for configuration files for ffuf (#308) 2020-09-27 19:24:06 +03:00
lines_test.go pkg: handle gosimple linter findings (#322) 2020-10-03 10:45:07 +03:00
lines.go Write configuration to output JSON (#135) 2020-01-07 18:27:43 +02:00
regex.go pkg: use {strings,bytes}.ReplaceAll when possible (#320) 2020-10-02 17:12:40 +03:00
regexp_test.go pkg: handle gosimple linter findings (#322) 2020-10-03 10:45:07 +03:00
size_test.go pkg: handle gosimple linter findings (#322) 2020-10-03 10:45:07 +03:00
size.go Write configuration to output JSON (#135) 2020-01-07 18:27:43 +02:00
status_test.go pkg: handle gosimple linter findings (#322) 2020-10-03 10:45:07 +03:00
status.go Write configuration to output JSON (#135) 2020-01-07 18:27:43 +02:00
words_test.go pkg: handle gosimple linter findings (#322) 2020-10-03 10:45:07 +03:00
words.go Write configuration to output JSON (#135) 2020-01-07 18:27:43 +02:00