puppet-debugger 0.15.2 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitlab-ci.yml +21 -45
- data/.rubocop.yml +64 -233
- data/.rubocop_todo.yml +89 -147
- data/.ruby-version +1 -1
- data/.vscode/launch.json +15 -0
- data/CHANGELOG.md +34 -2
- data/Gemfile +7 -5
- data/README.md +29 -261
- data/Rakefile +11 -12
- data/bin/pdb +1 -1
- data/lib/awesome_print/ext/awesome_puppet.rb +22 -8
- data/lib/plugins/puppet-debugger/input_responders/benchmark.rb +5 -4
- data/lib/plugins/puppet-debugger/input_responders/classes.rb +14 -2
- data/lib/plugins/puppet-debugger/input_responders/classification.rb +4 -2
- data/lib/plugins/puppet-debugger/input_responders/commands.rb +18 -18
- data/lib/plugins/puppet-debugger/input_responders/datatypes.rb +22 -6
- data/lib/plugins/puppet-debugger/input_responders/environment.rb +4 -2
- data/lib/plugins/puppet-debugger/input_responders/exit.rb +4 -2
- data/lib/plugins/puppet-debugger/input_responders/facterdb_filter.rb +4 -2
- data/lib/plugins/puppet-debugger/input_responders/facts.rb +4 -2
- data/lib/plugins/puppet-debugger/input_responders/functions.rb +34 -32
- data/lib/plugins/puppet-debugger/input_responders/help.rb +4 -2
- data/lib/plugins/puppet-debugger/input_responders/krt.rb +4 -2
- data/lib/plugins/puppet-debugger/input_responders/play.rb +22 -24
- data/lib/plugins/puppet-debugger/input_responders/reset.rb +5 -3
- data/lib/plugins/puppet-debugger/input_responders/resources.rb +16 -7
- data/lib/plugins/puppet-debugger/input_responders/set.rb +34 -32
- data/lib/plugins/puppet-debugger/input_responders/stacktrace.rb +23 -0
- data/lib/plugins/puppet-debugger/input_responders/types.rb +6 -2
- data/lib/plugins/puppet-debugger/input_responders/vars.rb +8 -7
- data/lib/plugins/puppet-debugger/input_responders/whereami.rb +5 -3
- data/lib/puppet-debugger.rb +1 -45
- data/lib/puppet-debugger/cli.rb +120 -92
- data/lib/puppet-debugger/code/code_file.rb +13 -14
- data/lib/puppet-debugger/code/code_range.rb +5 -3
- data/lib/puppet-debugger/code/loc.rb +1 -1
- data/lib/puppet-debugger/debugger_code.rb +2 -0
- data/lib/puppet-debugger/hooks.rb +15 -16
- data/lib/puppet-debugger/input_responder_plugin.rb +54 -52
- data/lib/puppet-debugger/monkey_patches.rb +57 -0
- data/lib/puppet-debugger/plugin_test_helper.rb +9 -8
- data/lib/puppet-debugger/support.rb +27 -17
- data/lib/puppet-debugger/support/environment.rb +10 -3
- data/lib/puppet-debugger/support/errors.rb +25 -27
- data/lib/puppet-debugger/support/facts.rb +5 -5
- data/lib/puppet-debugger/support/node.rb +4 -7
- data/lib/puppet-debugger/support/scope.rb +29 -0
- data/lib/puppet-debugger/trollop.rb +38 -31
- data/lib/puppet-debugger/version.rb +1 -1
- data/lib/puppet/application/debugger.rb +151 -126
- data/output.json +1 -0
- data/puppet-debugger.gemspec +17 -15
- data/spec/awesome_print/ext/awesome_puppet_spec.rb +30 -30
- data/spec/fixtures/pe-xl-core-0.puppet.vm.json +1 -0
- data/spec/fixtures/sample_start_debugger.pp +3 -2
- data/spec/hooks_spec.rb +33 -35
- data/spec/input_responder_plugin_spec.rb +7 -6
- data/spec/input_responders/benchmark_spec.rb +3 -1
- data/spec/input_responders/classes_spec.rb +12 -13
- data/spec/input_responders/classification_spec.rb +4 -2
- data/spec/input_responders/commands_spec.rb +2 -0
- data/spec/input_responders/datatypes_spec.rb +8 -2
- data/spec/input_responders/environment_spec.rb +2 -0
- data/spec/input_responders/exit_spec.rb +9 -11
- data/spec/input_responders/facterdb_filter_spec.rb +2 -0
- data/spec/input_responders/facts_spec.rb +2 -0
- data/spec/input_responders/functions_spec.rb +30 -28
- data/spec/input_responders/help_spec.rb +5 -3
- data/spec/input_responders/krt_spec.rb +3 -1
- data/spec/input_responders/play_spec.rb +10 -20
- data/spec/input_responders/reset_spec.rb +2 -0
- data/spec/input_responders/resources_spec.rb +7 -1
- data/spec/input_responders/set_spec.rb +3 -1
- data/spec/input_responders/stacktrace_spec.rb +15 -0
- data/spec/input_responders/types_spec.rb +2 -0
- data/spec/input_responders/vars_spec.rb +4 -4
- data/spec/input_responders/whereami_spec.rb +2 -0
- data/spec/pdb_spec.rb +0 -9
- data/spec/puppet/application/debugger_spec.rb +35 -17
- data/spec/puppet_debugger_spec.rb +81 -83
- data/spec/remote_node_spec.rb +1 -5
- data/spec/spec_helper.rb +22 -18
- data/spec/support_spec.rb +3 -5
- data/test_matrix.rb +1 -1
- metadata +53 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b0845f8505468609c82c613211f0c59d6c209782b6298a3828d1f6458fe7196e
|
4
|
+
data.tar.gz: a312b6f8a6268086dde82cf69698227fb510383934e53c19d61133526b750c02
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88c8428a4d75371639f614391b4ed71881c03a4a961b79a9ba413313ab7f6f1968e17da42fffdfb795da467b8ec6ef41ab3b3425d7a924e4e698cbcd51774166
|
7
|
+
data.tar.gz: 13dddc3c84e90cb2c873d60d400546109c0020eda7c913741ba874d19d23f8e0e88c682ddcf7f4dc84612f8468add43315698cd888e68380609e3226d10f96dd
|
data/.gitlab-ci.yml
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
include:
|
2
|
+
- template: Dependency-Scanning.gitlab-ci.yml
|
3
|
+
|
1
4
|
stages:
|
2
5
|
- validate
|
3
6
|
- test
|
@@ -12,7 +15,7 @@ stages:
|
|
12
15
|
- gem install bundler > /dev/null
|
13
16
|
- bundle install --without development validate
|
14
17
|
- bundle exec puppet module install puppetlabs-stdlib
|
15
|
-
- bundle exec
|
18
|
+
- bundle exec rspec
|
16
19
|
tags:
|
17
20
|
- ruby
|
18
21
|
|
@@ -21,7 +24,7 @@ web_trigger_staging:
|
|
21
24
|
variables:
|
22
25
|
REF: staging
|
23
26
|
only:
|
24
|
-
-
|
27
|
+
- main
|
25
28
|
script:
|
26
29
|
- "curl -X POST -F token=$PREPL_BUILD_TRIGGER_TOKEN -F ref=$REF https://gitlab.com/api/v3/projects/1146764/trigger/builds"
|
27
30
|
|
@@ -42,7 +45,7 @@ bump_and_tag:
|
|
42
45
|
tags:
|
43
46
|
- ruby2.2
|
44
47
|
only:
|
45
|
-
-
|
48
|
+
- main@puppet-debugger/puppet-debugger
|
46
49
|
script:
|
47
50
|
- gem install release_me
|
48
51
|
- bump_and_tag
|
@@ -58,25 +61,6 @@ bump_and_tag:
|
|
58
61
|
# script:
|
59
62
|
# - "curl -X POST -F token=$PREPL_BUILD_TRIGGER_TOKEN -F ref=$REF https://gitlab.com/api/v3/projects/1146764/trigger/builds"
|
60
63
|
|
61
|
-
.ruby_21: &ruby21
|
62
|
-
image: ruby:2.1
|
63
|
-
script:
|
64
|
-
- gem install bundler -v 1.17.3 > /dev/null
|
65
|
-
- bundle install --without development validate
|
66
|
-
- bundle exec puppet module install puppetlabs-stdlib
|
67
|
-
- bundle exec rake spec
|
68
|
-
|
69
|
-
.ruby_22: &ruby22
|
70
|
-
image: ruby:2.2
|
71
|
-
script:
|
72
|
-
- gem install bundler -v 1.17.3 > /dev/null
|
73
|
-
- bundle install --without development validate
|
74
|
-
- bundle exec puppet module install puppetlabs-stdlib
|
75
|
-
- bundle exec rake spec
|
76
|
-
|
77
|
-
.ruby_23: &ruby23
|
78
|
-
image: ruby:2.3
|
79
|
-
|
80
64
|
.ruby_24: &ruby24
|
81
65
|
image: ruby:2.4
|
82
66
|
|
@@ -86,6 +70,9 @@ bump_and_tag:
|
|
86
70
|
.ruby_26: &ruby26
|
87
71
|
image: ruby:2.6
|
88
72
|
|
73
|
+
.ruby_27: &ruby27
|
74
|
+
image: ruby:2.7
|
75
|
+
|
89
76
|
gem_production:
|
90
77
|
image: ruby:2.5
|
91
78
|
tags:
|
@@ -98,44 +85,33 @@ gem_production:
|
|
98
85
|
only:
|
99
86
|
- tags
|
100
87
|
|
101
|
-
|
102
|
-
variables:
|
103
|
-
PUPPET_GEM_VERSION: "~> 4.10"
|
104
|
-
<<: *puppet_job_def
|
105
|
-
<<: *ruby21
|
106
|
-
|
107
|
-
puppet_410_ruby24:
|
108
|
-
variables:
|
109
|
-
PUPPET_GEM_VERSION: "~> 4.10"
|
110
|
-
<<: *puppet_job_def
|
111
|
-
<<: *ruby24
|
112
|
-
|
113
|
-
puppet_55_ruby24:
|
88
|
+
puppet_5_ruby24:
|
114
89
|
variables:
|
115
90
|
PUPPET_GEM_VERSION: "~> 5.5"
|
116
91
|
<<: *puppet_job_def
|
117
92
|
<<: *ruby24
|
118
93
|
|
119
|
-
|
94
|
+
puppet_5_ruby25:
|
120
95
|
variables:
|
121
|
-
PUPPET_GEM_VERSION: "~>
|
96
|
+
PUPPET_GEM_VERSION: "~> 5.5"
|
122
97
|
<<: *puppet_job_def
|
123
98
|
<<: *ruby25
|
124
99
|
|
125
|
-
|
100
|
+
puppet_6_ruby25:
|
126
101
|
variables:
|
127
|
-
PUPPET_GEM_VERSION: "~> 6.
|
102
|
+
PUPPET_GEM_VERSION: "~> 6.0"
|
128
103
|
<<: *puppet_job_def
|
129
104
|
<<: *ruby25
|
130
105
|
|
131
|
-
|
106
|
+
puppet_6_ruby26:
|
132
107
|
variables:
|
133
|
-
PUPPET_GEM_VERSION: "~> 6.
|
108
|
+
PUPPET_GEM_VERSION: "~> 6.0"
|
134
109
|
<<: *puppet_job_def
|
135
|
-
<<: *
|
110
|
+
<<: *ruby26
|
136
111
|
|
137
|
-
|
112
|
+
puppet_6_ruby27:
|
113
|
+
allow_failure: true
|
138
114
|
variables:
|
139
|
-
PUPPET_GEM_VERSION: "~>
|
115
|
+
PUPPET_GEM_VERSION: "~> 6.0"
|
140
116
|
<<: *puppet_job_def
|
141
|
-
<<: *
|
117
|
+
<<: *ruby27
|
data/.rubocop.yml
CHANGED
@@ -1,241 +1,72 @@
|
|
1
1
|
inherit_from: .rubocop_todo.yml
|
2
|
-
# This configuration was generated by
|
3
|
-
# `rubocop --auto-gen-config`
|
4
|
-
# on 2016-11-22 23:40:05 -0800 using RuboCop version 0.45.0.
|
5
|
-
# The point is for the user to remove these configuration records
|
6
|
-
# one by one as the offenses are removed from the code base.
|
7
|
-
# Note that changes in the inspected code, or installation of new
|
8
|
-
# versions of RuboCop, may require this file to be generated again.
|
9
|
-
AllCops:
|
10
|
-
Include:
|
11
|
-
- spec
|
12
|
-
- lib/puppet
|
13
|
-
- lib/puppet-debugger
|
14
|
-
- lib/awesome_print
|
15
|
-
- lib/version.rb
|
16
|
-
- lib/puppet-debugger.rb
|
17
|
-
- bin
|
18
2
|
|
19
|
-
#
|
20
|
-
|
21
|
-
|
3
|
+
#inherit_from: .rubocop_todo.yml
|
4
|
+
|
5
|
+
# The behavior of RuboCop can be controlled via the .rubocop.yml
|
6
|
+
# configuration file. It makes it possible to enable/disable
|
7
|
+
# certain cops (checks) and to alter their behavior if they accept
|
8
|
+
# any parameters. The file can be placed either in your home
|
9
|
+
# directory or in some project directory.
|
10
|
+
#
|
11
|
+
# RuboCop will start looking for the configuration file in the directory
|
12
|
+
# where the inspected file is and continue its way up to the root directory.
|
13
|
+
#
|
14
|
+
# See https://docs.rubocop.org/rubocop/configuration
|
15
|
+
AllCops:
|
16
|
+
StyleGuideBaseURL: https://rubystyle.guide
|
17
|
+
TargetRubyVersion: 2.4
|
22
18
|
Exclude:
|
23
|
-
- '
|
24
|
-
- '
|
25
|
-
- '
|
19
|
+
- 'spec/fixtures/**/*'
|
20
|
+
- 'vendor/**/*'
|
21
|
+
- 'test_matrix.rb'
|
22
|
+
- 'lib/puppet-debugger/trollop.rb'
|
23
|
+
Style/ClassAndModuleChildren:
|
24
|
+
Exclude:
|
25
|
+
- 'lib/puppet-debugger/monkey_patches.rb'
|
26
26
|
- 'lib/puppet/application/debugger.rb'
|
27
|
-
|
28
|
-
|
29
|
-
# Cop supports --auto-correct.
|
30
|
-
Lint/Debugger:
|
27
|
+
- 'spec/spec_helper.rb'
|
28
|
+
Style/DoubleNegation:
|
31
29
|
Exclude:
|
32
|
-
-
|
30
|
+
- 'lib/puppet-debugger/debugger_code.rb'
|
33
31
|
|
34
|
-
|
32
|
+
Metrics/MethodLength:
|
33
|
+
Max: 45
|
34
|
+
Lint/Debugger:
|
35
35
|
Enabled: false
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
## Offense count: 1
|
45
|
-
#Lint/ElseLayout:
|
46
|
-
# Exclude:
|
47
|
-
# - 'lib/puppet-debugger/support/play.rb'
|
48
|
-
#
|
49
|
-
## Offense count: 10
|
50
|
-
## Cop supports --auto-correct.
|
51
|
-
## Configuration parameters: AlignWith, SupportedStyles, AutoCorrect.
|
52
|
-
## SupportedStyles: keyword, variable, start_of_line
|
53
|
-
#Lint/EndAlignment:
|
54
|
-
# Exclude:
|
55
|
-
# - 'lib/puppet-debugger/code/code_file.rb'
|
56
|
-
# - 'lib/puppet-debugger/code/code_range.rb'
|
57
|
-
# - 'lib/puppet-debugger/code/loc.rb'
|
58
|
-
# - 'lib/trollop.rb'
|
59
|
-
#
|
60
|
-
## Offense count: 3
|
61
|
-
#Lint/HandleExceptions:
|
62
|
-
# Exclude:
|
63
|
-
# - 'lib/puppet-debugger/support.rb'
|
64
|
-
# - 'lib/trollop.rb'
|
65
|
-
#
|
66
|
-
## Offense count: 1
|
67
|
-
#Lint/NestedMethodDefinition:
|
68
|
-
# Exclude:
|
69
|
-
# - 'lib/trollop.rb'
|
70
|
-
#
|
71
|
-
## Offense count: 1
|
72
|
-
#Lint/ShadowingOuterLocalVariable:
|
73
|
-
# Exclude:
|
74
|
-
# - 'lib/puppet-debugger/support/input_responders.rb'
|
75
|
-
#
|
76
|
-
## Offense count: 18
|
77
|
-
#Lint/UselessAssignment:
|
78
|
-
# Exclude:
|
79
|
-
# - 'lib/puppet-debugger/support.rb'
|
80
|
-
# - 'lib/puppet-debugger/support/environment.rb'
|
81
|
-
# - 'lib/puppet-debugger/support/errors.rb'
|
82
|
-
# - 'lib/puppet-debugger/support/functions.rb'
|
83
|
-
# - 'lib/puppet-debugger/support/input_responders.rb'
|
84
|
-
# - 'lib/puppet-debugger/support/node.rb'
|
85
|
-
# - 'lib/puppet-debugger/support/play.rb'
|
86
|
-
# - 'lib/puppet/application/debugger.rb'
|
87
|
-
# - 'spec/support_spec.rb'
|
88
|
-
#
|
89
|
-
## Offense count: 22
|
90
|
-
#Metrics/AbcSize:
|
91
|
-
# Max: 150
|
92
|
-
#
|
93
|
-
## Offense count: 4
|
94
|
-
## Configuration parameters: CountComments.
|
95
|
-
#Metrics/BlockLength:
|
96
|
-
# Max: 31
|
97
|
-
#
|
98
|
-
## Offense count: 3
|
99
|
-
#Metrics/BlockNesting:
|
100
|
-
# Max: 6
|
101
|
-
#
|
102
|
-
## Offense count: 4
|
103
|
-
## Configuration parameters: CountComments.
|
104
|
-
#Metrics/ClassLength:
|
105
|
-
# Max: 491
|
106
|
-
#
|
107
|
-
## Offense count: 12
|
108
|
-
#Metrics/CyclomaticComplexity:
|
109
|
-
# Max: 59
|
110
|
-
#
|
111
|
-
## Offense count: 152
|
112
|
-
## Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives.
|
113
|
-
## URISchemes: http, https
|
114
|
-
Metrics/LineLength:
|
115
|
-
Max: 586
|
36
|
+
Layout/LineLength:
|
37
|
+
Max: 129
|
38
|
+
Style/NumericPredicate:
|
39
|
+
Exclude:
|
40
|
+
- 'spec/**/*'
|
41
|
+
- lib/puppet-debugger/plugin_test_helper.rb
|
42
|
+
Metrics/BlockLength:
|
43
|
+
Max: 277
|
116
44
|
|
117
|
-
|
118
|
-
|
119
|
-
#
|
120
|
-
#
|
121
|
-
#
|
122
|
-
|
123
|
-
|
124
|
-
#
|
125
|
-
#
|
126
|
-
#
|
127
|
-
|
128
|
-
#
|
129
|
-
#
|
130
|
-
#
|
131
|
-
|
132
|
-
|
133
|
-
#
|
134
|
-
#
|
135
|
-
#
|
136
|
-
#
|
137
|
-
|
138
|
-
#
|
139
|
-
#
|
140
|
-
#
|
141
|
-
#
|
142
|
-
#
|
143
|
-
#
|
144
|
-
#
|
145
|
-
# - 'lib/puppet-debugger/support/scope.rb'
|
146
|
-
#
|
147
|
-
## Offense count: 2
|
148
|
-
## Configuration parameters: EnforcedStyle, SupportedStyles.
|
149
|
-
## SupportedStyles: nested, compact
|
150
|
-
#Style/ClassAndModuleChildren:
|
151
|
-
# Exclude:
|
152
|
-
# - 'lib/puppet/application/debugger.rb'
|
153
|
-
# - 'spec/spec_helper.rb'
|
154
|
-
#
|
155
|
-
## Offense count: 21
|
156
|
-
#Style/Documentation:
|
157
|
-
# Exclude:
|
158
|
-
# - 'spec/**/*'
|
159
|
-
# - 'test/**/*'
|
160
|
-
# - 'lib/awesome_print/ext/awesome_puppet.rb'
|
161
|
-
# - 'lib/puppet-debugger/cli.rb'
|
162
|
-
# - 'lib/puppet-debugger/code/code_file.rb'
|
163
|
-
# - 'lib/puppet-debugger/support.rb'
|
164
|
-
# - 'lib/puppet-debugger/support/compiler.rb'
|
165
|
-
# - 'lib/puppet-debugger/support/environment.rb'
|
166
|
-
# - 'lib/puppet-debugger/support/errors.rb'
|
167
|
-
# - 'lib/puppet-debugger/support/facts.rb'
|
168
|
-
# - 'lib/puppet-debugger/support/functions.rb'
|
169
|
-
# - 'lib/puppet-debugger/support/input_responders.rb'
|
170
|
-
# - 'lib/puppet-debugger/support/node.rb'
|
171
|
-
# - 'lib/puppet-debugger/support/play.rb'
|
172
|
-
# - 'lib/puppet-debugger/support/scope.rb'
|
173
|
-
# - 'lib/puppet/application/debugger.rb'
|
174
|
-
# - 'lib/trollop.rb'
|
175
|
-
#
|
176
|
-
## Offense count: 2
|
177
|
-
#Style/DoubleNegation:
|
178
|
-
# Exclude:
|
179
|
-
# - 'lib/puppet-debugger/debugger_code.rb'
|
180
|
-
#
|
181
|
-
## Offense count: 1
|
182
|
-
## Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts.
|
183
|
-
#Style/FileName:
|
184
|
-
# Exclude:
|
185
|
-
# - 'lib/puppet-debugger.rb'
|
186
|
-
#
|
187
|
-
## Offense count: 11
|
188
|
-
## Configuration parameters: MinBodyLength.
|
189
|
-
#Style/GuardClause:
|
190
|
-
# Exclude:
|
191
|
-
# - 'lib/puppet-debugger/cli.rb'
|
192
|
-
# - 'lib/puppet-debugger/support.rb'
|
193
|
-
# - 'lib/puppet-debugger/support/input_responders.rb'
|
194
|
-
# - 'lib/puppet-debugger/support/play.rb'
|
195
|
-
# - 'lib/trollop.rb'
|
196
|
-
# - 'puppet-debugger.gemspec'
|
197
|
-
#
|
198
|
-
## Offense count: 2
|
199
|
-
#Style/IdenticalConditionalBranches:
|
200
|
-
# Exclude:
|
201
|
-
# - 'lib/puppet-debugger/support/play.rb'
|
202
|
-
#
|
203
|
-
## Offense count: 1
|
204
|
-
## Cop supports --auto-correct.
|
205
|
-
#Style/MethodCallParentheses:
|
206
|
-
# Exclude:
|
207
|
-
# - 'spec/support_spec.rb'
|
208
|
-
#
|
209
|
-
## Offense count: 2
|
210
|
-
#Style/MethodMissing:
|
211
|
-
# Exclude:
|
212
|
-
# - 'lib/puppet-debugger/debugger_code.rb'
|
213
|
-
# - 'lib/trollop.rb'
|
214
|
-
#
|
215
|
-
## Offense count: 1
|
216
|
-
#Style/MultilineTernaryOperator:
|
217
|
-
# Exclude:
|
218
|
-
# - 'lib/puppet/application/debugger.rb'
|
219
|
-
#
|
220
|
-
## Offense count: 2
|
221
|
-
## Cop supports --auto-correct.
|
222
|
-
## Configuration parameters: AutoCorrect, EnforcedStyle, SupportedStyles.
|
223
|
-
## SupportedStyles: predicate, comparison
|
224
|
-
#Style/NumericPredicate:
|
225
|
-
# Exclude:
|
226
|
-
# - 'spec/**/*'
|
227
|
-
# - 'lib/puppet-debugger/code/code_range.rb'
|
228
|
-
#
|
229
|
-
## Offense count: 1
|
230
|
-
## Cop supports --auto-correct.
|
231
|
-
## Configuration parameters: AllowAsExpressionSeparator.
|
232
|
-
#Style/Semicolon:
|
233
|
-
# Exclude:
|
234
|
-
# - 'lib/puppet/application/debugger.rb'
|
235
|
-
#
|
236
|
-
## Offense count: 1
|
237
|
-
## Cop supports --auto-correct.
|
238
|
-
## Configuration parameters: AllowForAlignment.
|
239
|
-
#Style/SpaceAroundOperators:
|
240
|
-
# Exclude:
|
241
|
-
# - 'spec/support_spec.rb'
|
45
|
+
# Layout/EmptyLinesAroundAttributeAccessor:
|
46
|
+
# Enabled: false
|
47
|
+
# Layout/SpaceAroundMethodCallOperator:
|
48
|
+
# Enabled: false
|
49
|
+
# Lint/DeprecatedOpenSSLConstant:
|
50
|
+
# Enabled: false
|
51
|
+
# Lint/MixedRegexpCaptureTypes:
|
52
|
+
# Enabled: false
|
53
|
+
# Lint/RaiseException:
|
54
|
+
# Enabled: false
|
55
|
+
# Lint/StructNewOverride:
|
56
|
+
# Enabled: false
|
57
|
+
# Style/ExponentialNotation:
|
58
|
+
# Enabled: false
|
59
|
+
# Style/HashEachMethods:
|
60
|
+
# Enabled: false
|
61
|
+
# Style/HashTransformKeys:
|
62
|
+
# Enabled: false
|
63
|
+
# Style/HashTransformValues:
|
64
|
+
# Enabled: false
|
65
|
+
# Style/RedundantFetchBlock:
|
66
|
+
# Enabled: false
|
67
|
+
# Style/RedundantRegexpCharacterClass:
|
68
|
+
# Enabled: false
|
69
|
+
# Style/RedundantRegexpEscape:
|
70
|
+
# Enabled: false
|
71
|
+
# Style/SlicingWithRange:
|
72
|
+
# Enabled: false
|
data/.rubocop_todo.yml
CHANGED
@@ -1,205 +1,147 @@
|
|
1
1
|
# This configuration was generated by
|
2
2
|
# `rubocop --auto-gen-config`
|
3
|
-
# on
|
3
|
+
# on 2020-07-07 02:45:12 UTC using RuboCop version 0.86.0.
|
4
4
|
# The point is for the user to remove these configuration records
|
5
5
|
# one by one as the offenses are removed from the code base.
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
7
7
|
# versions of RuboCop, may require this file to be generated again.
|
8
8
|
|
9
|
-
# Offense count:
|
9
|
+
# Offense count: 19
|
10
10
|
# Cop supports --auto-correct.
|
11
|
-
# Configuration parameters:
|
12
|
-
#
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
# Offense count: 1
|
18
|
-
Lint/ElseLayout:
|
19
|
-
Exclude:
|
20
|
-
- "lib/puppet-debugger/support/play.rb"
|
21
|
-
|
22
|
-
# Offense count: 10
|
23
|
-
# Cop supports --auto-correct.
|
24
|
-
# Configuration parameters: AlignWith, SupportedStyles, AutoCorrect.
|
25
|
-
# SupportedStyles: keyword, variable, start_of_line
|
26
|
-
Lint/EndAlignment:
|
27
|
-
Exclude:
|
28
|
-
- "lib/puppet-debugger/code/code_file.rb"
|
29
|
-
- "lib/puppet-debugger/code/code_range.rb"
|
30
|
-
- "lib/puppet-debugger/code/loc.rb"
|
31
|
-
- "lib/trollop.rb"
|
11
|
+
# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
12
|
+
# URISchemes: http, https
|
13
|
+
Layout/LineLength:
|
14
|
+
Max: 238
|
15
|
+
Enabled: false
|
32
16
|
|
33
|
-
# Offense count:
|
34
|
-
|
17
|
+
# Offense count: 9
|
18
|
+
# Configuration parameters: AllowSafeAssignment.
|
19
|
+
Lint/AssignmentInCondition:
|
35
20
|
Exclude:
|
36
|
-
-
|
37
|
-
-
|
21
|
+
- 'lib/plugins/puppet-debugger/input_responders/set.rb'
|
22
|
+
- 'lib/puppet-debugger/cli.rb'
|
23
|
+
- 'lib/puppet-debugger/support.rb'
|
24
|
+
- 'lib/puppet/application/debugger.rb'
|
38
25
|
|
39
26
|
# Offense count: 1
|
40
|
-
Lint/
|
27
|
+
Lint/DuplicateMethods:
|
41
28
|
Exclude:
|
42
|
-
-
|
29
|
+
- 'lib/puppet-debugger/cli.rb'
|
43
30
|
|
44
31
|
# Offense count: 1
|
45
|
-
Lint/
|
32
|
+
Lint/ElseLayout:
|
46
33
|
Exclude:
|
47
|
-
-
|
34
|
+
- 'lib/plugins/puppet-debugger/input_responders/play.rb'
|
48
35
|
|
49
|
-
# Offense count:
|
50
|
-
Lint/
|
36
|
+
# Offense count: 1
|
37
|
+
Lint/RescueException:
|
51
38
|
Exclude:
|
52
|
-
-
|
53
|
-
- "lib/puppet-debugger/support/environment.rb"
|
54
|
-
- "lib/puppet-debugger/support/errors.rb"
|
55
|
-
- "lib/puppet-debugger/support/functions.rb"
|
56
|
-
- "lib/puppet-debugger/support/input_responders.rb"
|
57
|
-
- "lib/puppet-debugger/support/node.rb"
|
58
|
-
- "lib/puppet-debugger/support/play.rb"
|
59
|
-
- "lib/puppet/application/debugger.rb"
|
60
|
-
- "spec/support_spec.rb"
|
61
|
-
|
62
|
-
# Offense count: 22
|
63
|
-
Metrics/AbcSize:
|
64
|
-
Max: 150
|
39
|
+
- 'lib/puppet/application/debugger.rb'
|
65
40
|
|
66
|
-
|
67
|
-
|
41
|
+
# Offense count: 2
|
42
|
+
# Lint/ShadowingOuterLocalVariable:
|
43
|
+
# Exclude:
|
44
|
+
# - 'lib/plugins/puppet-debugger/input_responders/commands.rb'
|
45
|
+
# - 'lib/puppet-debugger/support/environment.rb'
|
68
46
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
- puppet-debugger.gemspec
|
74
|
-
# Offense count: 3
|
75
|
-
# Configuration parameters: CountComments.
|
76
|
-
Metrics/BlockLength:
|
77
|
-
Max: 518
|
47
|
+
# Offense count: 32
|
48
|
+
# Configuration parameters: IgnoredMethods.
|
49
|
+
Metrics/AbcSize:
|
50
|
+
Max: 57
|
78
51
|
|
79
|
-
# Offense count:
|
52
|
+
# Offense count: 1
|
53
|
+
# Configuration parameters: CountBlocks.
|
80
54
|
Metrics/BlockNesting:
|
81
|
-
Max:
|
55
|
+
Max: 4
|
82
56
|
|
83
|
-
# Offense count:
|
57
|
+
# Offense count: 3
|
84
58
|
# Configuration parameters: CountComments.
|
85
59
|
Metrics/ClassLength:
|
86
|
-
Max:
|
60
|
+
Max: 245
|
87
61
|
|
88
|
-
# Offense count:
|
62
|
+
# Offense count: 9
|
63
|
+
# Configuration parameters: IgnoredMethods.
|
89
64
|
Metrics/CyclomaticComplexity:
|
90
|
-
Max:
|
91
|
-
|
92
|
-
# Offense count: 30
|
93
|
-
# Configuration parameters: CountComments.
|
94
|
-
Metrics/MethodLength:
|
95
|
-
Max: 100
|
65
|
+
Max: 17
|
96
66
|
|
97
|
-
# Offense count:
|
67
|
+
# Offense count: 1
|
98
68
|
# Configuration parameters: CountComments.
|
99
69
|
Metrics/ModuleLength:
|
100
|
-
Max:
|
70
|
+
Max: 118
|
101
71
|
|
102
|
-
# Offense count:
|
72
|
+
# Offense count: 8
|
73
|
+
# Configuration parameters: IgnoredMethods.
|
103
74
|
Metrics/PerceivedComplexity:
|
104
|
-
Max:
|
75
|
+
Max: 15
|
105
76
|
|
106
|
-
# Offense count:
|
107
|
-
|
108
|
-
Performance/RedundantMatch:
|
77
|
+
# # Offense count: 9
|
78
|
+
Naming/AccessorMethodName:
|
109
79
|
Exclude:
|
110
|
-
-
|
80
|
+
- 'lib/plugins/puppet-debugger/input_responders/set.rb'
|
81
|
+
- 'lib/puppet-debugger/support/compiler.rb'
|
82
|
+
- 'lib/puppet-debugger/support/environment.rb'
|
83
|
+
- 'lib/puppet-debugger/support/facts.rb'
|
84
|
+
- 'lib/puppet-debugger/support/node.rb'
|
85
|
+
- 'lib/puppet-debugger/support/scope.rb'
|
111
86
|
|
112
|
-
# Offense count:
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
- "lib/puppet-debugger/support/environment.rb"
|
117
|
-
- "lib/puppet-debugger/support/facts.rb"
|
118
|
-
- "lib/puppet-debugger/support/input_responders.rb"
|
119
|
-
- "lib/puppet-debugger/support/node.rb"
|
120
|
-
- "lib/puppet-debugger/support/scope.rb"
|
121
|
-
|
122
|
-
# Offense count: 2
|
123
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
124
|
-
# SupportedStyles: nested, compact
|
125
|
-
Style/ClassAndModuleChildren:
|
87
|
+
# Offense count: 1
|
88
|
+
# Configuration parameters: ExpectMatchingDefinition, CheckDefinitionPathHierarchy, Regex, IgnoreExecutableScripts, AllowedAcronyms.
|
89
|
+
# 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
|
90
|
+
Naming/FileName:
|
126
91
|
Exclude:
|
127
|
-
-
|
128
|
-
- "spec/spec_helper.rb"
|
92
|
+
- 'lib/puppet-debugger.rb'
|
129
93
|
|
130
|
-
# Offense count:
|
94
|
+
# Offense count: 39
|
131
95
|
Style/Documentation:
|
132
|
-
|
133
|
-
- "spec/**/*"
|
134
|
-
- "test/**/*"
|
135
|
-
- "lib/awesome_print/ext/awesome_puppet.rb"
|
136
|
-
- "lib/puppet-debugger/cli.rb"
|
137
|
-
- "lib/puppet-debugger/code/code_file.rb"
|
138
|
-
- "lib/puppet-debugger/support.rb"
|
139
|
-
- "lib/puppet-debugger/support/compiler.rb"
|
140
|
-
- "lib/puppet-debugger/support/environment.rb"
|
141
|
-
- "lib/puppet-debugger/support/errors.rb"
|
142
|
-
- "lib/puppet-debugger/support/facts.rb"
|
143
|
-
- "lib/puppet-debugger/support/functions.rb"
|
144
|
-
- "lib/puppet-debugger/support/input_responders.rb"
|
145
|
-
- "lib/puppet-debugger/support/node.rb"
|
146
|
-
- "lib/puppet-debugger/support/play.rb"
|
147
|
-
- "lib/puppet-debugger/support/scope.rb"
|
148
|
-
- "lib/puppet/application/debugger.rb"
|
149
|
-
- "lib/trollop.rb"
|
96
|
+
Enabled: false
|
150
97
|
|
151
98
|
# Offense count: 2
|
152
|
-
|
99
|
+
# Configuration parameters: EnforcedStyle.
|
100
|
+
# SupportedStyles: allowed_in_returns, forbidden
|
101
|
+
|
102
|
+
# Offense count: 4
|
103
|
+
# Configuration parameters: EnforcedStyle.
|
104
|
+
# SupportedStyles: annotated, template, unannotated
|
105
|
+
Style/FormatStringToken:
|
153
106
|
Exclude:
|
154
|
-
-
|
107
|
+
- 'lib/plugins/puppet-debugger/input_responders/commands.rb'
|
108
|
+
- 'lib/puppet-debugger/support/scope.rb'
|
155
109
|
|
156
|
-
# Offense count:
|
110
|
+
# Offense count: 5
|
157
111
|
# Configuration parameters: MinBodyLength.
|
158
112
|
Style/GuardClause:
|
159
113
|
Exclude:
|
160
|
-
-
|
161
|
-
-
|
162
|
-
-
|
163
|
-
-
|
164
|
-
-
|
165
|
-
- puppet-debugger.gemspec
|
114
|
+
- 'lib/plugins/puppet-debugger/input_responders/benchmark.rb'
|
115
|
+
- 'lib/plugins/puppet-debugger/input_responders/play.rb'
|
116
|
+
- 'lib/plugins/puppet-debugger/input_responders/whereami.rb'
|
117
|
+
- 'lib/puppet-debugger/support.rb'
|
118
|
+
- 'puppet-debugger.gemspec'
|
166
119
|
|
167
|
-
# Offense count:
|
168
|
-
|
120
|
+
# Offense count: 1
|
121
|
+
# Configuration parameters: AllowIfModifier.
|
122
|
+
Style/IfInsideElse:
|
169
123
|
Exclude:
|
170
|
-
-
|
124
|
+
- 'spec/input_responders/datatypes_spec.rb'
|
171
125
|
|
172
126
|
# Offense count: 2
|
173
|
-
|
127
|
+
# Cop supports --auto-correct.
|
128
|
+
Style/IfUnlessModifier:
|
174
129
|
Exclude:
|
175
|
-
-
|
176
|
-
-
|
130
|
+
- 'lib/puppet-debugger/support/scope.rb'
|
131
|
+
- 'lib/puppet/application/debugger.rb'
|
132
|
+
- 'lib/puppet-debugger/hooks.rb'
|
177
133
|
|
178
134
|
# Offense count: 1
|
179
|
-
Style/
|
180
|
-
Exclude:
|
181
|
-
- "lib/puppet/application/debugger.rb"
|
182
|
-
|
183
|
-
# Offense count: 2
|
184
|
-
# Cop supports --auto-correct.
|
185
|
-
# Configuration parameters: AutoCorrect, EnforcedStyle, SupportedStyles.
|
186
|
-
# SupportedStyles: predicate, comparison
|
187
|
-
Style/NumericPredicate:
|
135
|
+
Style/MethodMissingSuper:
|
188
136
|
Exclude:
|
189
|
-
-
|
190
|
-
- "lib/puppet-debugger/code/code_range.rb"
|
137
|
+
- 'lib/puppet-debugger/debugger_code.rb'
|
191
138
|
|
192
|
-
# Offense count:
|
193
|
-
|
194
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles, AllowInnerSlashes.
|
195
|
-
# SupportedStyles: slashes, percent_r, mixed
|
196
|
-
Style/RegexpLiteral:
|
139
|
+
# Offense count: 1
|
140
|
+
Style/MissingRespondToMissing:
|
197
141
|
Exclude:
|
198
|
-
-
|
142
|
+
- 'lib/puppet-debugger/debugger_code.rb'
|
199
143
|
|
200
144
|
# Offense count: 1
|
201
|
-
|
202
|
-
# Configuration parameters: AllowAsExpressionSeparator.
|
203
|
-
Style/Semicolon:
|
145
|
+
Style/MultilineBlockChain:
|
204
146
|
Exclude:
|
205
|
-
-
|
147
|
+
- 'lib/plugins/puppet-debugger/input_responders/functions.rb'
|