Skip to content

Commit 5f39e89

Browse files
committed
Match brakeman's rules for Rails' app detection.
This may not be a preferred way, but it is how Brakeman determines what is a valid Rails app to scan and what isn't. If we choose a different hueristic, than you can get into a scenario where codeclimate by default enables Brakeman (b/c a script/rails exists), and then brakeman complains it's not a Rails app (No 'app' directory). It's unlikely to be the case, but still worthwhile for them to match and I see no downside.
1 parent 5e1bbd5 commit 5f39e89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/engines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ brakeman:
1616
upgrade_languages:
1717
- Ruby
1818
enable_regexps:
19-
- ^script\/rails$
19+
- ^app\/.*\.rb
2020
default_ratings_paths:
2121
- "Gemfile.lock"
2222
- "**.erb"

0 commit comments

Comments
 (0)