openstudio-analysis 1.0.0.rc19 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/.gitlab-ci.yml +20 -0
  4. data/.rubocop.yml +2 -133
  5. data/.travis.yml +2 -2
  6. data/CHANGELOG.md +6 -32
  7. data/Gemfile +9 -6
  8. data/README.md +15 -7
  9. data/Rakefile +38 -3
  10. data/lib/openstudio-analysis.rb +35 -0
  11. data/lib/openstudio/analysis.rb +35 -0
  12. data/lib/openstudio/analysis/algorithm_attributes.rb +36 -1
  13. data/lib/openstudio/analysis/formulation.rb +41 -6
  14. data/lib/openstudio/analysis/server_api.rb +46 -23
  15. data/lib/openstudio/analysis/support_files.rb +40 -0
  16. data/lib/openstudio/analysis/translator/datapoints.rb +39 -4
  17. data/lib/openstudio/analysis/translator/excel.rb +43 -8
  18. data/lib/openstudio/analysis/translator/workflow.rb +49 -5
  19. data/lib/openstudio/analysis/version.rb +36 -1
  20. data/lib/openstudio/analysis/workflow.rb +37 -2
  21. data/lib/openstudio/analysis/workflow_step.rb +35 -0
  22. data/lib/openstudio/helpers/hash.rb +35 -0
  23. data/lib/openstudio/helpers/string.rb +36 -2
  24. data/lib/openstudio/weather/epw.rb +31 -16
  25. data/openstudio-analysis.gemspec +4 -4
  26. data/spec/files/0_3_7_worker_init_final.xlsx +0 -0
  27. data/spec/files/analysis/examples/medium_office_example.json +2 -1
  28. data/spec/files/worker_init/second_file.sh +4 -0
  29. data/spec/integration/server_api_spec.rb +35 -0
  30. data/spec/openstudio/excel_spec.rb +36 -1
  31. data/spec/openstudio/formulation_spec.rb +46 -3
  32. data/spec/openstudio/hash_spec.rb +37 -2
  33. data/spec/openstudio/osw_spec.rb +37 -2
  34. data/spec/openstudio/server_api_spec.rb +43 -0
  35. data/spec/openstudio/string_spec.rb +34 -0
  36. data/spec/openstudio/support_files_spec.rb +39 -4
  37. data/spec/openstudio/weather_spec.rb +35 -0
  38. data/spec/openstudio/workflow_spec.rb +36 -1
  39. data/spec/openstudio/workflow_step_spec.rb +46 -6
  40. data/spec/spec_helper.rb +4 -2
  41. data/update_license.rb +119 -0
  42. metadata +29 -28
  43. data/rubocop-todo.yml +0 -246
  44. data/spec/files/worker_init/second_file.rb +0 -15
@@ -1,3 +1,38 @@
1
+ # *******************************************************************************
2
+ # OpenStudio(R), Copyright (c) 2008-2018, Alliance for Sustainable Energy, LLC.
3
+ # All rights reserved.
4
+ # Redistribution and use in source and binary forms, with or without
5
+ # modification, are permitted provided that the following conditions are met:
6
+ #
7
+ # (1) Redistributions of source code must retain the above copyright notice,
8
+ # this list of conditions and the following disclaimer.
9
+ #
10
+ # (2) Redistributions in binary form must reproduce the above copyright notice,
11
+ # this list of conditions and the following disclaimer in the documentation
12
+ # and/or other materials provided with the distribution.
13
+ #
14
+ # (3) Neither the name of the copyright holder nor the names of any contributors
15
+ # may be used to endorse or promote products derived from this software without
16
+ # specific prior written permission from the respective party.
17
+ #
18
+ # (4) Other than as required in clauses (1) and (2), distributions in any form
19
+ # of modifications or other derivative works may not use the "OpenStudio"
20
+ # trademark, "OS", "os", or any other confusingly similar designation without
21
+ # specific prior written permission from Alliance for Sustainable Energy, LLC.
22
+ #
23
+ # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
24
+ # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25
+ # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
26
+ # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER, THE UNITED STATES
27
+ # GOVERNMENT, OR ANY CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
28
+ # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
29
+ # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
30
+ # PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
31
+ # LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
32
+ # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
33
+ # EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34
+ # *******************************************************************************
35
+
1
36
  require 'spec_helper'
