Skip to content

Commit

Permalink
enable rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Jun 9, 2020
1 parent 1bfd312 commit 212a874
Show file tree
Hide file tree
Showing 9 changed files with 491 additions and 422 deletions.
94 changes: 94 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
# use the shared Yast defaults
inherit_from:
/usr/share/YaST2/data/devtools/data/rubocop-0.71.0_yast_style.yml

# this needs more testing if we can have frozen string literals
Style/FrozenStringLiteralComment:
Enabled: false

# Offense count: 1
# Configuration parameters: AllowKeywordBlockArguments.
Lint/UnderscorePrefixedVariableName:
Exclude:
- 'src/include/proxy/dialogs.rb'

# Offense count: 7
Metrics/AbcSize:
Max: 255

# Offense count: 5
# Configuration parameters: CountComments, ExcludedMethods.
# ExcludedMethods: refine
Metrics/BlockLength:
Max: 150

# Offense count: 12
# Configuration parameters: CountBlocks.
Metrics/BlockNesting:
Max: 5

# Offense count: 1
# Configuration parameters: CountComments.
Metrics/ClassLength:
Max: 350

# Offense count: 8
Metrics/CyclomaticComplexity:
Max: 60

# Offense count: 10
# Cop supports --auto-correct.
# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
# URISchemes: http, https
Metrics/LineLength:
Max: 140

# Offense count: 10
# Configuration parameters: CountComments, ExcludedMethods.
Metrics/MethodLength:
Max: 320

# Offense count: 1
# Configuration parameters: CountComments.
Metrics/ModuleLength:
Max: 600

# Offense count: 7
Metrics/PerceivedComplexity:
Max: 62

# Offense count: 1
# Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts, AllowedAcronyms.
# 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:
- 'src/modules/Proxy.rb'

# Offense count: 2
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
# AllowedNames: io, id, to, by, on, in, at, ip, db
Naming/UncommunicativeMethodParamName:
Exclude:
- 'src/modules/Proxy.rb'

# Offense count: 6
# Configuration parameters: EnforcedStyle.
# SupportedStyles: snake_case, camelCase
Naming/VariableName:
Exclude:
- 'src/include/proxy/dialogs.rb'

Naming/MethodName:
Enabled: false

# Offense count: 4
Style/Documentation:
Exclude:
- 'spec/**/*'
- 'test/**/*'
- 'src/include/proxy/dialogs.rb'
- 'src/lib/proxy/auto_client.rb'
- 'src/lib/proxy/client.rb'
- 'src/modules/Proxy.rb'


2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "yast/rake"

Yast::Tasks.configuration do |conf|
#lets ignore license check for now
# lets ignore license check for now
conf.skip_license_check << /.*/
end

0 comments on commit 212a874

Please sign in to comment.