-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed tty dependency and added rubocop
- Loading branch information
Showing
11 changed files
with
406 additions
and
276 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
# This is the configuration used to check the rubocop source code. | ||
|
||
inherit_from: .rubocop_todo.yml | ||
require: | ||
- rubocop/cop/internal_affairs | ||
- rubocop-rspec | ||
|
||
AllCops: | ||
Exclude: | ||
- 'vendor/**/*' | ||
- 'spec/fixtures/**/*' | ||
- 'tmp/**/*' | ||
TargetRubyVersion: 2.4 | ||
|
||
Naming/PredicateName: | ||
# Method define macros for dynamically generated method. | ||
MethodDefinitionMacros: | ||
- define_method | ||
- define_singleton_method | ||
- def_node_matcher | ||
- def_node_search | ||
|
||
Style/FrozenStringLiteralComment: | ||
EnforcedStyle: when_needed | ||
|
||
Style/FormatStringToken: | ||
# Because we parse a lot of source codes from strings. Percent arrays | ||
# look like unannotated format string tokens to this cop. | ||
Exclude: | ||
- spec/**/* | ||
|
||
Style/IpAddresses: | ||
# The test for this cop includes strings that would cause offenses | ||
Exclude: | ||
- spec/rubocop/cop/style/ip_addresses_spec.rb | ||
|
||
Layout/EndOfLine: | ||
EnforcedStyle: lf | ||
|
||
Layout/ClassStructure: | ||
Enabled: true | ||
Categories: | ||
module_inclusion: | ||
- include | ||
- prepend | ||
- extend | ||
ExpectedOrder: | ||
- module_inclusion | ||
- constants | ||
- public_class_methods | ||
- initializer | ||
- instance_methods | ||
- protected_methods | ||
- private_methods | ||
|
||
Layout/IndentHeredoc: | ||
EnforcedStyle: powerpack | ||
|
||
# Trailing white space is meaningful in code examples | ||
Layout/TrailingWhitespace: | ||
AllowInHeredoc: true | ||
|
||
Lint/AmbiguousBlockAssociation: | ||
Exclude: | ||
- 'spec/**/*.rb' | ||
|
||
Lint/InterpolationCheck: | ||
Exclude: | ||
- 'spec/**/*.rb' | ||
|
||
Lint/UselessAccessModifier: | ||
MethodCreatingMethods: | ||
- 'def_matcher' | ||
- 'def_node_matcher' | ||
|
||
Lint/BooleanSymbol: | ||
Enabled: false | ||
|
||
Metrics/BlockLength: | ||
Exclude: | ||
- 'Rakefile' | ||
- '**/*.rake' | ||
- 'spec/**/*.rb' | ||
|
||
Metrics/ModuleLength: | ||
Exclude: | ||
- 'spec/**/*.rb' | ||
|
||
Performance/Caller: | ||
Exclude: | ||
- spec/rubocop/cop/performance/caller_spec.rb | ||
|
||
RSpec/PredicateMatcher: | ||
EnforcedStyle: explicit | ||
|
||
RSpec/NestedGroups: | ||
Max: 7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,263 @@ | ||
# This configuration was generated by | ||
# `rubocop --auto-gen-config` | ||
# on 2018-12-09 15:12:18 -0600 using RuboCop version 0.61.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 | ||
# Configuration parameters: Include. | ||
# Include: **/*.gemspec | ||
Gemspec/DuplicatedAssignment: | ||
Exclude: | ||
- 'guac.gemspec' | ||
|
||
# Offense count: 1 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: EnforcedStyle. | ||
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines, beginning_only, ending_only | ||
Layout/EmptyLinesAroundClassBody: | ||
Exclude: | ||
- 'lib/guac/commands/config.rb' | ||
|
||
# Offense count: 3 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: EnforcedStyle. | ||
# SupportedStyles: auto_detection, squiggly, active_support, powerpack, unindent | ||
Layout/IndentHeredoc: | ||
Exclude: | ||
- 'spec/integration/config_spec.rb' | ||
- 'spec/integration/status_spec.rb' | ||
- 'spec/integration/up_spec.rb' | ||
|
||
# Offense count: 1 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: EnforcedStyle. | ||
# SupportedStyles: normal, rails | ||
Layout/IndentationConsistency: | ||
Exclude: | ||
- 'lib/guac/config.rb' | ||
|
||
# Offense count: 1 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: Width, IgnoredPatterns. | ||
Layout/IndentationWidth: | ||
Exclude: | ||
- 'lib/guac/config.rb' | ||
|
||
# Offense count: 1 | ||
# Cop supports --auto-correct. | ||
Layout/LeadingBlankLines: | ||
Exclude: | ||
- 'guac.gemspec' | ||
|
||
# Offense count: 1 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters. | ||
# SupportedStyles: space, no_space | ||
# SupportedStylesForEmptyBraces: space, no_space | ||
Layout/SpaceInsideBlockBraces: | ||
Exclude: | ||
- 'Gemfile' | ||
|
||
# Offense count: 1 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: EnforcedStyle. | ||
# SupportedStyles: final_newline, final_blank_line | ||
Layout/TrailingBlankLines: | ||
Exclude: | ||
- 'lib/guac/config.rb' | ||
|
||
# Offense count: 3 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods. | ||
Lint/UnusedMethodArgument: | ||
Exclude: | ||
- 'lib/guac/commands/config.rb' | ||
- 'lib/guac/commands/status.rb' | ||
- 'lib/guac/commands/up.rb' | ||
|
||
# Offense count: 2 | ||
Lint/UselessAssignment: | ||
Exclude: | ||
- 'lib/guac/sys_command.rb' | ||
|
||
# Offense count: 2 | ||
Metrics/AbcSize: | ||
Max: 19 | ||
|
||
# Offense count: 1 | ||
# Configuration parameters: CountComments, ExcludedMethods. | ||
# ExcludedMethods: refine | ||
Metrics/BlockLength: | ||
Max: 31 | ||
|
||
# Offense count: 4 | ||
# Configuration parameters: CountComments, ExcludedMethods. | ||
Metrics/MethodLength: | ||
Max: 15 | ||
|
||
# Offense count: 3 | ||
RSpec/DescribeClass: | ||
Exclude: | ||
- 'spec/integration/config_spec.rb' | ||
- 'spec/integration/status_spec.rb' | ||
- 'spec/integration/up_spec.rb' | ||
|
||
# Offense count: 3 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: SkipBlocks, EnforcedStyle. | ||
# SupportedStyles: described_class, explicit | ||
RSpec/DescribedClass: | ||
Exclude: | ||
- 'spec/unit/config_spec.rb' | ||
- 'spec/unit/status_spec.rb' | ||
- 'spec/unit/up_spec.rb' | ||
|
||
# Offense count: 3 | ||
# Configuration parameters: Max. | ||
RSpec/ExampleLength: | ||
Exclude: | ||
- 'spec/integration/config_spec.rb' | ||
- 'spec/integration/status_spec.rb' | ||
- 'spec/integration/up_spec.rb' | ||
|
||
# Offense count: 3 | ||
# Configuration parameters: CustomTransform, IgnoreMethods. | ||
RSpec/FilePath: | ||
Exclude: | ||
- 'spec/unit/config_spec.rb' | ||
- 'spec/unit/status_spec.rb' | ||
- 'spec/unit/up_spec.rb' | ||
|
||
# Offense count: 2 | ||
# Cop supports --auto-correct. | ||
Security/YAMLLoad: | ||
Exclude: | ||
- 'lib/guac/config.rb' | ||
|
||
# Offense count: 8 | ||
Style/Documentation: | ||
Exclude: | ||
- 'spec/**/*' | ||
- 'test/**/*' | ||
- 'lib/guac.rb' | ||
- 'lib/guac/colors.rb' | ||
- 'lib/guac/commands/config.rb' | ||
- 'lib/guac/commands/status.rb' | ||
- 'lib/guac/commands/up.rb' | ||
- 'lib/guac/config.rb' | ||
- 'lib/guac/repo.rb' | ||
- 'lib/guac/sys_command.rb' | ||
|
||
# Offense count: 2 | ||
# Cop supports --auto-correct. | ||
Style/ExpandPathArguments: | ||
Exclude: | ||
- 'guac.gemspec' | ||
|
||
# Offense count: 15 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: EnforcedStyle. | ||
# SupportedStyles: when_needed, always, never | ||
Style/FrozenStringLiteralComment: | ||
Exclude: | ||
- 'Gemfile' | ||
- 'Rakefile' | ||
- 'bin/console' | ||
- 'guac.gemspec' | ||
- 'lib/guac.rb' | ||
- 'lib/guac/config.rb' | ||
- 'lib/guac/version.rb' | ||
- 'spec/guac_spec.rb' | ||
- 'spec/integration/config_spec.rb' | ||
- 'spec/integration/status_spec.rb' | ||
- 'spec/integration/up_spec.rb' | ||
- 'spec/spec_helper.rb' | ||
- 'spec/unit/config_spec.rb' | ||
- 'spec/unit/status_spec.rb' | ||
- 'spec/unit/up_spec.rb' | ||
|
||
# Offense count: 1 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols. | ||
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys | ||
Style/HashSyntax: | ||
Exclude: | ||
- 'Rakefile' | ||
|
||
# Offense count: 1 | ||
# Cop supports --auto-correct. | ||
Style/IfUnlessModifier: | ||
Exclude: | ||
- 'lib/guac/sys_command.rb' | ||
|
||
# Offense count: 1 | ||
# Cop supports --auto-correct. | ||
Style/MutableConstant: | ||
Exclude: | ||
- 'lib/guac/version.rb' | ||
|
||
# Offense count: 1 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: EnforcedStyle. | ||
# SupportedStyles: both, prefix, postfix | ||
Style/NegatedIf: | ||
Exclude: | ||
- 'exe/guac' | ||
|
||
# Offense count: 3 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: PreferredDelimiters. | ||
Style/PercentLiteralDelimiters: | ||
Exclude: | ||
- 'lib/guac/cli.rb' | ||
- 'lib/guac/repo.rb' | ||
|
||
# Offense count: 2 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: EnforcedStyle. | ||
# SupportedStyles: use_perl_names, use_english_names | ||
Style/SpecialGlobalVars: | ||
Exclude: | ||
- 'exe/guac' | ||
|
||
# Offense count: 20 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline. | ||
# SupportedStyles: single_quotes, double_quotes | ||
Style/StringLiterals: | ||
Exclude: | ||
- 'Gemfile' | ||
- 'Rakefile' | ||
- 'bin/console' | ||
- 'lib/guac.rb' | ||
- 'lib/guac/version.rb' | ||
- 'spec/integration/config_spec.rb' | ||
- 'spec/integration/status_spec.rb' | ||
- 'spec/integration/up_spec.rb' | ||
- 'spec/spec_helper.rb' | ||
- 'spec/unit/config_spec.rb' | ||
- 'spec/unit/status_spec.rb' | ||
- 'spec/unit/up_spec.rb' | ||
|
||
# Offense count: 1 | ||
# Cop supports --auto-correct. | ||
# Configuration parameters: EnforcedStyleForMultiline. | ||
# SupportedStylesForMultiline: comma, consistent_comma, no_comma | ||
Style/TrailingCommaInHashLiteral: | ||
Exclude: | ||
- 'lib/guac/commands/config.rb' | ||
|
||
# Offense count: 1 | ||
# Cop supports --auto-correct. | ||
Style/UnneededCondition: | ||
Exclude: | ||
- 'lib/guac/repo.rb' | ||
|
||
# Offense count: 12 | ||
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns. | ||
# URISchemes: http, https | ||
Metrics/LineLength: | ||
Max: 101 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.