From 1b52b14cda4c4f73828d97287ca7c00203aeea8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=BDeljko=20Filipin?= Date: Tue, 21 Oct 2014 16:45:42 +0200 Subject: [PATCH] Prepare repository for running RuboCop after every push to Gerrit For now ignoring all problems. Bug: 69245 Change-Id: I16c3edf47d6bb6470f5b71754fa99fe177b65797 --- .rubocop.yml | 1 + .rubocop_todo.yml | 125 +++++++++++++++++++++ tests/browser/Gemfile => Gemfile | 1 + tests/browser/Gemfile.lock => Gemfile.lock | 17 +++ 4 files changed, 144 insertions(+) create mode 100644 .rubocop.yml create mode 100644 .rubocop_todo.yml rename tests/browser/Gemfile => Gemfile (79%) rename tests/browser/Gemfile.lock => Gemfile.lock (78%) diff --git a/.rubocop.yml b/.rubocop.yml new file mode 100644 index 00000000..cc32da4b --- /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 00000000..e80fb512 --- /dev/null +++ b/.rubocop_todo.yml @@ -0,0 +1,125 @@ +# This configuration was generated by `rubocop --auto-gen-config` +# on 2014-10-21 16:45: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: 1 +# Cop supports --auto-correct. +Lint/BlockAlignment: + Enabled: false + +# Offense count: 1 +# Configuration parameters: AlignWith, SupportedStyles. +Lint/DefEndAlignment: + Enabled: false + +# Offense count: 1 +Metrics/CyclomaticComplexity: + Max: 7 + +# Offense count: 17 +# Configuration parameters: AllowURI, URISchemes. +Metrics/LineLength: + Max: 168 + +# Offense count: 1 +# Configuration parameters: CountComments. +Metrics/MethodLength: + Max: 16 + +# Offense count: 1 +# Cop supports --auto-correct. +# Configuration parameters: EnforcedStyle, SupportedStyles. +Style/AccessModifierIndentation: + Enabled: false + +# Offense count: 1 +# Cop supports --auto-correct. +# Configuration parameters: EnforcedStyle, SupportedStyles. +Style/BracesAroundHashParameters: + Enabled: false + +# Offense count: 6 +# Configuration parameters: IndentWhenRelativeTo, SupportedStyles, IndentOneStep. +Style/CaseIndentation: + Enabled: false + +# Offense count: 1 +# Cop supports --auto-correct. +# Configuration parameters: PreferredMethods. +Style/CollectionMethods: + Enabled: false + +# Offense count: 9 +Style/Documentation: + Enabled: false + +# Offense count: 1 +# Cop supports --auto-correct. +Style/EmptyLinesAroundAccessModifier: + Enabled: false + +# Offense count: 1 +# Cop supports --auto-correct. +Style/EmptyLinesAroundBody: + Enabled: false + +# Offense count: 1 +# Configuration parameters: AllowedVariables. +Style/GlobalVars: + Enabled: false + +# Offense count: 7 +# Cop supports --auto-correct. +# Configuration parameters: EnforcedStyle, SupportedStyles. +Style/HashSyntax: + Enabled: false + +# Offense count: 1 +# Cop supports --auto-correct. +Style/IndentationConsistency: + Enabled: false + +# Offense count: 90 +# Cop supports --auto-correct. +Style/IndentationWidth: + Enabled: false + +# Offense count: 2 +# Cop supports --auto-correct. +Style/LeadingCommentSpace: + Enabled: false + +# Offense count: 8 +# Cop supports --auto-correct. +# Configuration parameters: EnforcedStyleForEmptyBraces, SupportedStyles. +Style/SpaceInsideHashLiteralBraces: + EnforcedStyle: no_space + +# Offense count: 10 +# Cop supports --auto-correct. +Style/SpaceInsideParens: + Enabled: false + +# Offense count: 130 +# Cop supports --auto-correct. +# Configuration parameters: EnforcedStyle, SupportedStyles. +Style/StringLiterals: + Enabled: false + +# Offense count: 216 +# Cop supports --auto-correct. +Style/Tab: + Enabled: false + +# Offense count: 1 +# Cop supports --auto-correct. +# Configuration parameters: EnforcedStyle, SupportedStyles. +Style/TrailingBlankLines: + Enabled: false diff --git a/tests/browser/Gemfile b/Gemfile similarity index 79% rename from tests/browser/Gemfile rename to Gemfile index 19672dea..c8a5cabb 100644 --- a/tests/browser/Gemfile +++ b/Gemfile @@ -4,3 +4,4 @@ source "https://rubygems.org" gem "mediawiki_selenium" +gem "rubocop", require: false diff --git a/tests/browser/Gemfile.lock b/Gemfile.lock similarity index 78% rename from tests/browser/Gemfile.lock rename to Gemfile.lock index 42c5e920..80a0ef81 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) @@ -41,16 +44,29 @@ 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.6.7) mime-types (>= 1.16) rspec-expectations (2.99.0) 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.4) 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) watir-webdriver (0.6.9) selenium-webdriver (>= 2.18.0) @@ -62,3 +78,4 @@ PLATFORMS DEPENDENCIES mediawiki_selenium + rubocop