From b1a028d4e5bf962ae38e798a7823cd78a1d6684a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20F=C3=A9lizard?= Date: Fri, 22 Jan 2016 18:05:28 +0000 Subject: [PATCH 1/1] Fix Rubocop offenses --- .gitignore | 1 + .rubocop.yml | 28 ++-------------------------- lib/bashcov/version.rb | 2 ++ lib/bashcov/xtrace.rb | 2 ++ 4 files changed, 7 insertions(+), 26 deletions(-) diff --git a/.gitignore b/.gitignore index 950ed5b..2e080b4 100644 --- a/.gitignore +++ b/.gitignore @@ -13,6 +13,7 @@ doc/ lib/bundler/man pkg rdoc +.rubocop-* spec/reports test/tmp test/version_tmp diff --git a/.rubocop.yml b/.rubocop.yml index e5abdb7..22bf2e8 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,30 +1,6 @@ -Metrics/AbcSize: - Enabled: false - -Metrics/MethodLength: - Enabled: false - -Metrics/LineLength: - Max: 120 - Exclude: [spec/**/*] - -Style/AccessModifierIndentation: - EnforcedStyle: outdent - -Style/AndOr: - EnforcedStyle: conditionals - -Style/SignalException: - EnforcedStyle: only_raise +inherit_from: + - https://gist.githubusercontent.com/infertux/cdd2ccc6e0a0cd94f458/raw Style/SpecialGlobalVars: Enabled: false -Style/StringLiterals: - EnforcedStyle: double_quotes - -Style/TrailingCommaInLiteral: - Enabled: false - -Style/TrailingCommaInArguments: - Enabled: false diff --git a/lib/bashcov/version.rb b/lib/bashcov/version.rb index 607bd27..4bd7d28 100644 --- a/lib/bashcov/version.rb +++ b/lib/bashcov/version.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # :nodoc: module Bashcov VERSION = "1.2.1".freeze diff --git a/lib/bashcov/xtrace.rb b/lib/bashcov/xtrace.rb index b6cb636..9cb21c4 100644 --- a/lib/bashcov/xtrace.rb +++ b/lib/bashcov/xtrace.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "pathname" require "securerandom" -- 2.7.0