From 70f391997bd05e79b8dfee8f9355766c065488f6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C5=BDeljko=20Filipin?= Date: Fri, 24 Oct 2014 13:11:12 +0200 Subject: [PATCH] Prepare repository for running RuboCop after every push to Gerrit MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit For now fixed only one trivial whitespace problem that “bundle exec rubocop --auto-gen-config” did not put into .rubocop_todo.yml file. Bug: 69245 Change-Id: I667941521220ee8761fdd691c138400fcda388e0 --- .rubocop.yml | 1 + .rubocop_todo.yml | 84 ++++++++++++++++++++++ tests/browser/Gemfile => Gemfile | 1 + tests/browser/Gemfile.lock => Gemfile.lock | 17 +++++ maintenance/jsduck/CustomTags.rb | 2 +- 5 files changed, 104 insertions(+), 1 deletion(-) create mode 100644 .rubocop.yml create mode 100644 .rubocop_todo.yml rename tests/browser/Gemfile => Gemfile (78%) rename tests/browser/Gemfile.lock => Gemfile.lock (82%) diff --git a/.rubocop.yml b/.rubocop.yml new file mode 100644 index 0000000000..cc32da4b99 --- /dev/null +++ b/.rubocop.yml @@ -0,0 +1 @@ +inherit_from: .rubocop_todo.yml diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml new file mode 100644 index 0000000000..f0702ba09a --- /dev/null +++ b/.rubocop_todo.yml @@ -0,0 +1,84 @@ +# This configuration was generated by `rubocop --auto-gen-config` +# on 2014-10-21 15:10:03 +0200 using RuboCop version 0.26.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 +# versions of RuboCop, may require this file to be generated again. + +# Offense count: 1 +Lint/AmbiguousRegexpLiteral: + Enabled: false + +# Offense count: 2 +# Cop supports --auto-correct. +Lint/UnusedMethodArgument: + Enabled: false + +# Offense count: 19 +# Configuration parameters: AllowURI, URISchemes. +Metrics/LineLength: + Max: 94 + +# Offense count: 10 +Style/Documentation: + Enabled: false + +# Offense count: 1 +# Cop supports --auto-correct. +Style/EmptyLines: + Enabled: false + +# Offense count: 1 +# Cop supports --auto-correct. +Style/EmptyLinesAroundBody: + Enabled: false + +# Offense count: 1 +# Configuration parameters: Exclude. +Style/FileName: + Enabled: false + +# Offense count: 8 +# Cop supports --auto-correct. +# Configuration parameters: EnforcedStyle, SupportedStyles. +Style/HashSyntax: + Enabled: false + +# Offense count: 2 +# Cop supports --auto-correct. +Style/LeadingCommentSpace: + Enabled: false + +# Offense count: 4 +# Cop supports --auto-correct. +Style/PerlBackrefs: + Enabled: false + +# Offense count: 4 +# Cop supports --auto-correct. +Style/SpaceAroundOperators: + Enabled: false + +# Offense count: 1 +# Cop supports --auto-correct. +# Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters. +Style/SpaceInsideBlockBraces: + Enabled: true + +# Offense count: 6 +# Cop supports --auto-correct. +# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SupportedStyles. +Style/SpaceInsideHashLiteralBraces: + Enabled: false + +# Offense count: 89 +# Cop supports --auto-correct. +# Configuration parameters: EnforcedStyle, SupportedStyles. +Style/StringLiterals: + Enabled: false + +# Offense count: 11 +# Cop supports --auto-correct. +# Configuration parameters: EnforcedStyle, SupportedStyles. +Style/TrailingBlankLines: + Enabled: false diff --git a/tests/browser/Gemfile b/Gemfile similarity index 78% rename from tests/browser/Gemfile rename to Gemfile index 3be33b78a4..1559d0eb79 100644 --- a/tests/browser/Gemfile +++ b/Gemfile @@ -5,3 +5,4 @@ source "https://rubygems.org" gem "mediawiki_api" gem "mediawiki_selenium" +gem "rubocop", require: false diff --git a/tests/browser/Gemfile.lock b/Gemfile.lock similarity index 82% rename from tests/browser/Gemfile.lock rename to Gemfile.lock index 1ea4eb5561..0dc450003d 100644 --- a/tests/browser/Gemfile.lock +++ b/Gemfile.lock @@ -1,6 +1,9 @@ GEM remote: https://rubygems.org/ specs: + ast (2.0.0) + astrolabe (1.3.0) + parser (>= 2.2.0.pre.3, < 3.0) builder (3.2.2) childprocess (0.5.3) ffi (~> 1.0, >= 1.0.11) @@ -54,17 +57,30 @@ GEM watir-webdriver (>= 0.6.9) page_navigation (0.9) data_magic (>= 0.14) + parser (2.2.0.pre.4) + ast (>= 1.1, < 3.0) + slop (~> 3.4, >= 3.4.5) + powerpack (0.0.9) + rainbow (2.0.0) rest-client (1.7.2) mime-types (>= 1.16, < 3.0) netrc (~> 0.7) rspec-expectations (2.99.2) diff-lcs (>= 1.1.3, < 2.0) + rubocop (0.26.1) + astrolabe (~> 1.3) + parser (>= 2.2.0.pre.4, < 3.0) + powerpack (~> 0.0.6) + rainbow (>= 1.99.1, < 3.0) + ruby-progressbar (~> 1.4) + ruby-progressbar (1.6.0) rubyzip (1.1.6) selenium-webdriver (2.42.0) childprocess (>= 0.5.0) multi_json (~> 1.0) rubyzip (~> 1.0) websocket (~> 1.0.4) + slop (3.6.0) syntax (1.2.0) unf (0.1.4) unf_ext @@ -80,3 +96,4 @@ PLATFORMS DEPENDENCIES mediawiki_api mediawiki_selenium + rubocop diff --git a/maintenance/jsduck/CustomTags.rb b/maintenance/jsduck/CustomTags.rb index 2aff98812b..bf0e07fd16 100644 --- a/maintenance/jsduck/CustomTags.rb +++ b/maintenance/jsduck/CustomTags.rb @@ -66,7 +66,7 @@ class SeeTag < CommonTag <<-EOHTML

Related

EOHTML end -- 2.20.1