From: Željko Filipin Date: Fri, 24 Oct 2014 11:11:12 +0000 (+0200) Subject: Prepare repository for running RuboCop after every push to Gerrit X-Git-Tag: 1.31.0-rc.0~13401^2 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22sites_tous%22%29%20.%20%22?a=commitdiff_plain;h=70f391997bd05e79b8dfee8f9355766c065488f6;p=lhc%2Fweb%2Fwiklou.git Prepare repository for running RuboCop after every push to Gerrit 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 --- 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/Gemfile b/Gemfile new file mode 100644 index 0000000000..1559d0eb79 --- /dev/null +++ b/Gemfile @@ -0,0 +1,8 @@ +#ruby=ruby-2.1.2 +#ruby-gemset=core + +source "https://rubygems.org" + +gem "mediawiki_api" +gem "mediawiki_selenium" +gem "rubocop", require: false diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 0000000000..0dc450003d --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,99 @@ +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) + cucumber (1.3.16) + builder (>= 2.1.2) + diff-lcs (>= 1.1.3) + gherkin (~> 2.12) + multi_json (>= 1.7.5, < 2.0) + multi_test (>= 0.1.1) + data_magic (0.19) + faker (>= 1.1.2) + yml_reader (>= 0.3) + diff-lcs (1.2.5) + domain_name (0.5.20) + unf (>= 0.0.5, < 1.0.0) + faker (1.4.3) + i18n (~> 0.5) + faraday (0.9.0) + multipart-post (>= 1.2, < 3) + faraday-cookie_jar (0.0.6) + faraday (>= 0.7.4) + http-cookie (~> 1.0.0) + ffi (1.9.3) + gherkin (2.12.2) + multi_json (~> 1.3) + headless (1.0.2) + http-cookie (1.0.2) + domain_name (~> 0.5) + i18n (0.6.11) + json (1.8.1) + mediawiki_api (0.2.1) + faraday (~> 0.9, >= 0.9.0) + faraday-cookie_jar (~> 0.0, >= 0.0.6) + mediawiki_selenium (0.3.2) + cucumber (~> 1.3, >= 1.3.10) + headless (~> 1.0, >= 1.0.1) + json (~> 1.8, >= 1.8.1) + mediawiki_api (~> 0.2, >= 0.2.1) + page-object (~> 1.0) + rest-client (~> 1.6, >= 1.6.7) + rspec-expectations (~> 2.14, >= 2.14.4) + syntax (~> 1.2, >= 1.2.0) + mime-types (2.3) + multi_json (1.10.1) + multi_test (0.1.1) + multipart-post (2.0.0) + netrc (0.7.7) + page-object (1.0.2) + page_navigation (>= 0.9) + selenium-webdriver (>= 2.42.0) + 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 + unf_ext (0.0.6) + watir-webdriver (0.6.10) + selenium-webdriver (>= 2.18.0) + websocket (1.0.7) + yml_reader (0.3) + +PLATFORMS + ruby + +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 diff --git a/tests/browser/Gemfile b/tests/browser/Gemfile deleted file mode 100644 index 3be33b78a4..0000000000 --- a/tests/browser/Gemfile +++ /dev/null @@ -1,7 +0,0 @@ -#ruby=ruby-2.1.2 -#ruby-gemset=core - -source "https://rubygems.org" - -gem "mediawiki_api" -gem "mediawiki_selenium" diff --git a/tests/browser/Gemfile.lock b/tests/browser/Gemfile.lock deleted file mode 100644 index 1ea4eb5561..0000000000 --- a/tests/browser/Gemfile.lock +++ /dev/null @@ -1,82 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - builder (3.2.2) - childprocess (0.5.3) - ffi (~> 1.0, >= 1.0.11) - cucumber (1.3.16) - builder (>= 2.1.2) - diff-lcs (>= 1.1.3) - gherkin (~> 2.12) - multi_json (>= 1.7.5, < 2.0) - multi_test (>= 0.1.1) - data_magic (0.19) - faker (>= 1.1.2) - yml_reader (>= 0.3) - diff-lcs (1.2.5) - domain_name (0.5.20) - unf (>= 0.0.5, < 1.0.0) - faker (1.4.3) - i18n (~> 0.5) - faraday (0.9.0) - multipart-post (>= 1.2, < 3) - faraday-cookie_jar (0.0.6) - faraday (>= 0.7.4) - http-cookie (~> 1.0.0) - ffi (1.9.3) - gherkin (2.12.2) - multi_json (~> 1.3) - headless (1.0.2) - http-cookie (1.0.2) - domain_name (~> 0.5) - i18n (0.6.11) - json (1.8.1) - mediawiki_api (0.2.1) - faraday (~> 0.9, >= 0.9.0) - faraday-cookie_jar (~> 0.0, >= 0.0.6) - mediawiki_selenium (0.3.2) - cucumber (~> 1.3, >= 1.3.10) - headless (~> 1.0, >= 1.0.1) - json (~> 1.8, >= 1.8.1) - mediawiki_api (~> 0.2, >= 0.2.1) - page-object (~> 1.0) - rest-client (~> 1.6, >= 1.6.7) - rspec-expectations (~> 2.14, >= 2.14.4) - syntax (~> 1.2, >= 1.2.0) - mime-types (2.3) - multi_json (1.10.1) - multi_test (0.1.1) - multipart-post (2.0.0) - netrc (0.7.7) - page-object (1.0.2) - page_navigation (>= 0.9) - selenium-webdriver (>= 2.42.0) - watir-webdriver (>= 0.6.9) - page_navigation (0.9) - data_magic (>= 0.14) - 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) - rubyzip (1.1.6) - selenium-webdriver (2.42.0) - childprocess (>= 0.5.0) - multi_json (~> 1.0) - rubyzip (~> 1.0) - websocket (~> 1.0.4) - syntax (1.2.0) - unf (0.1.4) - unf_ext - unf_ext (0.0.6) - watir-webdriver (0.6.10) - selenium-webdriver (>= 2.18.0) - websocket (1.0.7) - yml_reader (0.3) - -PLATFORMS - ruby - -DEPENDENCIES - mediawiki_api - mediawiki_selenium