Skip to content

Commit

Permalink
refactor: merge rails and ruby logger detector (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
cfabianski committed Dec 1, 2022
1 parent cc94a7b commit 7903ce5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 21 deletions.
16 changes: 2 additions & 14 deletions integration/flags/.snapshots/TestInitCommand-init
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,6 @@ scan:
root_lowercase: false
metavars: {}
stored: false
detect_rails_logger:
disabled: false
type: risk
languages:
- ruby
patterns:
- |
Rails.logger.info(<$ARGUMENT>)
param_parenting: false
processors: []
root_singularize: false
root_lowercase: false
metavars: {}
stored: false
detect_rails_session:
disabled: false
type: risk
Expand All @@ -74,6 +60,8 @@ scan:
patterns:
- |
logger.info(<$ARGUMENT>)
- |
Rails.logger.info(<$ARGUMENT>)
param_parenting: false
processors: []
root_singularize: false
Expand Down
9 changes: 2 additions & 7 deletions pkg/commands/process/settings/custom_detector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,13 @@ ruby_file_detection:
param_parenting: true
metavars: {}
stored: false
detect_rails_logger:
type: "risk"
patterns:
- |
Rails.logger.info(<$ARGUMENT>)
languages:
- ruby
detect_ruby_logger:
type: "risk"
patterns:
- |
logger.info(<$ARGUMENT>)
- |
Rails.logger.info(<$ARGUMENT>)
languages:
- ruby
detect_rails_session:
Expand Down

0 comments on commit 7903ce5

Please sign in to comment.