openstudio-analysis 0.4.3 → 0.4.4

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.
Files changed (101) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +19 -0
  3. data/.rubocop.yml +135 -0
  4. data/.travis.yml +6 -0
  5. data/CHANGELOG.md +5 -0
  6. data/Gemfile +11 -0
  7. data/LGPL-2.1.txt +502 -0
  8. data/LICENSE.txt +65 -0
  9. data/README.md +1 -1
  10. data/lib/openstudio/analysis/formulation.rb +15 -8
  11. data/lib/openstudio/analysis/server_api.rb +4 -6
  12. data/lib/openstudio/analysis/translator/excel.rb +1 -1
  13. data/lib/openstudio/analysis/version.rb +1 -1
  14. data/openstudio-analysis.gemspec +33 -0
  15. data/rubocop-todo.yml +246 -0
  16. data/spec/files/measures/NoMeasureRbFile/.gitkeep +0 -0
  17. data/spec/openstudio/formulation_spec.rb +36 -0
  18. data/spec/openstudio/hash_spec.rb +21 -0
  19. data/spec/spec_helper.rb +3 -0
  20. metadata +53 -169
  21. data/lib/openstudio/templates/analysis.json.erb +0 -20
  22. data/lib/openstudio/templates/argument.json.erb +0 -7
  23. data/lib/openstudio/templates/discrete_uncertain_variable.json.erb +0 -41
  24. data/lib/openstudio/templates/pivot_variable.json.erb +0 -32
  25. data/lib/openstudio/templates/uncertain_variable.json.erb +0 -45
  26. data/lib/openstudio/templates/workflow_item.json.erb +0 -16
  27. data/spec/files/analysis/example_analysis_api.json +0 -656
  28. data/spec/files/analysis/lhs_discrete_and_continuous_variables_api.json +0 -1230
  29. data/spec/files/analysis/medium_office.json +0 -1736
  30. data/spec/files/analysis/medium_office.zip +0 -0
  31. data/spec/files/analysis/name_goes_here.json +0 -1752
  32. data/spec/files/analysis/name_goes_here.zip +0 -0
  33. data/spec/files/analysis/name_goes_here_api.json +0 -1681
  34. data/spec/files/analysis/output_vars_api.json +0 -632
  35. data/spec/files/analysis/preflight_api.json +0 -1518
  36. data/spec/files/analysis/simple_test_api.json +0 -519
  37. data/spec/files/analysis/test_model_api.json +0 -493
  38. data/spec/files/export/analysis/0_1_09_outputvars.json +0 -678
  39. data/spec/files/export/analysis/0_1_09_outputvars.zip +0 -0
  40. data/spec/files/export/analysis/0_3_0_dynamic_uuids.json +0 -1490
  41. data/spec/files/export/analysis/0_3_0_dynamic_uuids.zip +0 -0
  42. data/spec/files/export/analysis/0_3_0_outputs.json +0 -1490
  43. data/spec/files/export/analysis/0_3_0_outputs.zip +0 -0
  44. data/spec/files/export/analysis/0_3_3_short_names.json +0 -1517
  45. data/spec/files/export/analysis/0_3_3_short_names.zip +0 -0
  46. data/spec/files/export/analysis/0_3_5_multiple_measure_paths.json +0 -1537
  47. data/spec/files/export/analysis/0_3_5_multiple_measure_paths.zip +0 -0
  48. data/spec/files/export/analysis/0_3_7_worker_init_final.json +0 -1537
  49. data/spec/files/export/analysis/0_3_7_worker_init_final.zip +0 -0
  50. data/spec/files/export/analysis/example_analysis.json +0 -727
  51. data/spec/files/export/analysis/example_analysis.zip +0 -0
  52. data/spec/files/export/analysis/lhs_discrete_and_continuous_variables.json +0 -1298
  53. data/spec/files/export/analysis/lhs_discrete_and_continuous_variables.zip +0 -0
  54. data/spec/files/export/analysis/lhs_discrete_and_continuous_variables_f4a73fc4-0514-4033-b54d-d1c58c77c724.json +0 -1298
  55. data/spec/files/export/analysis/lhs_discrete_and_continuous_variables_f4a73fc4-0514-4033-b54d-d1c58c77c724.zip +0 -0
  56. data/spec/files/export/analysis/lhs_discrete_and_continuous_variables_model_-_1.json +0 -1298
  57. data/spec/files/export/analysis/lhs_discrete_and_continuous_variables_model_-_1.zip +0 -0
  58. data/spec/files/export/analysis/lhs_discrete_and_continuous_variables_something_else.json +0 -1298
  59. data/spec/files/export/analysis/lhs_discrete_and_continuous_variables_something_else.zip +0 -0
  60. data/spec/files/export/analysis/pivot_test.json +0 -1323
  61. data/spec/files/export/analysis/pivot_test.zip +0 -0
  62. data/spec/files/export/analysis/simple_test.json +0 -551
  63. data/spec/files/export/analysis/simple_test.zip +0 -0
  64. data/spec/files/export/analysis/test_model.json +0 -524
  65. data/spec/files/export/analysis/test_model.zip +0 -0
  66. data/spec/files/export/weather/weather_out.epw +0 -32
  67. data/spec/files/export/weather/weather_out_appended.epw +0 -56
  68. data/spec/files/export/workflow/analysis.json +0 -22
  69. data/spec/files/measures/ActualMeasureNoJson/measure.json +0 -25
  70. data/spec/reports/SPEC-OpenStudio-Analysis-Formulation.xml +0 -77
  71. data/spec/reports/SPEC-OpenStudio-Analysis-ServerApi-create-a-new-object-instance.xml +0 -5
  72. data/spec/reports/SPEC-OpenStudio-Analysis-ServerApi-test-not-localhost.xml +0 -5
  73. data/spec/reports/SPEC-OpenStudio-Analysis-ServerApi.xml +0 -3
  74. data/spec/reports/SPEC-OpenStudio-Analysis-SupportFiles.xml +0 -15
  75. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-discrete-variables.xml +0 -31
  76. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-discrete-with-dynamic-columns.xml +0 -24
  77. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-no-variables-defined.xml +0 -11
  78. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-proxy-setup-with-user.xml +0 -5
  79. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-proxy-setup.xml +0 -5
  80. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-setup-output-variables.xml +0 -40
  81. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-setup-version-0-1-9.xml +0 -11
  82. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-small-list-of-incomplete-variables.xml +0 -5
  83. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-small-list-of-variables-should-not-validate.xml +0 -5
  84. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-small-list-of-variables.xml +0 -34
  85. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-small-list-with-with-repeated-variable-names.xml +0 -5
  86. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-1-10.xml +0 -7
  87. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-2-0-simple.xml +0 -28
  88. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-2-0.xml +0 -43
  89. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-3-0-dynamic-uuid-assignments.xml +0 -53
  90. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-3-0-measure-existence-checks.xml +0 -7
  91. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-3-0-objective-functions.xml +0 -55
  92. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-3-3-and-short-display-names.xml +0 -54
  93. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-3-5-and-measure-paths.xml +0 -53
  94. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-3-7-and-worker-init-final-scripts.0.xml +0 -60
  95. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-3-7-and-worker-init-final-scripts.xml +0 -56
  96. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-4-0-multiple-seed-models.xml +0 -165
  97. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel-version-0-4-0-pivot-test.xml +0 -60
  98. data/spec/reports/SPEC-OpenStudio-Analysis-Translator-Excel.xml +0 -3
  99. data/spec/reports/SPEC-OpenStudio-Analysis-Workflow.xml +0 -31
  100. data/spec/reports/SPEC-OpenStudio-Analysis-WorkflowStep.xml +0 -23
  101. data/spec/reports/SPEC-OpenStudio-Weather-Epw.xml +0 -9
