Saikuro Results
Saikuro analyzes ruby code for cyclomatic complexity.
Analyzed Methods
Method Name | Complexity | # Lines |
---|---|---|
NotesController#getNotesList | 4 | 28 |
SharesController#create | 3 | 17 |
MissionsController#create | 3 | 22 |
MissionsController#detail | 3 | 36 |
Project#require_at_least_on_user | 2 | 4 |
Projects_user#user_exists | 2 | 7 |
Projects_user#project_exists | 2 | 7 |
Missions_user#user_exist | 2 | 7 |
Missions_user#mission_exist | 2 | 8 |
Comment#user_id_exist | 2 | 7 |
Comment#comment_has_atleast_one_character | 2 | 5 |
ApplicationController#current_user | 2 | 2 |
ApplicationController#authenticate | 2 | 2 |
SessionsController#create | 2 | 8 |
Share#project_exists | 2 | 7 |
Share#user_exists | 2 | 7 |
Share#share_has_atleast_one_character | 2 | 5 |
Mission#project_exists | 2 | 8 |
Mission#status_is_among_valid_values | 2 | 5 |
Mission#priority_is_among_valid_values | 2 | 5 |
SharesController#getShareList | 2 | 18 |
Note#project_exist | 2 | 7 |
Note#user_exist | 2 | 7 |
Note#note_category_should_among_valid_values | 2 | 6 |
Note#note_has_atleast_one_character | 2 | 5 |
UsersController#update | 2 | 7 |
UsersController#create | 2 | 7 |
UsersController#usernameExist | 2 | 6 |
UsersController#emailExist | 2 | 6 |
MissionsController#commentPublish | 2 | 12 |
MissionsController#update | 2 | 24 |
MissionsController#getlist | 2 | 31 |
ProjectsController#update | 2 | 7 |
ProjectsController#detail | 2 | 31 |
ProjectsController#deleteUsers | 2 | 21 |
ProjectsController#addUsers | 2 | 20 |
ProjectsController#create | 2 | 9 |
ProjectsController#index | 2 | 23 |
SessionsController#show | 1 | 2 |
SessionsController#destroy | 1 | 4 |
SharesController#share_params | 1 | 2 |
UsersController#user_params | 1 | 2 |
UsersController#checkExist? | 1 | 2 |
ProjectsController#project_params | 1 | 2 |
Analyzed Classes
Class Name | Complexity | # Lines |
---|---|---|
ProjectsController | 13 | 149 |
MissionsController | 12 | 153 |
UsersController | 10 | 52 |
Note | 8 | 49 |
Share | 6 | 36 |
Mission | 6 | 46 |
SharesController | 6 | 54 |
Projects_user | 4 | 28 |
Missions_user | 4 | 29 |
Comment | 4 | 43 |
ApplicationController | 4 | 15 |
NotesController | 4 | 36 |
SessionsController | 4 | 28 |
Project | 2 | 14 |
User | 0 | 14 |
UsersHelper | 0 | 1 |
SessionsHelper | 0 | 1 |
ApplicationHelper | 0 | 1 |
Analyzed Files
app/controllers/projects_controller.rb
Class : ProjectsController
Total complexity : 13
Total lines : 149
Method | Complexity | # Lines |
---|---|---|
ProjectsController#update | 2 | 7 |
ProjectsController#detail | 2 | 31 |
ProjectsController#deleteUsers | 2 | 21 |
ProjectsController#addUsers | 2 | 20 |
ProjectsController#create | 2 | 9 |
ProjectsController#index | 2 | 23 |
ProjectsController#project_params | 1 | 2 |
app/controllers/missions_controller.rb
Class : MissionsController
Total complexity : 12
Total lines : 153
Method | Complexity | # Lines |
---|---|---|
MissionsController#create | 3 | 22 |
MissionsController#detail | 3 | 36 |
MissionsController#commentPublish | 2 | 12 |
MissionsController#update | 2 | 24 |
MissionsController#getlist | 2 | 31 |
app/controllers/users_controller.rb
Class : UsersController
Total complexity : 10
Total lines : 52
Method | Complexity | # Lines |
---|---|---|
UsersController#update | 2 | 7 |
UsersController#create | 2 | 7 |
UsersController#usernameExist | 2 | 6 |
UsersController#emailExist | 2 | 6 |
UsersController#user_params | 1 | 2 |
UsersController#checkExist? | 1 | 2 |
app/models/note.rb
Class : Note
Total complexity : 8
Total lines : 49
Method | Complexity | # Lines |
---|---|---|
Note#project_exist | 2 | 7 |
Note#user_exist | 2 | 7 |
Note#note_category_should_among_valid_values | 2 | 6 |
Note#note_has_atleast_one_character | 2 | 5 |
app/controllers/shares_controller.rb
Class : SharesController
Total complexity : 6
Total lines : 54
Method | Complexity | # Lines |
---|---|---|
SharesController#create | 3 | 17 |
SharesController#getShareList | 2 | 18 |
SharesController#share_params | 1 | 2 |
app/models/mission.rb
Class : Mission
Total complexity : 6
Total lines : 46
Method | Complexity | # Lines |
---|---|---|
Mission#project_exists | 2 | 8 |
Mission#status_is_among_valid_values | 2 | 5 |
Mission#priority_is_among_valid_values | 2 | 5 |
app/models/share.rb
Class : Share
Total complexity : 6
Total lines : 36
Method | Complexity | # Lines |
---|---|---|
Share#project_exists | 2 | 7 |
Share#user_exists | 2 | 7 |
Share#share_has_atleast_one_character | 2 | 5 |
app/controllers/sessions_controller.rb
Class : SessionsController
Total complexity : 4
Total lines : 28
Method | Complexity | # Lines |
---|---|---|
SessionsController#create | 2 | 8 |
SessionsController#show | 1 | 2 |
SessionsController#destroy | 1 | 4 |
app/controllers/notes_controller.rb
Class : NotesController
Total complexity : 4
Total lines : 36
Method | Complexity | # Lines |
---|---|---|
NotesController#getNotesList | 4 | 28 |
app/controllers/application_controller.rb
Class : ApplicationController
Total complexity : 4
Total lines : 15
Method | Complexity | # Lines |
---|---|---|
ApplicationController#current_user | 2 | 2 |
ApplicationController#authenticate | 2 | 2 |
app/models/comment.rb
Class : Comment
Total complexity : 4
Total lines : 43
Method | Complexity | # Lines |
---|---|---|
Comment#user_id_exist | 2 | 7 |
Comment#comment_has_atleast_one_character | 2 | 5 |
app/models/missions_user.rb
Class : Missions_user
Total complexity : 4
Total lines : 29
Method | Complexity | # Lines |
---|---|---|
Missions_user#user_exist | 2 | 7 |
Missions_user#mission_exist | 2 | 8 |
app/models/projects_user.rb
Class : Projects_user
Total complexity : 4
Total lines : 28
Method | Complexity | # Lines |
---|---|---|
Projects_user#user_exists | 2 | 7 |
Projects_user#project_exists | 2 | 7 |
app/models/project.rb
Class : Project
Total complexity : 2
Total lines : 14
Method | Complexity | # Lines |
---|---|---|
Project#require_at_least_on_user | 2 | 4 |
Generated on 2017-01-03 10:45:18 +0800