Class: Rails::Guarddog::Configuration
- Inherits:
-
Object
- Object
- Rails::Guarddog::Configuration
- Defined in:
- lib/rails/guarddog/configuration.rb
Instance Attribute Summary collapse
-
#enabled_checkers ⇒ Object
Returns the value of attribute enabled_checkers.
-
#excluded_paths ⇒ Object
Returns the value of attribute excluded_paths.
-
#output_format ⇒ Object
Returns the value of attribute output_format.
- #root ⇒ Object
Instance Method Summary collapse
- #all_checkers ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 10 11 12 |
# File 'lib/rails/guarddog/configuration.rb', line 7 def initialize @root = nil @enabled_checkers = all_checkers @excluded_paths = %w[vendor spec test node_modules] @output_format = :console end |
Instance Attribute Details
#enabled_checkers ⇒ Object
Returns the value of attribute enabled_checkers.
5 6 7 |
# File 'lib/rails/guarddog/configuration.rb', line 5 def enabled_checkers @enabled_checkers end |
#excluded_paths ⇒ Object
Returns the value of attribute excluded_paths.
5 6 7 |
# File 'lib/rails/guarddog/configuration.rb', line 5 def excluded_paths @excluded_paths end |
#output_format ⇒ Object
Returns the value of attribute output_format.
5 6 7 |
# File 'lib/rails/guarddog/configuration.rb', line 5 def output_format @output_format end |
Instance Method Details
#all_checkers ⇒ Object
18 19 20 21 22 23 |
# File 'lib/rails/guarddog/configuration.rb', line 18 def all_checkers %w[ sql_injection xss csrf mass_assignment open_redirect secrets dos idor ai_injection rate_limit dependency graphql ] end |