Skip to content

Commit

Permalink
Layout/LeadingCommentSpace-20240109233322 (#15)
Browse files Browse the repository at this point in the history
* 🚓 regenerate rubocop todo

* 🚓 Layout/LeadingCommentSpace

* 🚓 regenerate rubocop todo

---------

Co-authored-by: Rubocop Challenger <rubocop@payrollhero.com>
  • Loading branch information
github-actions[bot] and Rubocop Challenger authored Jan 10, 2024
1 parent 3bd7f22 commit 283c83f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 18 deletions.
25 changes: 9 additions & 16 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,11 @@
# This configuration was generated by
# `rubocop --auto-gen-config --exclude-limit 180`
# on 2024-01-02 23:33:29 UTC using RuboCop version 1.59.0.
# on 2024-01-09 23:33:33 UTC using RuboCop version 1.59.0.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include.
# Include: **/*.gemfile, **/Gemfile, **/gems.rb
Bundler/OrderedGems:
Exclude:
- 'Gemfile'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: Severity, Include.
Expand Down Expand Up @@ -127,13 +119,6 @@ Layout/IndentationWidth:
Exclude:
- 'lib/excel_templating/excel_abstraction/work_book.rb'

# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowDoxygenCommentStyle, AllowGemfileRubyComment.
Layout/LeadingCommentSpace:
Exclude:
- 'lib/excel_templating/renderer.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, IndentationWidth.
Expand Down Expand Up @@ -217,6 +202,14 @@ Layout/SpaceInsideReferenceBrackets:
Exclude:
- 'lib/excel_templating/renderer.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: final_newline, final_blank_line
Layout/TrailingEmptyLines:
Exclude:
- 'Gemfile'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowInHeredoc.
Expand Down
4 changes: 2 additions & 2 deletions lib/excel_templating/renderer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,8 @@ def whole_cell_template?(template)
def add_validation(sheet, row_number, column_number)
raise ArgumentError, "No :data_sources defined for validation!" unless data_source_registry
source = sheet.validation_source_name(row_number, column_number)
#Use current_row and current_col here because row_number and column_number refer to the template
#sheet and we want to write a reference to the cell we just wrote
# Use current_row and current_col here because row_number and column_number refer to the template
# sheet and we want to write a reference to the cell we just wrote
active_sheet.data_validation absolute_reference(current_row + 1, current_col),
registry_renderer.absolute_reference_for(source)
end
Expand Down

0 comments on commit 283c83f

Please sign in to comment.