Commit db32f4f6ee4048b79484e8087bb5eaee3379b56a
1 parent
e3ebbbc3
Exists in
master
and in
1 other branch
Rubocop: default parameter formatting
Showing
3 changed files
with
2 additions
and
8 deletions
Show diff stats
.rubocop_todo.yml
| ... | ... | @@ -304,12 +304,6 @@ Style/SingleSpaceBeforeFirstArg: |
| 304 | 304 | - 'spec/fabricators/notice_fabricator.rb' |
| 305 | 305 | - 'spec/fabricators/user_fabricator.rb' |
| 306 | 306 | |
| 307 | -# Offense count: 2 | |
| 308 | -# Cop supports --auto-correct. | |
| 309 | -# Configuration parameters: EnforcedStyle, SupportedStyles. | |
| 310 | -Style/SpaceAroundEqualsInParameterDefault: | |
| 311 | - Enabled: false | |
| 312 | - | |
| 313 | 307 | # Offense count: 27 |
| 314 | 308 | # Cop supports --auto-correct. |
| 315 | 309 | # Configuration parameters: EnforcedStyle, SupportedStyles. | ... | ... |
app/helpers/application_helper.rb
| ... | ... | @@ -53,7 +53,7 @@ module ApplicationHelper |
| 53 | 53 | end |
| 54 | 54 | end |
| 55 | 55 | |
| 56 | - def create_percentage_table_from_tallies(tallies, options={}) | |
| 56 | + def create_percentage_table_from_tallies(tallies, options = {}) | |
| 57 | 57 | total = (options[:total] || total_from_tallies(tallies)) |
| 58 | 58 | percent = 100.0 / total.to_f |
| 59 | 59 | rows = tallies.map {|value, count| [(count.to_f * percent), value]} \ | ... | ... |
app/helpers/sort_helper.rb