Skip to content

Commit

Permalink
Fixed rubocop offenses
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandermeindl committed Aug 25, 2024
1 parent d5fefe5 commit d1cb146
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,9 @@ Style/HashTransformValues:

Naming/VariableNumber:
Enabled: false

# this linter does not work with redirect_to
Rails/ActionControllerFlashBeforeRender:
Enabled: true
Exclude:
- app/controllers/messenger_settings_controller.rb
2 changes: 1 addition & 1 deletion test/unit/i18n_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def test_valid_languages
end

def test_locales_validness
lang_files_count = Dir[Rails.root.join('plugins/redmine_messenger/config/locales/*.yml')].size
lang_files_count = Rails.root.glob('plugins/redmine_messenger/config/locales/*.yml').size

assert_equal 7, lang_files_count
valid_languages.each do |lang|
Expand Down

0 comments on commit d1cb146

Please sign in to comment.