jenkins-bot has submitted this change and it was merged. Change subject: tests: RuboCop checks .docs/CustomTags.rb ......................................................................
tests: RuboCop checks .docs/CustomTags.rb Bump RuboCop to 0.27.1 so it can recognize '.docs', see upstream bug for details: https://github.com/bbatsov/rubocop/issues/1401 Fix minor whitespaces problem that `rubocop --auto-gen-config` did not put to .rubocop_todo.yml file. Bug: 63307 Change-Id: I0a640135ca8e63a8efd6e8dc0e982a05097c20aa --- M .docs/CustomTags.rb M .rubocop.yml M .rubocop_todo.yml M Gemfile.lock 4 files changed, 14 insertions(+), 14 deletions(-) Approvals: Hashar: Looks good to me, but someone else must approve Jforrester: Looks good to me, approved jenkins-bot: Verified diff --git a/.docs/CustomTags.rb b/.docs/CustomTags.rb index 5e32a89..93437e3 100644 --- a/.docs/CustomTags.rb +++ b/.docs/CustomTags.rb @@ -60,7 +60,7 @@ <h3>Until</h3> <div class="signature-box"><p> This method provides <strong>browser compatibility</strong> for: - #{ context[@tagname].map {|tag| tag[:doc] }.join("\n") } + #{ context[@tagname].map { |tag| tag[:doc] }.join("\n") } </p></div> EOHTML end @@ -84,7 +84,7 @@ <<-EOHTML <h3 class="pa">Related</h3> <ul> - #{ context[@tagname].map {|tag| tag[:doc] }.join("\n") } + #{ context[@tagname].map { |tag| tag[:doc] }.join("\n") } </ul> EOHTML end diff --git a/.rubocop.yml b/.rubocop.yml index cc32da4..6de99f1 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1 +1,6 @@ inherit_from: .rubocop_todo.yml + +AllCops: + Include: + - 'Gemfile' + - '.docs/**/*.rb' diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index d92ba4a..9a2d5b2 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1,5 +1,5 @@ # This configuration was generated by `rubocop --auto-gen-config` -# on 2014-10-23 12:31:37 +0200 using RuboCop version 0.26.1. +# on 2014-11-12 14:07:33 +0100 using RuboCop version 0.27.1. # 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 @@ -19,12 +19,7 @@ Style/Documentation: Enabled: false -# Offense count: 1 -# Configuration parameters: Exclude. -Style/FileName: - Enabled: false - -# Offense count: 4 +# Offense count: 5 # Cop supports --auto-correct. # Configuration parameters: SupportedStyles. Style/HashSyntax: @@ -46,7 +41,7 @@ Style/SpaceInsideBlockBraces: Enabled: true -# Offense count: 3 +# Offense count: 5 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. Style/StringLiterals: diff --git a/Gemfile.lock b/Gemfile.lock index d2f8141..a5a0e19 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -4,18 +4,18 @@ ast (2.0.0) astrolabe (1.3.0) parser (>= 2.2.0.pre.3, < 3.0) - parser (2.2.0.pre.5) + parser (2.2.0.pre.7) ast (>= 1.1, < 3.0) slop (~> 3.4, >= 3.4.5) powerpack (0.0.9) rainbow (2.0.0) - rubocop (0.26.1) + rubocop (0.27.1) astrolabe (~> 1.3) - parser (>= 2.2.0.pre.4, < 3.0) + parser (>= 2.2.0.pre.7, < 3.0) powerpack (~> 0.0.6) rainbow (>= 1.99.1, < 3.0) ruby-progressbar (~> 1.4) - ruby-progressbar (1.6.0) + ruby-progressbar (1.7.0) slop (3.6.0) PLATFORMS -- To view, visit https://gerrit.wikimedia.org/r/172708 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I0a640135ca8e63a8efd6e8dc0e982a05097c20aa Gerrit-PatchSet: 3 Gerrit-Project: VisualEditor/VisualEditor Gerrit-Branch: master Gerrit-Owner: Zfilipin <[email protected]> Gerrit-Reviewer: Amire80 <[email protected]> Gerrit-Reviewer: Cmcmahon <[email protected]> Gerrit-Reviewer: Dduvall <[email protected]> Gerrit-Reviewer: Hashar <[email protected]> Gerrit-Reviewer: Jforrester <[email protected]> Gerrit-Reviewer: Lubaochuan <[email protected]> Gerrit-Reviewer: Zfilipin <[email protected]> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