data/LICENSE.txt ADDED
@@ -0,0 +1,65 @@
1
+ Copyright (c) 2008-2013, Alliance for Sustainable Energy.
2
+ All rights reserved.
3
+
4
+ NOTICE
5
+
6
+ This computer software (Software) is code in development prepared by the
7
+ Alliance for Sustainable Energy, (hereinafter the "Contractor"), under
8
+ Contract DE-AC36-08GO28308 (Contract) with the Department of Energy (DOE).
9
+ The United States Government has been granted for itself and others acting
10
+ on its behalf a paid-up, non-exclusive, irrevocable, worldwide license in
11
+ the Software to reproduce, prepare derivative works, and perform publicly
12
+ and display publicly. Beginning five (5) years after the date permission
13
+ to assert copyright is obtained from the DOE, and subject to any
14
+ subsequent five (5) year renewals, the United States Government is granted
15
+ for itself and others acting on its behalf a paid-up, non-exclusive,
16
+ irrevocable, worldwide license in the Software to reproduce, prepare
17
+ derivative works, distribute copies to the public, perform publicly and
18
+ display publicly, and to permit others to do so. If the Contractor ceases
19
+ to make this computer software available, it may be obtained from DOE's
20
+ Office of Scientific and Technical Information's Energy Science and
21
+ Technology Software Center (ESTSC) at P.O. Box 1020, Oak Ridge, TN 37831-
22
+ 1020.
23
+
24
+ DISCLAIMER
25
+
26
+ THIS SOFTWARE IS PROVIDED BY THE CONTRACTOR "AS IS" AND ANY EXPRESS OR
27
+ IMPLIED WARRANTIES, INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
28
+ OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
29
+ NO EVENT SHALL THE CONTRACTOR OR THE U.S. GOVERNMENT BE LIABLE FOR ANY
30
+ SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER,
31
+ INCLUDING BUT NOT LIMITED TO CLAIMS ASSOCIATED WITH THE LOSS OF DATA OR
32
+ PROFITS, WHICH MAY RESULT FROM AN ACTION IN CONTRACT, NEGLIGENCE OR OTHER
33
+ TORTIOUS CLAIM THAT ARISES OUT OF OR IN CONNECTION WITH THE ACCESS, USE OR
34
+ PERFORMANCE OF THIS SOFTWARE.
35
+
36
+ YOU AGREE TO INDEMNIFY DOE/NREL/ALLIANCE, AND ITS SUBSIDIARIES,
37
+ AFFILIATES, OFFICERS, AGENTS, AND EMPLOYEES AGAINST ANY CLAIM OR DEMAND,
38
+ INCLUDING REASONABLE ATTORNEYS' FEES, RELATED TO YOUR USE OF THESE DATA.
39
+
40
+ DOE/NREL/Alliance is not obligated to provide the user with any support,
41
+ consulting, training or assistance of any kind with regard to the use of
42
+ these Data or to provide the user with any updates, revisions or new
43
+ versions of these Data.
44
+
45
+ The names DOE/NREL/Alliance may not be used in any advertising or
46
+ publicity to endorse or promote any products or commercial entities unless
47
+ specific written permission is obtained from DOE/NREL/Alliance.
48
+
49
+
50
+ OPEN SOURCE LICENSE
51
+
52
+ This library is free software; you can redistribute it and/or
53
+ modify it under the terms of the GNU Lesser General Public
54
+ License as published by the Free Software Foundation; either
55
+ version 2.1 of the License, or (at your option) any later version.
56
+
57
+ This library is distributed in the hope that it will be useful,
58
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
59
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
60
+ Lesser General Public License for more details here.
61
+
62
+ You should have received a copy of the GNU Lesser General Public
63
+ License along with this library; if not, write to the Free Software
64
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
65
+
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # OpenStudio Analysis Gem
2
2
 
