Skip to content

Commit

Permalink
Revert "allow config file for brakeman, Fixes #30"
Browse files Browse the repository at this point in the history
This reverts commit 8a5060b.
  • Loading branch information
nijikon committed Dec 1, 2015
1 parent f736f5d commit 95c0bdd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/polish_geeks/dev_tools/commands/brakeman.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ module Commands
# A static analysis security vulnerability scanner for Ruby on Rails applications
# @see https://github.com/presidentbeef/brakeman
class Brakeman < Base
self.config_name = '.brakeman.yml'
self.type = :validator
self.validators = [
Validators::Rails
Expand All @@ -22,9 +21,7 @@ class Brakeman < Base
# Executes this command
# @return [String] command output
def execute
cmd = ['bundle exec brakeman -q']
cmd << "-c #{config}" if config?
@output = Shell.new.execute(cmd.join(' '))
@output = Shell.new.execute('bundle exec brakeman -q')
end

# @return [Boolean] true if we didn't have any vulnerabilities detected
Expand Down

0 comments on commit 95c0bdd

Please sign in to comment.