Skip to content

Commit

Permalink
Merge pull request #37 from yast/reduce_profile
Browse files Browse the repository at this point in the history
Reduce profile
  • Loading branch information
jreidinger committed Jun 10, 2020
2 parents 24f9ad8 + fa9c6f9 commit c05a00b
Show file tree
Hide file tree
Showing 13 changed files with 602 additions and 525 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
8 changes: 7 additions & 1 deletion package/yast2-proxy.changes
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
-------------------------------------------------------------------
Tue May 12 14:38:07 UTC 2020 - josef Reidinger <jreidinger@localhost>
Tue Jun 9 20:31:51 UTC 2020 - Josef Reidinger <jreidinger@suse.com>

- Reduce autoyast profile size if proxy is disabled (bsc#1172749)
- 4.3.1

-------------------------------------------------------------------
Tue May 12 14:38:07 UTC 2020 - josef Reidinger <jreidinger@suse.com>

- Autoyast schema: Allow optional types for string and map objects
(bsc#1170886)
Expand Down
2 changes: 1 addition & 1 deletion package/yast2-proxy.spec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@


Name: yast2-proxy
Version: 4.3.0
Version: 4.3.1
Release: 0
Summary: YaST2 - Proxy Configuration
License: GPL-2.0-or-later
Expand Down
Loading

0 comments on commit c05a00b

Please sign in to comment.