2023-06-07 13:16:49 -06:00
|
|
|
# This configuration was generated by
|
2023-06-07 13:37:41 -06:00
|
|
|
# `rubocop --auto-gen-config --exclude-limit 1000`
|
|
|
|
# on 2023-06-07 19:34:17 UTC using RuboCop version 1.52.0.
|
2023-06-07 13:16:49 -06:00
|
|
|
# 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
|
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
|
|
# Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include.
|
|
|
|
# Include: **/*.gemfile, **/Gemfile, **/gems.rb
|
|
|
|
Bundler/OrderedGems:
|
|
|
|
Exclude:
|
2023-06-07 13:37:41 -06:00
|
|
|
- 'lib/Gemfile'
|
2023-06-07 13:16:49 -06:00
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
|
|
# Configuration parameters: EnforcedStyleAlignWith, Severity.
|
|
|
|
# SupportedStylesAlignWith: keyword, variable, start_of_line
|
|
|
|
Layout/EndAlignment:
|
|
|
|
Exclude:
|
2023-06-07 13:37:41 -06:00
|
|
|
- 'lib/utils/utilities.rb'
|
2023-06-07 13:16:49 -06:00
|
|
|
|
|
|
|
# Offense count: 3
|
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
|
|
# Configuration parameters: Width, AllowedPatterns.
|
|
|
|
Layout/IndentationWidth:
|
|
|
|
Exclude:
|
2023-06-07 13:37:41 -06:00
|
|
|
- 'lib/utils/utilities.rb'
|
2023-06-07 13:16:49 -06:00
|
|
|
|
2023-06-07 13:37:41 -06:00
|
|
|
# Offense count: 8
|
2023-06-07 13:16:49 -06:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: final_newline, final_blank_line
|
|
|
|
Layout/TrailingEmptyLines:
|
|
|
|
Exclude:
|
2023-06-07 13:37:41 -06:00
|
|
|
- 'Modules/advanced_logger.rb'
|
|
|
|
- 'Modules/firewall_manager.rb'
|
|
|
|
- 'Modules/nftables_interface.rb'
|
|
|
|
- 'Modules/packet_manager.rb'
|
|
|
|
- 'Modules/protection_engine.rb'
|
|
|
|
- 'lib/utils/database_manager.rb'
|
|
|
|
- 'lib/utils/system_information_gather.rb'
|
|
|
|
- 'lib/utils/utilities.rb'
|
2023-06-07 13:16:49 -06:00
|
|
|
|
|
|
|
# Offense count: 9
|
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
|
|
# Configuration parameters: AllowInHeredoc.
|
|
|
|
Layout/TrailingWhitespace:
|
|
|
|
Exclude:
|
2023-06-07 13:37:41 -06:00
|
|
|
- 'lib/utils/database_manager.rb'
|
|
|
|
- 'lib/utils/first_run_init.rb'
|
|
|
|
- 'lib/utils/system_information_gather.rb'
|
|
|
|
- 'lib/utils/utilities.rb'
|
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# Configuration parameters: AllowComments.
|
|
|
|
Lint/EmptyFile:
|
|
|
|
Exclude:
|
|
|
|
- 'TUI/main_tui.rb'
|
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
|
|
Lint/ScriptPermission:
|
|
|
|
Exclude:
|
|
|
|
- 'bin/NETRAVE'
|
2023-06-07 13:16:49 -06:00
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
|
|
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods.
|
|
|
|
Lint/UnusedMethodArgument:
|
|
|
|
Exclude:
|
2023-06-07 13:37:41 -06:00
|
|
|
- 'lib/utils/system_information_gather.rb'
|
2023-06-07 13:16:49 -06:00
|
|
|
|
|
|
|
# Offense count: 5
|
|
|
|
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
|
|
|
|
Metrics/AbcSize:
|
|
|
|
Max: 20
|
|
|
|
|
|
|
|
# Offense count: 8
|
|
|
|
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
|
|
|
|
Metrics/MethodLength:
|
|
|
|
Max: 19
|
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# Configuration parameters: AllowedNames.
|
|
|
|
# AllowedNames: module_parent
|
|
|
|
Naming/ClassAndModuleCamelCase:
|
|
|
|
Exclude:
|
2023-06-07 13:37:41 -06:00
|
|
|
- 'lib/utils/GUI_launcher.rb'
|
2023-06-07 13:16:49 -06:00
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# Configuration parameters: ExpectMatchingDefinition, CheckDefinitionPathHierarchy, CheckDefinitionPathHierarchyRoots, Regex, IgnoreExecutableScripts, AllowedAcronyms.
|
|
|
|
# CheckDefinitionPathHierarchyRoots: lib, spec, test, src
|
|
|
|
# AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS
|
|
|
|
Naming/FileName:
|
|
|
|
Exclude:
|
2023-06-07 13:37:41 -06:00
|
|
|
- 'lib/utils/GUI_launcher.rb'
|
2023-06-07 13:16:49 -06:00
|
|
|
|
|
|
|
# Offense count: 2
|
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: always, conditionals
|
|
|
|
Style/AndOr:
|
|
|
|
Exclude:
|
2023-06-07 13:37:41 -06:00
|
|
|
- 'lib/utils/GUI_launcher.rb'
|
2023-06-07 13:16:49 -06:00
|
|
|
|
|
|
|
# Offense count: 5
|
|
|
|
# Configuration parameters: AllowedConstants.
|
|
|
|
Style/Documentation:
|
|
|
|
Exclude:
|
|
|
|
- 'spec/**/*'
|
|
|
|
- 'test/**/*'
|
2023-06-07 13:37:41 -06:00
|
|
|
- 'lib/utils/GUI_launcher.rb'
|
|
|
|
- 'lib/utils/database_manager.rb'
|
|
|
|
- 'lib/utils/first_run_init.rb'
|
|
|
|
- 'lib/utils/system_information_gather.rb'
|
|
|
|
- 'lib/utils/utilities.rb'
|
2023-06-07 13:16:49 -06:00
|
|
|
|
2023-06-07 13:37:41 -06:00
|
|
|
# Offense count: 11
|
2023-06-07 13:16:49 -06:00
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
|
|
# Configuration parameters: EnforcedStyle.
|
|
|
|
# SupportedStyles: always, always_true, never
|
|
|
|
Style/FrozenStringLiteralComment:
|
|
|
|
Exclude:
|
2023-06-07 13:37:41 -06:00
|
|
|
- 'Modules/advanced_logger.rb'
|
|
|
|
- 'Modules/firewall_manager.rb'
|
|
|
|
- 'Modules/nftables_interface.rb'
|
|
|
|
- 'Modules/packet_manager.rb'
|
|
|
|
- 'Modules/protection_engine.rb'
|
|
|
|
- 'bin/NETRAVE'
|
|
|
|
- 'lib/utils/GUI_launcher.rb'
|
|
|
|
- 'lib/utils/database_manager.rb'
|
|
|
|
- 'lib/utils/first_run_init.rb'
|
|
|
|
- 'lib/utils/system_information_gather.rb'
|
|
|
|
- 'lib/utils/utilities.rb'
|
2023-06-07 13:16:49 -06:00
|
|
|
|
|
|
|
# Offense count: 4
|
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
|
|
# Configuration parameters: MinBodyLength, AllowConsecutiveConditionals.
|
|
|
|
Style/GuardClause:
|
|
|
|
Exclude:
|
2023-06-07 13:37:41 -06:00
|
|
|
- 'lib/utils/first_run_init.rb'
|
|
|
|
- 'lib/utils/system_information_gather.rb'
|
2023-06-07 13:16:49 -06:00
|
|
|
|
|
|
|
# Offense count: 4
|
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
|
|
Style/InfiniteLoop:
|
|
|
|
Exclude:
|
2023-06-07 13:37:41 -06:00
|
|
|
- 'lib/utils/first_run_init.rb'
|
|
|
|
- 'lib/utils/system_information_gather.rb'
|
2023-06-07 13:16:49 -06:00
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
|
|
Style/NegatedWhile:
|
|
|
|
Exclude:
|
2023-06-07 13:37:41 -06:00
|
|
|
- 'lib/utils/first_run_init.rb'
|
2023-06-07 13:16:49 -06:00
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
|
|
# Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns.
|
|
|
|
# SupportedStyles: predicate, comparison
|
|
|
|
Style/NumericPredicate:
|
|
|
|
Exclude:
|
|
|
|
- 'spec/**/*'
|
2023-06-07 13:37:41 -06:00
|
|
|
- 'lib/utils/system_information_gather.rb'
|
2023-06-07 13:16:49 -06:00
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
|
|
Style/RedundantBegin:
|
|
|
|
Exclude:
|
2023-06-07 13:37:41 -06:00
|
|
|
- 'lib/utils/database_manager.rb'
|
2023-06-07 13:16:49 -06:00
|
|
|
|
2023-06-07 13:37:41 -06:00
|
|
|
# Offense count: 9
|
2023-06-07 13:16:49 -06:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
|
|
Style/RedundantFileExtensionInRequire:
|
|
|
|
Exclude:
|
2023-06-07 13:37:41 -06:00
|
|
|
- 'bin/NETRAVE'
|
|
|
|
- 'lib/utils/database_manager.rb'
|
|
|
|
- 'lib/utils/first_run_init.rb'
|
|
|
|
- 'lib/utils/system_information_gather.rb'
|
2023-06-07 13:16:49 -06:00
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
|
|
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
|
|
|
|
# AllowedMethods: present?, blank?, presence, try, try!
|
|
|
|
Style/SafeNavigation:
|
|
|
|
Exclude:
|
2023-06-07 13:37:41 -06:00
|
|
|
- 'lib/utils/database_manager.rb'
|
2023-06-07 13:16:49 -06:00
|
|
|
|
2023-06-07 13:37:41 -06:00
|
|
|
# Offense count: 40
|
2023-06-07 13:16:49 -06:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
|
|
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
|
|
|
# SupportedStyles: single_quotes, double_quotes
|
|
|
|
Style/StringLiterals:
|
|
|
|
Exclude:
|
2023-06-07 13:37:41 -06:00
|
|
|
- 'bin/NETRAVE'
|
|
|
|
- 'lib/Gemfile'
|
|
|
|
- 'lib/utils/GUI_launcher.rb'
|
|
|
|
- 'lib/utils/database_manager.rb'
|
|
|
|
- 'lib/utils/first_run_init.rb'
|
|
|
|
- 'lib/utils/system_information_gather.rb'
|
2023-06-07 13:16:49 -06:00
|
|
|
|
|
|
|
# Offense count: 1
|
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
|
|
# Configuration parameters: MinSize, WordRegex.
|
|
|
|
# SupportedStyles: percent, brackets
|
|
|
|
Style/WordArray:
|
|
|
|
EnforcedStyle: brackets
|
|
|
|
|
2023-06-07 13:37:41 -06:00
|
|
|
# Offense count: 6
|
2023-06-07 13:16:49 -06:00
|
|
|
# This cop supports safe autocorrection (--autocorrect).
|
|
|
|
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
|
|
|
|
# URISchemes: http, https
|
|
|
|
Layout/LineLength:
|
2023-06-07 13:37:41 -06:00
|
|
|
Max: 239
|