-
Notifications
You must be signed in to change notification settings - Fork 53
/
.rubocop.yml
157 lines (155 loc) · 5.03 KB
/
.rubocop.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
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
146
147
148
149
150
151
152
153
154
155
156
157
inherit_from: .rubocop_todo.yml
inherit_mode:
merge:
- Exclude
AllCops:
RubyInterpreters:
- ruby
- macruby
- rake
- jruby
- rbx
# Include common Ruby source files.
Exclude:
- bin/*
- db/schema.rb
- db/migrate/*
- config/initializers/*
- 'vendor/**/*'
- 'lib/tasks/cucumber.rake'
NewCops: enable
TargetRubyVersion: 3.2
Layout/LineLength:
Max: 150
Exclude:
- 'app/controllers/products_controller.rb'
- 'lib/cypress/data_criteria_attribute_builder.rb'
- 'lib/cypress/demographics_randomizer.rb'
- 'lib/tasks/bundle_eval.rake'
- 'lib/validators/program_criteria_validator.rb'
- 'test/**/*'
Lint/DuplicateBranch:
Exclude:
# Safeguard in test
- 'test/unit/html_test.rb'
Lint/EmptyBlock:
Exclude:
# Readability for Cucumber tests
- 'features/step_definitions/admin.rb'
Lint/MissingSuper:
Exclude:
- 'lib/highlighting/highlighting.rb'
- 'lib/validators/cat3_population_validator.rb'
- 'lib/validators/checklist_criteria_validator.rb'
- 'lib/validators/cms_schematron_validator.rb'
- 'lib/validators/core_clinical_data_element_validator.rb'
- 'lib/validators/ehr_certification_id_validator.rb'
- 'lib/validators/encounter_validator.rb'
- 'lib/validators/expected_results_validator.rb'
- 'lib/validators/measure_period_validator.rb'
- 'lib/validators/program_criteria_validator.rb'
- 'lib/validators/program_validator.rb'
- 'lib/validators/provider_type_validator.rb'
- 'lib/validators/qrda_cat1_validator.rb'
- 'lib/validators/qrda_cat3_validator.rb'
- 'lib/validators/qrda_upload_validator.rb'
Metrics/AbcSize:
# The ABC size is a calculated magnitude, so this number can be a Fixnum or
# a Float.
Max: 32
Exclude:
- 'app/controllers/products_controller.rb'
- 'app/controllers/records_controller.rb'
- 'app/controllers/test_executions_controller.rb'
- 'app/helpers/patient_analysis_helper.rb'
- 'app/models/cms_program_task.rb'
- 'lib/cypress/cql_bundle_importer.rb'
- 'lib/cypress/data_criteria_attribute_builder.rb'
- 'lib/cypress/demographics_randomizer.rb'
- 'lib/cypress/expected_results_calculator.rb'
- 'lib/cypress/population_clone_job.rb'
- 'lib/cypress/product_status_values.rb'
- 'lib/ext/cqm/individual_result.rb'
- 'lib/ext/cqm/patient.rb'
- 'test/**/*.rb'
- 'lib/validators/program_criteria_validator.rb'
Metrics/BlockLength:
Max: 38
Exclude:
- 'app/controllers/products_controller.rb'
- 'config/routes.rb'
- 'test/factories/*'
- 'lib/cypress/data_criteria_attribute_builder.rb'
- 'lib/tasks/*'
Metrics/ClassLength:
Max: 120
Exclude:
- 'test/**/*'
- 'app/controllers/products_controller.rb'
- 'app/models/cms_program_task.rb'
- 'app/models/product.rb'
- 'app/models/checklist_source_data_criteria.rb'
- 'app/models/settings.rb'
- 'app/models/test_execution.rb'
- 'app/controllers/records_controller.rb'
- 'lib/ext/bundle.rb'
- 'lib/ext/cqm/individual_result.rb'
- 'lib/ext/cqm/patient.rb'
- 'lib/cypress/api_measure_evaluator.rb'
- 'lib/cypress/clinical_randomizer.rb'
- 'lib/cypress/cql_bundle_importer.rb'
- 'lib/cypress/data_criteria_attribute_builder.rb'
- 'lib/cypress/demographics_randomizer.rb'
- 'lib/cypress/expected_results_calculator.rb'
- 'lib/cypress/population_clone_job.rb'
Metrics/CyclomaticComplexity:
Max: 12
Exclude:
- 'app/controllers/products_controller.rb'
- 'lib/cypress/data_criteria_attribute_builder.rb'
- 'lib/validators/checklist_criteria_validator.rb'
- 'test/unit/lib/validators/checklist_criteria_validator_test.rb'
- 'test/unit/html_test.rb'
Metrics/MethodLength:
CountComments: false # count full line comments?
Max: 20
Exclude:
- 'app/controllers/products_controller.rb'
- 'lib/cypress/data_criteria_attribute_builder.rb'
- 'test/**/*'
Metrics/ModuleLength:
Max: 120
Exclude:
- 'lib/cypress/data_criteria_attribute_builder.rb'
- 'lib/cypress/qrda_post_processor.rb'
- 'app/helpers/patient_analysis_helper.rb'
- 'app/helpers/test_executions_helper.rb'
Metrics/ParameterLists:
Exclude:
- 'app/helpers/records_helper.rb'
- 'app/jobs/cms_test_execution_job.rb'
- 'lib/cypress/data_criteria_attribute_builder.rb'
- 'lib/validators/expected_results_validator.rb'
Metrics/PerceivedComplexity:
Max: 12
Exclude:
- 'app/controllers/products_controller.rb'
- 'app/helpers/products_helper.rb'
- 'lib/cypress/data_criteria_attribute_builder.rb'
- 'lib/validators/checklist_criteria_validator.rb'
- 'test/unit/lib/validators/checklist_criteria_validator_test.rb'
- 'test/unit/html_test.rb'
Style/CaseLikeIf:
Exclude:
- 'app/controllers/test_executions_controller.rb'
- 'app/jobs/measure_evaluation_job.rb'
Style/ClassAndModuleChildren:
Exclude:
- '.simplecov'
- 'test/test_helper.rb'
Style/IfUnlessModifier:
Exclude:
- 'lib/cypress/data_criteria_attribute_builder.rb'
Style/MixinUsage:
Exclude:
- 'features/step_definitions/*'