From 5f1c2df44abcd81f9e9ac3811d1c41c61d0687d6 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Tue, 13 Dec 2016 14:36:51 -0800 Subject: [PATCH] updating skip cli help and readme description --- README.md | 4 ++-- main.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f8df96e..c73dbb3 100644 --- a/README.md +++ b/README.md @@ -63,8 +63,8 @@ $ gas -exclude=G303 ./... #### Excluding files: -Gas can be told to \ignore paths that match a supplied pattern using the 'skip' command line option. This accomplished via -[filepath.Match](https://golang.org/pkg/path/filepath/#Match). Multiple patterns can be specified as follows: +Gas can be told to \ignore paths that match a supplied pattern using the 'skip' command line option. This is +accomplished via [go-glob](github.com/ryanuber/go-glob). Multiple patterns can be specified as follows: ``` $ gas -skip=tests* -skip=*_example.go ./... diff --git a/main.go b/main.go index db7e9dc..ea8070c 100644 --- a/main.go +++ b/main.go @@ -155,7 +155,7 @@ func main() { // Exclude files excluded := newFileList("*_test.go") - flag.Var(excluded, "skip", "File pattern to exclude from scan") + flag.Var(excluded, "skip", "File pattern to exclude from scan. Uses simple * globs and requires full match") incRules := "" flag.StringVar(&incRules, "include", "", "Comma separated list of rules IDs to include. (see rule list)")