Zfilipin has uploaded a new change for review.
https://gerrit.wikimedia.org/r/172708
Change subject: tests: RuboCop checks .docs/CustomTags.rb
......................................................................
tests: RuboCop checks .docs/CustomTags.rb
Also fixed minor whitespace 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(-)
git pull ssh://gerrit.wikimedia.org:29418/VisualEditor/VisualEditor
refs/changes/08/172708/1
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: newchange
Gerrit-Change-Id: I0a640135ca8e63a8efd6e8dc0e982a05097c20aa
Gerrit-PatchSet: 1
Gerrit-Project: VisualEditor/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Zfilipin <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits