From 1d3ae46b87eedbf846f2607997318ff9b7d617e8 Mon Sep 17 00:00:00 2001 From: Adam Cooke Date: Tue, 6 Oct 2020 18:16:11 +0100 Subject: [PATCH] chore: remove files that should be ignored --- .gitignore | 3 + .rubocop-https---dev-k-io-rubocop-rubocop-yml | 136 ------------------ Gemfile.lock | 78 ---------- 3 files changed, 3 insertions(+), 214 deletions(-) create mode 100644 .gitignore delete mode 100644 .rubocop-https---dev-k-io-rubocop-rubocop-yml delete mode 100644 Gemfile.lock diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4742ee4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +.rubocop-* +Gemfile.lock + diff --git a/.rubocop-https---dev-k-io-rubocop-rubocop-yml b/.rubocop-https---dev-k-io-rubocop-rubocop-yml deleted file mode 100644 index 2523460..0000000 --- a/.rubocop-https---dev-k-io-rubocop-rubocop-yml +++ /dev/null @@ -1,136 +0,0 @@ -AllCops: - AutoCorrect: false - TargetRubyVersion: 2.6 - NewCops: enable - Exclude: - - "node_modules/**/*" - -# We prefer arrays of symbols to look like an array of symbols. -# For example: [:one, :two, :three] as opposed to %i[one two three] -Style/SymbolArray: - EnforcedStyle: brackets - -# There should always be empty lines inside a class. For example -# -# class MyExample -# -# def some_method -# end -# -# end -Layout/EmptyLinesAroundClassBody: - EnforcedStyle: empty_lines - -# We want to keep attr_* definitions separated on their own lines, rather than -# all of them collapsed into a single attr_* call. The collapsed/grouped variant -# is harder to read, and harder to see what's been changed in diffs. -Style/AccessorGrouping: - Enabled: false - -# Blocks are slightly different to classes, in these cases there should -# not be new lines around the contents of the block. -# -# proc do -# # Do something -# end -Layout/EmptyLinesAroundBlockBody: - EnforcedStyle: no_empty_lines - -# Modules are the same as classes unless they're being used for namespacing -# purposes in which case there should not be new lines. -Layout/EmptyLinesAroundModuleBody: - EnforcedStyle: empty_lines_except_namespace - -# Space is required following -> when writing a lambda: -# -# somethign = -> (var) { block } -Layout/SpaceInLambdaLiteral: - EnforcedStyle: require_space - -Layout/FirstHashElementIndentation: - Enabled: false - -# We don't mind setting assignments in conditions so this has been disabled to -# allow `if something = something_else` without worrying about brackets. -Lint/AssignmentInCondition: - Enabled: false - -# Top level documentation is quite rare... -Style/Documentation: - Enabled: false - -# We want to allow inner slashes in a regexp to be used when using /xxx/ form. -Style/RegexpLiteral: - AllowInnerSlashes: true - -# Blocks of if statements are perfectly fine and usually more readable than -# putting everything onto a single line just because we can. -Style/IfUnlessModifier: - Enabled: false - -# We prefer assignments to happen within the condition rather than setting a -# variable to the result of a condition. -Style/ConditionalAssignment: - EnforcedStyle: assign_inside_condition - IncludeTernaryExpressions: false - -# Empty methods should not be compacted onto a single line -Style/EmptyMethod: - EnforcedStyle: expanded - -# We do not wish to auto correct unused method arguments because that can be a -# pain. These should just be flagged for manual intervention. -Lint/UnusedMethodArgument: - AutoCorrect: false - -# As above, just flag them. -Lint/UnusedBlockArgument: - AutoCorrect: false - -# While we don't want to make heavy use of get_ or set_ methods we do often need -# to use these when we want to refer to actually getting or setting something -# (usually from another API). -Naming/AccessorMethodName: - Enabled: false - -# If we want a boolean called :true, we should be allowed that. These are likely -# not mistakes. -Lint/BooleanSymbol: - Enabled: false - -# Using block.map(&:upcase) is not always the neatest way to show something. For -# example if you have a block that just calls one thing, you don't want it -# collapsed. -# -# action do |user| -# user.delete -# end -# -# This should be action(&:delete) because it is not clear what is actually -# happening without the context of knowing what the inner variable should be -# called. -Style/SymbolProc: - Enabled: false - -# Excluding specs from block lengths -Metrics/BlockLength: - Exclude: - - "spec/**/*_spec.rb" - - "spec/support/**/*.rb" - - "spec/specs/support/**/*.rb" - -# Slightly increase tyhe default method length to be a bit more forgiving -Metrics/MethodLength: - Max: 30 - -# Allow a maxmium of 5 arguments and don't include keyword arguments -Metrics/ParameterLists: - Max: 5 - CountKeywordArgs: false - -Style/MultilineBlockChain: - Exclude: - - "spec/**/*.rb" - -Metrics/ClassLength: - Max: 250 diff --git a/Gemfile.lock b/Gemfile.lock deleted file mode 100644 index 2496cb1..0000000 --- a/Gemfile.lock +++ /dev/null @@ -1,78 +0,0 @@ -PATH - remote: . - specs: - rapid_api (0.0.0.dev) - json - -GEM - remote: https://rubygems.org/ - remote: https://rubygems.pkg.github.com/krystal/ - specs: - addressable (2.7.0) - public_suffix (>= 2.0.2, < 5.0) - ast (2.4.1) - crack (0.4.3) - safe_yaml (~> 1.0.0) - diff-lcs (1.4.4) - hashdiff (1.0.1) - json (2.3.1) - parallel (1.19.2) - parser (2.7.2.0) - ast (~> 2.4.1) - public_suffix (4.0.5) - rack (2.2.3) - rainbow (3.0.0) - rake (13.0.1) - rapid (1.0.2) - json - rack - regexp_parser (1.8.1) - rexml (3.2.4) - rspec (3.9.0) - rspec-core (~> 3.9.0) - rspec-expectations (~> 3.9.0) - rspec-mocks (~> 3.9.0) - rspec-core (3.9.3) - rspec-support (~> 3.9.3) - rspec-expectations (3.9.2) - diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.9.0) - rspec-mocks (3.9.1) - diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.9.0) - rspec-support (3.9.3) - rubocop (0.91.1) - parallel (~> 1.10) - parser (>= 2.7.1.1) - rainbow (>= 2.2.2, < 4.0) - regexp_parser (>= 1.7) - rexml - rubocop-ast (>= 0.4.0, < 1.0) - ruby-progressbar (~> 1.7) - unicode-display_width (>= 1.4.0, < 2.0) - rubocop-ast (0.7.1) - parser (>= 2.7.1.5) - ruby-progressbar (1.10.1) - safe_yaml (1.0.5) - unicode-display_width (1.7.0) - webmock (3.8.3) - addressable (>= 2.3.6) - crack (>= 0.3.2) - hashdiff (>= 0.4.0, < 2.0.0) - -PLATFORMS - ruby - -DEPENDENCIES - rake - rapid! - rapid_api! - rspec - rspec-core - rspec-expectations - rspec-mocks - rubocop (= 0.91.1) - webmock - -BUNDLED WITH - 2.1.4