Showing 83 of 83 total issues
LolDba::RelationInspectorFactory has no descriptive comment Open
class RelationInspectorFactory
- Read upRead up
- Exclude checks
Method missing_indexes
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
def self.missing_indexes(indexes_required) missing_indexes = {} indexes_required.each do |table_name, foreign_keys| next if foreign_keys.blank? || !tables.include?(table_name.to_s) keys_to_add = foreign_keys.uniq - existing_indexes(table_name)
- Read upRead up
LolDba::Railtie has no descriptive comment Open
class Railtie < Rails::Railtie
- Read upRead up
- Exclude checks
LolDba::HasAndBelongsToMany has no descriptive comment Open
class HasAndBelongsToMany < RelationInspector
- Read upRead up
- Exclude checks
LolDba::RelationInspector#get_through_foreign_key calls 'reflection.options[:foreign_key]' 2 times Open
if reflection.options[:foreign_key] reflection.options[:foreign_key]
- Read upRead up
- Exclude checks
LolDba::MigrationFormatter has no descriptive comment Open
class MigrationFormatter
- Read upRead up
- Exclude checks
LolDba::BelongsTo#non_polymorphic_fk manually dispatches method call Open
foreign_key ||= if reflection_options.respond_to?(:primary_key_name)
- Read upRead up
- Exclude checks
LolDba::HasMany has no descriptive comment Open
class HasMany < RelationInspector
- Read upRead up
- Exclude checks
LolDba::BelongsTo has no descriptive comment Open
class BelongsTo < RelationInspector
- Read upRead up
- Exclude checks
LolDba::RelationInspector has no descriptive comment Open
class RelationInspector
- Read upRead up
- Exclude checks
LolDba::MigrationMocker has no descriptive comment Open
class MigrationMocker
- Read upRead up
- Exclude checks
LolDba::IndexFinder#self.check_for_indexes calls 'model_class.base_class' 2 times Open
index_name = [model_class.inheritance_column, model_class.base_class.primary_key].sort required_indexes[model_class.base_class.table_name] += [index_name]
- Read upRead up
- Exclude checks
LolDba::RelationInspector#get_through_foreign_key calls 'reflection.options' 2 times Open
if reflection.options[:foreign_key] reflection.options[:foreign_key]
- Read upRead up
- Exclude checks
LolDba::RailsCompatibility has no descriptive comment Open
class RailsCompatibility
- Read upRead up
- Exclude checks