Skip to content

Commit

Permalink
tests: RuboCop checks .docs/CustomTags.rb
Browse files Browse the repository at this point in the history
Bump RuboCop to 0.27.1 so it can recognize '.docs', see upstream bug for
details: rubocop/rubocop#1401

Fix minor whitespaces problem that `rubocop --auto-gen-config` did not
put to .rubocop_todo.yml file.

Bug: 63307
Change-Id: I0a640135ca8e63a8efd6e8dc0e982a05097c20aa
  • Loading branch information
zeljkofilipin authored and hashar committed Nov 12, 2014
1 parent 0736e17 commit 31eab5b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .docs/CustomTags.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def to_html(context)
<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
Expand All @@ -84,7 +84,7 @@ def to_html(context)
<<-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
Expand Down
5 changes: 5 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
inherit_from: .rubocop_todo.yml

AllCops:
Include:
- 'Gemfile'
- '.docs/**/*.rb'
11 changes: 3 additions & 8 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -19,12 +19,7 @@ Metrics/LineLength:
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:
Expand All @@ -46,7 +41,7 @@ Style/SpaceAroundOperators:
Style/SpaceInsideBlockBraces:
Enabled: true

# Offense count: 3
# Offense count: 5
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
Style/StringLiterals:
Expand Down
8 changes: 4 additions & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@ GEM
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
Expand Down

0 comments on commit 31eab5b

Please sign in to comment.