3
- [![Build Status](https://travis-ci.org/NREL/OpenStudio-analysis-gem.svg?branch=develop)](https://travis-ci.org/NREL/OpenStudio-analysis-gem) [![Dependency Status](https://www.versioneye.com/user/projects/540a2fe5ccc023dd23000002/badge.svg?style=flat)](https://www.versioneye.com/user/projects/540a2fe5ccc023dd23000002)
3
+ [![Build Status](https://travis-ci.org/NREL/OpenStudio-analysis-gem.svg?branch=develop)](https://travis-ci.org/NREL/OpenStudio-analysis-gem) [![Dependency Status](https://www.versioneye.com/user/projects/540a2fe5ccc023dd23000002/badge.svg?style=flat)](https://www.versioneye.com/user/projects/540a2fe5ccc023dd23000002) [![Coverage Status](https://coveralls.io/repos/NREL/OpenStudio-analysis-gem/badge.svg?branch=develop)](https://coveralls.io/r/NREL/OpenStudio-analysis-gem?branch=develop)
4
4
 
5
5
  The OpenStudio Analysis Gem is used to communicate files to the OpenStudio Distributed Analysis.
6
6
 
@@ -107,14 +107,23 @@ module OpenStudio
107
107
  scaling_factor: nil
108
108
  }.merge(output_hash)
109
109
 
110
- # if the objective_function index is nil and the variable is an objective function, then increment and
111
- # assign and objective function index
112
- unless output_hash[:objective_function_index]
113
- values = @outputs.map { |o| o[:objective_function_index] }
114
- output_hash[:objective_function_index] = values.empty? ? 0 : values.max + 1
110
+ # Check if the name is already been added. Note that if the name is added again, it will not update any of
111
+ # the fields
112
+ exist = @outputs.select { |o| o[:name] == output_hash[:name] }
113
+ if exist.empty?
114
+ # if the variable is an objective_function, then increment and
115
+ # assign and objective function index
116
+ if output_hash[:objective_function]
117
+ values = @outputs.select { |o| o[:objective_function] }
118
+ output_hash[:objective_function_index] = values.size # size is already +1
119
+ else
120
+ output_hash[:objective_function] = false
121
+ end
122
+
123
+ @outputs << output_hash
115
124
  end
116
125
 
117
- @outputs << output_hash
126
+ @outputs
118
127
  end
119
128
 
120
129
  # return the machine name of the analysis
@@ -372,8 +381,6 @@ module OpenStudio
372
381
  if File.directory?(file)
373
382
  if File.basename(file) == 'resources' || File.basename(file) == 'lib'
374
383
  add_directory_to_zip(zf, file, "#{measure.measure_definition_directory}/#{File.basename(file)}")
375
- else
376
- # puts "Skipping Directory #{File.basename(file)}"
377
384
  end
378
385
  else
379
386
  # puts "Adding File #{file}"
@@ -14,7 +14,7 @@ module OpenStudio
14
14
 
15
15
  fail 'no host defined for server api class' if @hostname.nil?
16
16
 
17
- # todo: add support for the proxy
17
+ # TODO: add support for the proxy
18
18
 
19
19
  # create connection with basic capabilities
20
20
  @conn = Faraday.new(url: @hostname) do |faraday|
@@ -575,8 +575,6 @@ module OpenStudio
575
575
 
576
576
  if response.status == 200
577
577
  puts "Killed analysis #{analysis_id}"
578
- else
579
- # raise "Could not kill the analysis with response of #{response.inspect}"
580
578
  end
581
579
  end
582
580
 
@@ -703,7 +701,7 @@ module OpenStudio
703
701
  end
704
702
 
705
703
  # creates a new analysis and runs rgenoud optimization - number of generations isn't used right now
706
- def run_rgenoud(formulation_filename, analysis_zip_filename, _number_of_generations)
704
+ def run_rgenoud(formulation_filename, analysis_zip_filename)
707
705
  project_options = {}
708
706
  project_id = new_project(project_options)
709
707
 
@@ -790,9 +788,9 @@ module OpenStudio
790
788
  }
791
789
  start_analysis(analysis_id, run_options)
792
790
 
793
- # If the analysis is LHS, then go ahead and run batch run because there is
791
+ # If the analysis is a staged analysis, then go ahead and run batch run because there is
794
792
  # no explicit way to tell the system to do it
795
- if analysis_type == 'lhs' || analysis_type == 'preflight' || analysis_type == 'single_run' || analysis_type == 'doe'
793
+ if %w(lhs preflight single_run repeat_run doe).include? analysis_type
796
794
  run_options = {
797
795
  analysis_action: 'start',
798
796
  without_delay: false,
@@ -54,7 +54,7 @@ module OpenStudio
54
54
  @worker_finals = []
55
55
  @export_path = './export'
56
56
  @measure_paths = []
57
- @number_of_samples = 0 # todo: remove this
57
+ @number_of_samples = 0 # TODO: remove this
58
58
  @problem = {}
59
59
  @algorithm = {}
60
60
  @outputs = {}
@@ -1,5 +1,5 @@
1
1
  module OpenStudio
2
2
  module Analysis
3
- VERSION = '0.4.3'
3
+ VERSION = '0.4.4'
4
4
  end
5
5
  end
@@ -0,0 +1,33 @@
1
+ lib = File.expand_path('../lib/', __FILE__)
2
+ $LOAD_PATH.unshift lib unless $LOAD_PATH.include?(lib)
3
+
4
+ require 'openstudio/analysis/version'
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = 'openstudio-analysis'
8
+ s.version = OpenStudio::Analysis::VERSION
9
+ s.platform = Gem::Platform::RUBY
10
+ s.authors = ['Nicholas Long']
11
+ s.email = ['Nicholas.Long@nrel.gov']
12
+ s.homepage = 'http://openstudio.nrel.gov'
13
+ s.summary = 'Create JSON, ZIP to communicate with OpenStudio Distributed Analysis in the Cloud'
14
+ s.description = 'Basic classes for generating the files needed for OpenStudio-Server'
15
+ s.license = 'LGPL'
16
+
17
+ s.required_ruby_version = '>= 1.9.3'
18
+ s.required_rubygems_version = '>= 1.3.6'
19
+
20
+ s.files = `git ls-files -z`.split("\x0")
21
+ s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
22
+ s.test_files = s.files.grep(%r{^(test|spec|features)/})
23
+ s.require_paths = ['lib']
24
+
25
+ s.add_dependency 'faraday', '~> 0.8'
26
+ s.add_dependency 'roo', '~> 1.12'
27
+ s.add_dependency 'rubyzip', '~> 1.0' # don't update because of jruby
28
+ s.add_dependency 'semantic', '~> 1.4'
29
+ s.add_dependency 'bcl', '~> 0.5.5'
30
+
31
+ s.add_development_dependency 'bundler', '~> 1.7'
32
+ s.add_development_dependency 'rake', '~> 10.0'
33
+ end
data/rubocop-todo.yml ADDED
@@ -0,0 +1,246 @@
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