diff --git a/docs/options/index.html b/docs/options/index.html index bd80b5ced..110dfa21a 100644 --- a/docs/options/index.html +++ b/docs/options/index.html @@ -159,14 +159,17 @@

Scanning Options

To skip certain files use:

-
brakeman --skip-files file1,file2,etc
+
brakeman --skip-files file1,file2,dir1/
 
-

Note Brakeman does “whole program” analysis, therefore skipping a file may affect warning results from more than just that one file.

+

Values ending in / will cause Brakeman to skip any file with a matching directory anywhere in the path. +To be more specific, start the directory name with / (e.g., /app/some_dir/). The directory will be matched relative to the root of the project being scanned.

+ +

(Note Brakeman does “whole program” analysis, therefore skipping a file may affect warning results from more than just that one file.)

The inverse but even more dangerous option is to specific which files to scan:

-
brakeman --only-files some_file,some_dir
+
brakeman --only-files some_file,some_dir/
 

Again, since Brakeman looks at the whole program, it is very likely not going to behave as expected when scanning a subset of files. Also, if certain files are excluded Brakeman may not function at all.

diff --git a/feed.xml b/feed.xml index 1f98ab455..919e3630b 100644 --- a/feed.xml +++ b/feed.xml @@ -1,4 +1,4 @@ -Jekyll2023-12-04T22:48:01-08:00https://brakemanscanner.org/feed.xmlBrakemanBrakeman 6.1.0 Released2023-12-04T22:30:00-08:002023-12-04T22:30:00-08:00https://brakemanscanner.org/blog/2023/12/04/brakeman-6-dot-1-dot-0-released<p>It’s been a while!</p> +Jekyll2024-01-03T16:50:39-08:00https://brakemanscanner.org/feed.xmlBrakemanBrakeman 6.1.0 Released2023-12-04T22:30:00-08:002023-12-04T22:30:00-08:00https://brakemanscanner.org/blog/2023/12/04/brakeman-6-dot-1-dot-0-released<p>It’s been a while!</p> <p><em>Changes since 6.0.1:</em></p>