lib/tasks/test.rake
Complex method namespace(test)::namespace(factory_bot)::task#lint (25.1) Open
Open
task lint: :environment do
require 'factory_bot'
Rails.root.join('spec/factories/').glob('**/*.rb').sort.each { |factory_filename| require factory_filename }
- Read upRead up
- Exclude checks
Flog calculates the ABC score for methods. The ABC score is based on assignments, branches (method calls), and conditions.
You can read more about ABC metrics or the flog tool