2
37
 
3
38
  describe OpenStudio::Analysis::WorkflowStep do
@@ -13,7 +48,8 @@ describe OpenStudio::Analysis::WorkflowStep do
13
48
  'my_instance',
14
49
  'my instance display name',
15
50
  h,
16
- JSON.parse(File.read(h), symbolize_names: true))
51
+ JSON.parse(File.read(h), symbolize_names: true)
52
+ )
17
53
  puts s
18
54
  end
19
55
 
@@ -23,7 +59,8 @@ describe OpenStudio::Analysis::WorkflowStep do
23
59
  'my_instance',
24
60
  'my instance display name',
25
61
  h,
26
- JSON.parse(File.read(h), symbolize_names: true))
62
+ JSON.parse(File.read(h), symbolize_names: true)
63
+ )
27
64
 
28
65
  expect(measure.name).to eq 'my_instance'
29
66
  v = {
@@ -31,7 +68,7 @@ describe OpenStudio::Analysis::WorkflowStep do
31
68
  minimum: 'low string',
32
69
  maximum: 'high string',
33
70
  mean: 'middle string',
34
- values: %w(a b c d),
71
+ values: ['a', 'b', 'c', 'd'],
35
72
  weights: [0.25, 0.25, 0.25, 0.25]
36
73
  }
37
74
  r = measure.make_variable('cooling_sch', 'my variable', v)
@@ -44,7 +81,8 @@ describe OpenStudio::Analysis::WorkflowStep do
44
81
  'my_instance',
45
82
  'my instance display name',
46
83
  h,
47
- JSON.parse(File.read(h), symbolize_names: true))
84
+ JSON.parse(File.read(h), symbolize_names: true)
85
+ )
48
86
 
49
87
  expect(measure.name).to eq 'my_instance'
50
88
  v = {
@@ -72,7 +110,8 @@ describe OpenStudio::Analysis::WorkflowStep do
72
110
  'my_instance',
73
111
  'my instance display name',
74
112
  h,
75
- JSON.parse(File.read(h), symbolize_names: true))
113
+ JSON.parse(File.read(h), symbolize_names: true)
114
+ )
76
115
 
77
116
  expect(measure.name).to eq 'my_instance'
78
117
  v = {
@@ -97,7 +136,8 @@ describe OpenStudio::Analysis::WorkflowStep do
97
136
  'my_instance',
98
137
  'my instance display name',
99
138
  h,
100
- JSON.parse(File.read(h), symbolize_names: true))
139
+ JSON.parse(File.read(h), symbolize_names: true)
140
+ )
101
141
 
102
142
  expect(measure.name).to eq 'my_instance'
