Create ignore file, please name it .brakeman-ignore
bin/brakeman --interactive-ignore
Add to script/ci
bin/brakeman --quiet --skip-libs --exit-on-warn --ignore-config=.brakeman-ignore
Generate rubocop-todo.yml with ignored offences:
bin/rubocop --auto-gen-config
Inherit it in rubocop.yml
inherit_from: rubocop-todo.yml
AllCops:
RunRailsCops: true
Excludes:
- bin/**
- db/**
- config/**
- lib/templates/**
- lib/generators/**
- vendor/**
Documentation:
Description: 'Document classes and non-namespace modules.'
Enabled: false
SymbolArray:
Description: 'Use %i or %I for arrays of symbols.'
Enabled: true
AlignParameters:
Enabled: false
# LineLength:
# Description: 'Limit lines to 120 characters.'
# Max: 120