lib/tasks/views_schema.rake
Complex method namespace(db)::namespace(views)::task#dump_schema (21.2) Open
Open
task :dump_schema do
File.open('./db/views_schema.tmp', 'w') do |schema|
schema.puts '# This is an automatically generated file by rake:db:views:dump_schema'
schema.puts "require 'views_schema'"
ViewsSchema.each_view do |name, statement, algorithm, security|
- 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