103
143
  v = {
data/spec/spec_helper.rb CHANGED
@@ -1,5 +1,7 @@
1
- require 'coveralls'
2
- Coveralls.wear!
1
+ if RUBY_PLATFORM =~ /linux/
2
+ require 'coveralls'
3
+ Coveralls.wear!
4
+ end
3
5
 
4
6
  $LOAD_PATH.unshift(File.dirname(__FILE__))
5
7
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
data/update_license.rb ADDED
@@ -0,0 +1,119 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ ruby_regex = /^#.\*{79}.*#.\*{79}$/m
4
+ erb_regex = /^<%.*#.\*{79}.*#.\*{79}.%>$/m
5
+ js_regex = /^\/\* @preserve.*Copyright.*license.{2}\*\//m
6
+
7
+ ruby_header_text = <<EOT
8
+ # *******************************************************************************
9
+ # OpenStudio(R), Copyright (c) 2008-2018, Alliance for Sustainable Energy, LLC.
10
+ # All rights reserved.
11
+ # Redistribution and use in source and binary forms, with or without
12
+ # modification, are permitted provided that the following conditions are met:
13
+ #
14
+ # (1) Redistributions of source code must retain the above copyright notice,
15
+ # this list of conditions and the following disclaimer.
16
+ #
17
+ # (2) Redistributions in binary form must reproduce the above copyright notice,
18
+ # this list of conditions and the following disclaimer in the documentation
19
+ # and/or other materials provided with the distribution.
20
+ #
21
+ # (3) Neither the name of the copyright holder nor the names of any contributors
22
+ # may be used to endorse or promote products derived from this software without
23
+ # specific prior written permission from the respective party.
24
+ #
25
+ # (4) Other than as required in clauses (1) and (2), distributions in any form
26
+ # of modifications or other derivative works may not use the "OpenStudio"
27
+ # trademark, "OS", "os", or any other confusingly similar designation without
28
+ # specific prior written permission from Alliance for Sustainable Energy, LLC.
29
+ #
30
+ # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
31
+ # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
32
+ # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
33
+ # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER, THE UNITED STATES
34
+ # GOVERNMENT, OR ANY CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
35
+ # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
36
+ # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
37
+ # PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
38
+ # LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
39
+ # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
40
+ # EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
41
+ # *******************************************************************************
42
+ EOT
43
+ ruby_header_text.strip!
44
+
45
+ erb_header_text = <<EOT
46
+ <%
47
+ # *******************************************************************************
48
+ # OpenStudio(R), Copyright (c) 2008-2018, Alliance for Sustainable Energy, LLC.
49
+ # All rights reserved.
50
+ # Redistribution and use in source and binary forms, with or without
51
+ # modification, are permitted provided that the following conditions are met:
52
+ #
53
+ # (1) Redistributions of source code must retain the above copyright notice,
54
+ # this list of conditions and the following disclaimer.
55
+ #
56
+ # (2) Redistributions in binary form must reproduce the above copyright notice,
57
+ # this list of conditions and the following disclaimer in the documentation
58
+ # and/or other materials provided with the distribution.
59
+ #
60
+ # (3) Neither the name of the copyright holder nor the names of any contributors
61
+ # may be used to endorse or promote products derived from this software without
62
+ # specific prior written permission from the respective party.
63
+ #
64
+ # (4) Other than as required in clauses (1) and (2), distributions in any form
65
+ # of modifications or other derivative works may not use the "OpenStudio"
66
+ # trademark, "OS", "os", or any other confusingly similar designation without
67
+ # specific prior written permission from Alliance for Sustainable Energy, LLC.
68
+ #
69
+ # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
70
+ # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
71
+ # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
72
+ # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER, THE UNITED STATES
73
+ # GOVERNMENT, OR ANY CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
74
+ # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
75
+ # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
76
+ # PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
77
+ # LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
78
+ # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
79
+ # EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
80
+ # *******************************************************************************
81
+ %>
82
+ EOT
83
+ erb_header_text.strip!
84
+
85
+ js_header_text = <<EOT
86
+ /* @preserve
87
+ * OpenStudio(R), Copyright (c) 2008-2018, Alliance for Sustainable Energy, LLC. All rights reserved.
88
+ * Use of this source code is governed by a BSD-style license that can be found at openstudio.net/license.
89
+ */
90
+ EOT
91
+ js_header_text.strip!
92
+
93
+ paths = [
94
+ { glob: 'lib/**/*.rb', license: ruby_header_text, regex: ruby_regex },
95
+ { glob: 'spec/openstudio/**/*.rb', license: ruby_header_text, regex: ruby_regex },
96
+ { glob: 'spec/integration/**/*.rb', license: ruby_header_text, regex: ruby_regex },
97
+
98
+ # single files
99
+ { glob: 'Rakefile', license: ruby_header_text, regex: ruby_regex }
100
+ ]
101
+
102
+ paths.each do |path|
103
+ Dir[path[:glob]].each do |file|
104
+ puts "Updating license in file #{file}"
105
+
106
+ f = File.read(file)
107
+ if f =~ path[:regex]
108
+ puts ' License found -- updating'
109
+ File.open(file, 'w') { |write| write << f.gsub(path[:regex], path[:license]) }
110
+ else
111
+ puts ' No license found -- adding'
112
+ if f =~ /#!/
113
+ puts ' CANNOT add license to file automatically, add it manually and it will update automatically in the future'
114
+ next
115
+ end
116
+ File.open(file, 'w') { |write| write << f.insert(0, path[:license] + "\n\n") }
117
+ end
118
+ end
119
+ end
metadata CHANGED
@@ -1,113 +1,113 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openstudio-analysis
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.rc19
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicholas Long
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-16 00:00:00.000000000 Z
11
+ date: 2018-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: faraday
14
+ name: bcl
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.8'
19
+ version: 0.5.7
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0.8'
26
+ version: 0.5.7
27
27
  - !ruby/object:Gem::Dependency
28
- name: nokogiri
28
+ name: dencity
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 1.6.8
33
+ version: 0.1.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 1.6.8
40
+ version: 0.1.0
41
41
  - !ruby/object:Gem::Dependency
42
- name: roo
42
+ name: faraday
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '2.4'
47
+ version: '0.8'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '2.4'
54
+ version: '0.8'
55
55
  - !ruby/object:Gem::Dependency
56
- name: rubyzip
56
+ name: nokogiri
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '1.2'
61
+ version: 1.6.8
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '1.2'
68
+ version: 1.6.8
69
69
  - !ruby/object:Gem::Dependency
70
- name: semantic
70
+ name: roo
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '1.4'
75
+ version: '2.4'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '1.4'
82
+ version: '2.4'
83
83
  - !ruby/object:Gem::Dependency
84
- name: bcl
84
+ name: rubyzip
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 0.5.7
89
+ version: '1.2'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 0.5.7
96
+ version: '1.2'
97
97
  - !ruby/object:Gem::Dependency
98
- name: dencity
98
+ name: semantic
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 0.1.0
103
+ version: '1.4'
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 0.1.0
110
+ version: '1.4'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: bundler
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -144,6 +144,7 @@ extensions: []
144
144
  extra_rdoc_files: []
145
145
  files:
146
146
  - ".gitignore"
147
+ - ".gitlab-ci.yml"
147
148
  - ".rubocop.yml"
148
149
  - ".travis.yml"
149
150
  - CHANGELOG.md
@@ -168,7 +169,6 @@ files:
168
169
  - lib/openstudio/helpers/string.rb
169
170
  - lib/openstudio/weather/epw.rb
170
171
  - openstudio-analysis.gemspec
171
- - rubocop-todo.yml
172
172
  - spec/files/0_1_09_no_variables.xlsx
173
173
  - spec/files/0_1_09_outputvars.xlsx
174
174
  - spec/files/0_1_09_setup_version_2.xlsx
@@ -230,7 +230,7 @@ files:
230
230
  - spec/files/partial_weather_2.epw
231
231
  - spec/files/small_seed.osm
232
232
  - spec/files/worker_init/first_file.rb
233
- - spec/files/worker_init/second_file.rb
233
+ - spec/files/worker_init/second_file.sh
234
234
  - spec/files/workflow/analysis.osa
235
235
  - spec/files/workflow/datapoint_0.osd
236
236
  - spec/files/workflow/datapoint_1.osd
@@ -252,6 +252,7 @@ files:
252
252
  - spec/schema/osd.json
253
253
  - spec/schema/osd.png
254
254
  - spec/spec_helper.rb
255
+ - update_license.rb
255
256
  homepage: http://openstudio.nrel.gov
256
257
  licenses:
257
258
  - LGPL
@@ -264,7 +265,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
264
265
  requirements:
265
266
  - - ">="
266
267
  - !ruby/object:Gem::Version
267
- version: '2.0'
268
+ version: '2.1'
268
269
  required_rubygems_version: !ruby/object:Gem::Requirement
269
270
  requirements:
270
271
  - - ">="
@@ -272,7 +273,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
272
273
  version: 1.3.6
273
274
  requirements: []
274
275
  rubyforge_project:
275
- rubygems_version: 2.6.10
276
+ rubygems_version: 2.4.5.1
276
277
  signing_key:
277
278
  specification_version: 4
278
279
  summary: Create JSON, ZIP to communicate with OpenStudio Distributed Analysis in the
@@ -339,7 +340,7 @@ test_files:
339
340
  - spec/files/partial_weather_2.epw
340
341
  - spec/files/small_seed.osm
341
342
  - spec/files/worker_init/first_file.rb
342
- - spec/files/worker_init/second_file.rb
343
+ - spec/files/worker_init/second_file.sh
343
344
  - spec/files/workflow/analysis.osa
344
345
  - spec/files/workflow/datapoint_0.osd
345
346
  - spec/files/workflow/datapoint_1.osd
data/rubocop-todo.yml DELETED
@@ -1,246 +0,0 @@
1
- # This configuration was generated by `rubocop --auto-gen-config`
2
- # on 2014-04-29 00:01:18 -0600 using RuboCop version 0.20.1.
3
- # The point is for the user to remove these configuration records
4
- # one by one as the offenses are removed from the code base.
5
- # Note that changes in the inspected code, or installation of new
6
- # versions of RuboCop, may require this file to be generated again.
7
-
8
- # Offense count: 3
9
- AccessorMethodName:
10
- Enabled: false
11
-
12
- # Offense count: 7
13
- # Cop supports --auto-correct.
14
- AndOr:
15
- Enabled: false
16
-
17
- # Offense count: 6
18
- BlockNesting:
19
- Max: 6
20
-
21
- # Offense count: 1
22
- # Cop supports --auto-correct.
23
- # Configuration parameters: EnforcedStyle, SupportedStyles.
24
- BracesAroundHashParameters:
25
- Enabled: false
26
-
27
- # Offense count: 4
28
- # Configuration parameters: IndentWhenRelativeTo, SupportedStyles, IndentOneStep.
29
- CaseIndentation:
30
- Enabled: false
31
-
32
- # Offense count: 3
33
- # Configuration parameters: CountComments.
34
- ClassLength:
35
- Max: 569
36
-
37
- # Offense count: 1
38
- # Cop supports --auto-correct.
39
- # Configuration parameters: PreferredMethods.
40
- CollectionMethods:
41
- Enabled: false
42
-
43
- # Offense count: 7
44
- # Cop supports --auto-correct.
45
- ColonMethodCall:
46
- Enabled: false
47
-
48
- # Offense count: 4
49
- # Configuration parameters: Keywords.
50
- CommentAnnotation:
51
- Enabled: false
52
-
53
- # Offense count: 6
54
- CyclomaticComplexity:
55
- Max: 46
56
-
57
- # Offense count: 6
58
- # Cop supports --auto-correct.
59
- DefWithParentheses:
60
- Enabled: false
61
-
62
- # Offense count: 12
63
- # Cop supports --auto-correct.
64
- DeprecatedClassMethods:
65
- Enabled: false
66
-
67
- # Offense count: 4
68
- Documentation:
69
- Enabled: false
70
-
71
- # Offense count: 4
72
- # Configuration parameters: EnforcedStyle, SupportedStyles.
73
- DotPosition:
74
- Enabled: false
75
-
76
- # Offense count: 4
77
- # Cop supports --auto-correct.
78
- EmptyLines:
79
- Enabled: false
80
-
81
- # Offense count: 7
82
- # Cop supports --auto-correct.
83
- EmptyLinesAroundBody:
84
- Enabled: false
85
-
86
- # Offense count: 1
87
- EndOfLine:
88
- Enabled: false
89
-
90
- # Offense count: 3
91
- Eval:
92
- Enabled: false
93
-
94
- # Offense count: 1
95
- # Configuration parameters: Exclude.
96
- FileName:
97
- Enabled: false
98
-
99
- # Offense count: 3
100
- # Configuration parameters: EnforcedStyle, SupportedStyles.
101
- FormatString:
102
- Enabled: false
103
-
104
- # Offense count: 92
105
- # Cop supports --auto-correct.
106
- # Configuration parameters: EnforcedStyle, SupportedStyles.
107
- HashSyntax:
108
- Enabled: false
109
-
110
- # Offense count: 1
111
- # Configuration parameters: MaxLineLength.
112
- IfUnlessModifier:
113
- Enabled: false
114
-
115
- # Offense count: 1
116
- # Cop supports --auto-correct.
117
- IndentationConsistency:
118
- Enabled: false
119
-
120
- # Offense count: 1
121
- # Cop supports --auto-correct.
122
- IndentationWidth:
123
- Enabled: false
124
-
125
- # Offense count: 95
126
- # Cop supports --auto-correct.
127
- LeadingCommentSpace:
128
- Enabled: false
129
-
130
- # Offense count: 283
131
- LineLength:
132
- Max: 399
133
-
134
- # Offense count: 9
135
- # Cop supports --auto-correct.
136
- MethodCallParentheses:
137
- Enabled: false
138
-
139
- # Offense count: 17
140
- # Configuration parameters: CountComments.
141
- MethodLength:
142
- Max: 246
143
-
144
- # Offense count: 1
145
- MultilineTernaryOperator:
146
- Enabled: false
147
-
148
- # Offense count: 24
149
- # Cop supports --auto-correct.
150
- NegatedIf:
151
- Enabled: false
152
-
153
- # Offense count: 1
154
- # Cop supports --auto-correct.
155
- NonNilCheck:
156
- Enabled: false
157
-
158
- # Offense count: 20
159
- # Cop supports --auto-correct.
160
- Not:
161
- Enabled: false
162
-
163
- # Offense count: 1
164
- # Configuration parameters: SupportedStyles.
165
- RaiseArgs:
166
- EnforcedStyle: compact
167
-
168
- # Offense count: 3
169
- # Cop supports --auto-correct.
170
- # Configuration parameters: AllowMultipleReturnValues.
171
- RedundantReturn:
172
- Enabled: false
173
-
174
- # Offense count: 2
175
- # Cop supports --auto-correct.
176
- RedundantSelf:
177
- Enabled: false
178
-
179
- # Offense count: 1
180
- # Configuration parameters: MaxSlashes.
181
- RegexpLiteral:
182
- Enabled: false
183
-
184
- # Offense count: 1
185
- RescueException:
186
- Enabled: false
187
-
188
- # Offense count: 2
189
- SelfAssignment:
190
- Enabled: false
191
-
192
- # Offense count: 40
193
- # Cop supports --auto-correct.
194
- # Configuration parameters: EnforcedStyle, SupportedStyles.
195
- SignalException:
196
- Enabled: false
197
-
198
- # Offense count: 34
199
- # Cop supports --auto-correct.
200
- SpaceAfterComma:
201
- Enabled: false
202
-
203
- # Offense count: 3
204
- # Cop supports --auto-correct.
205
- SpaceAroundOperators:
206
- Enabled: false
207
-
208
- # Offense count: 32
209
- # Cop supports --auto-correct.
210
- # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SupportedStyles.
211
- SpaceInsideHashLiteralBraces:
212
- Enabled: false
213
-
214
- # Offense count: 10
215
- # Cop supports --auto-correct.
216
- StringConversionInInterpolation:
217
- Enabled: false
218
-
219
- # Offense count: 264
220
- # Cop supports --auto-correct.
221
- # Configuration parameters: EnforcedStyle, SupportedStyles.
222
- StringLiterals:
223
- Enabled: false
224
-
225
- # Offense count: 1
226
- Tab:
227
- Enabled: false
228
-
229
- # Offense count: 3
230
- # Cop supports --auto-correct.
231
- TrailingBlankLines:
232
- Enabled: false
233
-
234
- # Offense count: 69
235
- # Cop supports --auto-correct.
236
- TrailingWhitespace:
237
- Enabled: false
238
-
239
- # Offense count: 7
240
- UselessAssignment:
241
- Enabled: false
242
-
243
- # Offense count: 7
244
- # Configuration parameters: EnforcedStyle, SupportedStyles.
245
- VariableName:
246
- Enabled: false