-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Inherited strictest.yml here, this rules have NewCops enable config. Also dropped some cops from here because that was either included in the inherit file or was not needed anymore.
- Loading branch information
1 parent
e3b087a
commit 3722b75
Showing
16 changed files
with
106 additions
and
50 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
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 |
---|---|---|
@@ -1,42 +1,11 @@ | ||
require: | ||
- rubocop-performance | ||
- rubocop-minitest | ||
inherit_from: .rubocop_todo.yml | ||
|
||
AllCops: | ||
NewCops: enable | ||
|
||
Layout/EmptyLineAfterGuardClause: | ||
Enabled: false | ||
inherit_gem: | ||
theforeman-rubocop: | ||
- strictest.yml | ||
|
||
Layout/LineLength: | ||
Enabled: false | ||
AllCops: | ||
TargetRubyVersion: 2.7 | ||
|
||
Metrics: | ||
Enabled: false | ||
|
||
Style/FormatStringToken: | ||
EnforcedStyle: template | ||
|
||
Style/HashSyntax: | ||
EnforcedStyle: no_mixed_keys | ||
|
||
Style/SymbolArray: | ||
EnforcedStyle: brackets | ||
|
||
Style/Documentation: | ||
Enabled: false | ||
|
||
Style/GuardClause: | ||
Enabled: false | ||
|
||
Style/StringLiterals: | ||
Enabled: false | ||
|
||
Style/FrozenStringLiteralComment: | ||
Enabled: false | ||
|
||
Style/IfUnlessModifier: | ||
Enabled: false | ||
|
||
Gemspec/RequireMFA: | ||
Enabled: false |
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,65 @@ | ||
# This configuration was generated by | ||
# `rubocop --auto-gen-config` | ||
# on 2024-07-31 10:08:15 UTC using RuboCop version 1.64.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: 21 | ||
# This cop supports safe autocorrection (--autocorrect). | ||
# Configuration parameters: EnforcedStyle, IndentationWidth. | ||
# SupportedStyles: with_first_argument, with_fixed_indentation | ||
Layout/ArgumentAlignment: | ||
Exclude: | ||
- 'lib/hammer_cli_foreman_discovery.rb' | ||
- 'lib/hammer_cli_foreman_discovery/command_extensions/provision_with_puppet.rb' | ||
- 'lib/hammer_cli_foreman_discovery/discovery.rb' | ||
- 'lib/hammer_cli_foreman_discovery/discovery_rule.rb' | ||
- 'test/unit/discovery_rules_test.rb' | ||
- 'test/unit/discovery_test.rb' | ||
|
||
# Offense count: 2 | ||
# This cop supports safe autocorrection (--autocorrect). | ||
# Configuration parameters: EnforcedStyle, IndentationWidth. | ||
# SupportedStyles: special_inside_parentheses, consistent, align_braces | ||
Layout/FirstHashElementIndentation: | ||
Exclude: | ||
- 'test/unit/discovery_resource_mock.rb' | ||
|
||
# Offense count: 15 | ||
# This cop supports safe autocorrection (--autocorrect). | ||
# Configuration parameters: EnforcedStyle, EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols. | ||
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys | ||
# SupportedShorthandSyntax: always, never, either, consistent, either_consistent | ||
Style/HashSyntax: | ||
Exclude: | ||
- 'Rakefile' | ||
- 'lib/hammer_cli_foreman_discovery.rb' | ||
- 'lib/hammer_cli_foreman_discovery/discovery.rb' | ||
- 'lib/hammer_cli_foreman_discovery/discovery_references.rb' | ||
- 'lib/hammer_cli_foreman_discovery/discovery_rule.rb' | ||
|
||
# Offense count: 350 | ||
# This cop supports safe autocorrection (--autocorrect). | ||
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline. | ||
# SupportedStyles: single_quotes, double_quotes | ||
Style/StringLiterals: | ||
Exclude: | ||
- 'Rakefile' | ||
- 'hammer_cli_foreman_discovery.gemspec' | ||
- 'lib/hammer_cli_foreman_discovery.rb' | ||
- 'lib/hammer_cli_foreman_discovery/command_extensions/provision_with_puppet.rb' | ||
- 'lib/hammer_cli_foreman_discovery/discovery.rb' | ||
- 'lib/hammer_cli_foreman_discovery/discovery_references.rb' | ||
- 'lib/hammer_cli_foreman_discovery/discovery_rule.rb' | ||
- 'test/unit/discovery_resource_mock.rb' | ||
- 'test/unit/discovery_rules_test.rb' | ||
- 'test/unit/discovery_test.rb' | ||
|
||
# Offense count: 18 | ||
# This cop supports safe autocorrection (--autocorrect). | ||
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns. | ||
# URISchemes: http, https | ||
Layout/LineLength: | ||
Max: 169 |
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
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
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
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
module HammerCLIForemanDiscovery | ||
require 'hammer_cli_foreman_discovery/version' | ||
|
||
|
2 changes: 2 additions & 0 deletions
2
lib/hammer_cli_foreman_discovery/command_extensions/provision_with_puppet.rb
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
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
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
module HammerCLIForemanDiscovery | ||
module DiscoveryReferences | ||
def self.hosts(dsl) | ||
|
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
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'hammer_cli/i18n' | ||
|
||
module HammerCLIForemanDiscovery | ||
|
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
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
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
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