File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -30,9 +30,9 @@ def analyse_modified_files
30
30
# create a txt file with the branch score details
31
31
def build_details
32
32
details = "Base branch (#{ ::RubyCritic ::Config . base_branch } ) " \
33
- "average stink score: #{ ::RubyCritic ::Config . base_branch_score } \n " \
33
+ "average stink score: #{ ::RubyCritic ::Config . base_branch_score . to_f . round ( 2 ) } \n " \
34
34
"Feature branch (#{ ::RubyCritic ::Config . feature_branch } ) " \
35
- "average stink score: #{ ::RubyCritic ::Config . feature_branch_score } \n "
35
+ "average stink score: #{ ::RubyCritic ::Config . feature_branch_score . to_f . round ( 2 ) } \n "
36
36
Skunk ::Command ::Output . create_directory ( ::RubyCritic ::Config . compare_root_directory )
37
37
File . open ( build_details_path , "w" ) { |file | file . write ( details ) }
38
38
puts details
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ def total_churn_times_cost
64
64
def stink_score_average
65
65
return 0 if analysed_modules_count . zero?
66
66
67
- ( total_stink_score . to_d / analysed_modules_count ) . to_f
67
+ ( total_stink_score . to_d / analysed_modules_count ) . to_f . round ( 2 )
68
68
end
69
69
70
70
def table_options
You can’t perform that action at this time.
0 commit comments