Rails Best Practices Results

rails_best_practices is a code metric tool for rails projects.

File Path Warning
/home/ccx/RubymineProjects/ambition/db/schema.rb:16 always add db index (comments => [user_id])
/home/ccx/RubymineProjects/ambition/db/schema.rb:26 always add db index (missions => [project_id])
/home/ccx/RubymineProjects/ambition/db/schema.rb:37 always add db index (missions_users => [mission_id])
/home/ccx/RubymineProjects/ambition/db/schema.rb:37 always add db index (missions_users => [user_id])
/home/ccx/RubymineProjects/ambition/db/schema.rb:42 always add db index (notes => [project_id])
/home/ccx/RubymineProjects/ambition/db/schema.rb:60 always add db index (projects_users => [project_id])
/home/ccx/RubymineProjects/ambition/db/schema.rb:60 always add db index (projects_users => [user_id])
/home/ccx/RubymineProjects/ambition/db/schema.rb:65 always add db index (shares => [project_id])
/home/ccx/RubymineProjects/ambition/db/schema.rb:65 always add db index (shares => [user_id])
/home/ccx/RubymineProjects/ambition/app/controllers/missions_controller.rb:48 move model logic into model (mission use_count > 4)
/home/ccx/RubymineProjects/ambition/app/controllers/missions_controller.rb:87 move model logic into model (mission use_count > 4)
/home/ccx/RubymineProjects/ambition/app/controllers/missions_controller.rb:113 move model logic into model (mission use_count > 4)
/home/ccx/RubymineProjects/ambition/app/helpers/users_helper.rb:1 remove empty helpers
/home/ccx/RubymineProjects/ambition/app/helpers/sessions_helper.rb:1 remove empty helpers
/home/ccx/RubymineProjects/ambition/app/controllers/shares_controller.rb:10 use model association (for share)
/home/ccx/RubymineProjects/ambition/Gemfile:37 remove trailing whitespace
/home/ccx/RubymineProjects/ambition/app/models/note.rb:2 remove trailing whitespace
/home/ccx/RubymineProjects/ambition/app/models/project.rb:5 remove trailing whitespace
/home/ccx/RubymineProjects/ambition/app/models/missions_user.rb:2 remove trailing whitespace
/home/ccx/RubymineProjects/ambition/app/models/projects_user.rb:2 remove trailing whitespace
/home/ccx/RubymineProjects/ambition/app/models/share.rb:2 remove trailing whitespace
/home/ccx/RubymineProjects/ambition/app/models/comment.rb:2 remove trailing whitespace
/home/ccx/RubymineProjects/ambition/app/models/mission.rb:4 remove trailing whitespace
/home/ccx/RubymineProjects/ambition/db/migrate/20161229084919_change_note_field_type_to_category.rb:3 remove trailing whitespace
/home/ccx/RubymineProjects/ambition/app/controllers/notes_controller.rb:2 remove trailing whitespace
/home/ccx/RubymineProjects/ambition/app/controllers/shares_controller.rb:2 remove trailing whitespace
/home/ccx/RubymineProjects/ambition/app/controllers/sessions_controller.rb:7 remove trailing whitespace
/home/ccx/RubymineProjects/ambition/app/controllers/missions_controller.rb:2 remove trailing whitespace
/home/ccx/RubymineProjects/ambition/app/controllers/projects_controller.rb:2 remove trailing whitespace
/home/ccx/RubymineProjects/ambition/config/routes.rb:65 remove trailing whitespace
/home/ccx/RubymineProjects/ambition/config/application.rb:25 remove trailing whitespace

Generated on 2017-01-03 10:45:18 +0800