From 8b9c5e49f515037855ded7450703daf33d26a238 Mon Sep 17 00:00:00 2001 From: Oleg Butuzov Date: Sat, 6 May 2023 17:46:56 +0300 Subject: [PATCH] docs: added list fo supported checks --- checkers_regexp.go | 2 +- readme.md | 127 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 128 insertions(+), 1 deletion(-) diff --git a/checkers_regexp.go b/checkers_regexp.go index c132411..3e35ea4 100644 --- a/checkers_regexp.go +++ b/checkers_regexp.go @@ -150,7 +150,7 @@ var ( Args: []int{0}, StringTargeted: true, Alternative: checker.Alternative{ - Method: "FindStringIndex", + Method: "FindIndex", }, Generate: &checker.Generate{ PreCondition: `re := regexp.MustCompile(".*")`, diff --git a/readme.md b/readme.md index e2be788..e770d56 100644 --- a/readme.md +++ b/readme.md @@ -25,6 +25,133 @@ regexp.MatchString("foo", "foobar1") +## Supported Checks + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
func (b *bufio.Writer) Write(p []byte) (int, error)func (b *bufio.Writer) WriteString(s string) (int, error)
func (b *bytes.Buffer) Write(p []byte) (int, error)func (b *bytes.Buffer) WriteString(s string) (int, error)
func bytes.Compare(a, b []byte) intfunc strings.Compare(a, b string) int
func bytes.Contains(b, subslice []byte) boolfunc strings.Contains(s, substr string) bool
func bytes.ContainsAny(b []byte, chars string) boolfunc strings.ContainsAny(s, chars string) bool
func bytes.ContainsRune(b []byte, r rune) boolfunc strings.ContainsRune(s string, r rune) bool
func bytes.Count(s, sep []byte) intfunc strings.Count(s, substr string) int
func bytes.EqualFold(s, t []byte) boolfunc strings.EqualFold(s, t string) bool
func bytes.HasPrefix(s, prefix []byte) boolfunc strings.HasPrefix(s, prefix string) bool
func bytes.HasSuffix(s, suffix []byte) boolfunc strings.HasSuffix(s, suffix string) bool
func bytes.Index(s, sep []byte) intfunc strings.Index(s, substr string) int
func bytes.IndexAny(s []byte, chars string) intfunc strings.IndexAny(s, chars string) int
func bytes.IndexByte(b []byte, c byte) intfunc strings.IndexByte(s string, c byte) int
func bytes.IndexFunc(s []byte, f func(r rune) bool) intfunc strings.IndexFunc(s string, f func(rune) bool) int
func bytes.IndexRune(s []byte, r rune) intfunc strings.IndexRune(s string, r rune) int
func bytes.LastIndex(s, sep []byte) intfunc strings.LastIndex(s, sep string) int
func bytes.LastIndexAny(s []byte, chars string) intfunc strings.LastIndexAny(s, chars string) int
func bytes.LastIndexByte(s []byte, c byte) intfunc strings.LastIndexByte(s string, c byte) int
func bytes.LastIndexFunc(s []byte, f func(r rune) bool) intfunc strings.LastIndexFunc(s string, f func(rune) bool) int
bytes.NewBufferStringbytes.NewBuffer
func (h *maphash.Hash) Write(b []byte) (int, error)func (h *maphash.Hash) WriteString(s string) (int, error)
func (rw *httptest.ResponseRecorder) Write(buf []byte) (int, error)func (rw *httptest.ResponseRecorder) WriteString(str string) (int, error)
func (f *os.File) Write(b []byte) (n int, err error)func (f *os.File) WriteString(s string) (n int, err error)
func regexp.Match(pattern string, b []byte) (bool, error)func regexp.MatchString(pattern string, s string) (bool, error)
func (re *regexp.Regexp) FindAllIndex(b []byte, n int) [][]intfunc (re *regexp.Regexp) FindAllStringIndex(s string, n int) [][]int
func (re *regexp.Regexp) FindAllSubmatch(b []byte, n int) [][][]bytefunc (re *regexp.Regexp) FindAllStringSubmatch(s string, n int) [][]string
func (re *regexp.Regexp) FindIndex(b []byte) (loc []int)func (re *regexp.Regexp) FindStringIndex(s string) (loc []int)
func (re *regexp.Regexp) FindSubmatchIndex(b []byte) []intfunc (re *regexp.Regexp) FindStringSubmatchIndex(s string) []int
func (re *regexp.Regexp) Match(b []byte) boolfunc (re *regexp.Regexp) MatchString(s string) bool
func (b *strings.Builder) Write(p []byte) (int, error)func (b *strings.Builder) WriteByte(c byte) error
func utf8.Valid(p []byte) boolfunc utf8.ValidString(s string) bool
+ ## Install ### Compile From Source