Run rubocop on travis

This commit is contained in:
Alexander Meindl 2019-12-25 09:27:02 +01:00
parent f200bc89d0
commit 2bb6641bf4
2 changed files with 3 additions and 1 deletions

View File

@ -38,4 +38,5 @@ before_script:
script:
- export SKIP_COVERAGE=1
- if [[ "$REDMINE_VER" == "master" ]]; then brakeman plugins/$PLUGIN_NAME; fi
- if [[ "$REDMINE_VER" == "master" ]]; then rubocop plugins/$PLUGIN_NAME; fi
- bundle exec rake redmine:plugins:test NAME=$PLUGIN_NAME RUBYOPT="-W0"

View File

@ -31,8 +31,9 @@ module Additionals
return unless page
# TODO: find solution for time_tag without to use html_safe
content_tag(:span,
l(:label_updated_time, time_tag(page.updated_on)).html_safe,
l(:label_updated_time, time_tag(page.updated_on)).html_safe, # rubocop:disable Rails/OutputSafety
class: 'last-updated-at')
end
end