dns_mock 0.1.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.
Files changed (61) hide show
  1. checksums.yaml +7 -0
  2. data/.circleci/config.yml +89 -0
  3. data/.codeclimate.yml +13 -0
  4. data/.github/BRANCH_NAMING_CONVENTION.md +36 -0
  5. data/.github/ISSUE_TEMPLATE/bug_report.md +28 -0
  6. data/.github/ISSUE_TEMPLATE/feature_request.md +27 -0
  7. data/.github/ISSUE_TEMPLATE/issue_report.md +28 -0
  8. data/.github/ISSUE_TEMPLATE/question.md +22 -0
  9. data/.github/PULL_REQUEST_TEMPLATE.md +49 -0
  10. data/.gitignore +10 -0
  11. data/.overcommit.yml +32 -0
  12. data/.reek.yml +46 -0
  13. data/.rspec +2 -0
  14. data/.rubocop.yml +273 -0
  15. data/.ruby-gemset +1 -0
  16. data/.ruby-version +1 -0
  17. data/CHANGELOG.md +9 -0
  18. data/CODE_OF_CONDUCT.md +74 -0
  19. data/CONTRIBUTING.md +46 -0
  20. data/Gemfile +5 -0
  21. data/Gemfile.lock +127 -0
  22. data/LICENSE.txt +21 -0
  23. data/README.md +79 -0
  24. data/Rakefile +8 -0
  25. data/bin/console +15 -0
  26. data/bin/setup +8 -0
  27. data/dns_mock.gemspec +48 -0
  28. data/lib/dns_mock.rb +19 -0
  29. data/lib/dns_mock/core.rb +56 -0
  30. data/lib/dns_mock/error/argument_type.rb +11 -0
  31. data/lib/dns_mock/error/helper.rb +22 -0
  32. data/lib/dns_mock/error/port_in_use.rb +11 -0
  33. data/lib/dns_mock/error/random_free_port.rb +11 -0
  34. data/lib/dns_mock/error/record_context.rb +11 -0
  35. data/lib/dns_mock/error/record_context_type.rb +15 -0
  36. data/lib/dns_mock/error/record_host_type.rb +11 -0
  37. data/lib/dns_mock/error/record_not_found.rb +11 -0
  38. data/lib/dns_mock/error/record_type.rb +11 -0
  39. data/lib/dns_mock/record/builder/a.rb +9 -0
  40. data/lib/dns_mock/record/builder/aaaa.rb +9 -0
  41. data/lib/dns_mock/record/builder/base.rb +26 -0
  42. data/lib/dns_mock/record/builder/cname.rb +13 -0
  43. data/lib/dns_mock/record/builder/mx.rb +22 -0
  44. data/lib/dns_mock/record/builder/ns.rb +9 -0
  45. data/lib/dns_mock/record/builder/soa.rb +19 -0
  46. data/lib/dns_mock/record/builder/txt.rb +9 -0
  47. data/lib/dns_mock/record/factory/a.rb +15 -0
  48. data/lib/dns_mock/record/factory/aaaa.rb +15 -0
  49. data/lib/dns_mock/record/factory/base.rb +54 -0
  50. data/lib/dns_mock/record/factory/cname.rb +15 -0
  51. data/lib/dns_mock/record/factory/mx.rb +15 -0
  52. data/lib/dns_mock/record/factory/ns.rb +15 -0
  53. data/lib/dns_mock/record/factory/soa.rb +15 -0
  54. data/lib/dns_mock/record/factory/txt.rb +15 -0
  55. data/lib/dns_mock/response/answer.rb +32 -0
  56. data/lib/dns_mock/response/message.rb +29 -0
  57. data/lib/dns_mock/server.rb +82 -0
  58. data/lib/dns_mock/server/random_available_port.rb +48 -0
  59. data/lib/dns_mock/server/records_dictionary_builder.rb +52 -0
  60. data/lib/dns_mock/version.rb +5 -0
  61. metadata +334 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: e807a51b6ad704e5d7a20a311e20e76ad0f1319c649a990eb93512d1719b486f
4
+ data.tar.gz: 2448fc6c17288aa8c359a4d6eaa0bc7a0cc3de3953c67940087984dfef327949
5
+ SHA512:
6
+ metadata.gz: efc57519f9ce59c1aa527cc316cf89eccbdc5b15c4c612bdf5c284a1af2874dfc52ed17d3125eed6435f1defc5338bbcfd0baafde4935448df639824084aab85
7
+ data.tar.gz: 60a80d16dc4ec94ddfd6de6a093992db72e2e3960f6ca0f5f7d6d5974e776dc59395f3e75e5fb7913c804416e32a82a2fe842e6b3c8d954567876b6055451ada
@@ -0,0 +1,89 @@
1
+ defaults: &defaults
2
+ working_directory: ~/ruby-dns-mock
3
+ docker:
4
+ - image: circleci/ruby:2.5.0-node
5
+ environment:
6
+ CC_TEST_REPORTER_ID: 18fba9e7d6885c48453a80a0f019a60d9ffa3fd80467652a6b3c95fef5ea9a50
7
+
8
+ references:
9
+ restore_bundle_cache: &restore_bundle_cache
10
+ restore_cache:
11
+ keys:
12
+ - ruby-dns-mock-{{ checksum "dns_mock.gemspec" }}
13
+
14
+ bundle_install: &bundle_install
15
+ run:
16
+ name: Installing gems
17
+ command: bundle install --path vendor/bundle
18
+
19
+ save_bundle_cache: &save_bundle_cache
20
+ save_cache:
21
+ key: ruby-dns-mock-{{ checksum "dns_mock.gemspec" }}
22
+ paths:
23
+ - vendor/bundle
24
+
25
+ install_codeclimate_reporter: &install_codeclimate_reporter
26
+ run:
27
+ name: Install Code Climate Test Reporter
28
+ command: |
29
+ curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
30
+ chmod +x ./cc-test-reporter
31
+
32
+ version: 2
33
+ jobs:
34
+ linters:
35
+ <<: *defaults
36
+
37
+ steps:
38
+ - checkout
39
+
40
+ - <<: *restore_bundle_cache
41
+ - <<: *bundle_install
42
+ - <<: *save_bundle_cache
43
+
44
+ - run:
45
+ name: Running overcommit
46
+ command: |
47
+ bundle exec overcommit -s
48
+ SKIP=AuthorEmail,AuthorName bundle exec overcommit -r
49
+
50
+ tests:
51
+ <<: *defaults
52
+
53
+ steps:
54
+ - checkout
55
+
56
+ - <<: *restore_bundle_cache
57
+ - <<: *bundle_install
58
+ - <<: *save_bundle_cache
59
+ - <<: *install_codeclimate_reporter
60
+
61
+ - run:
62
+ name: Running tests
63
+ command: |
64
+ mkdir /tmp/test-results
65
+ ./cc-test-reporter before-build
66
+ bundle exec rspec
67
+
68
+ - run:
69
+ name: Code Climate Test Coverage
70
+ command: |
71
+ ./cc-test-reporter format-coverage -t simplecov -o "coverage/codeclimate.$CIRCLE_NODE_INDEX.json"
72
+
73
+ - store_test_results:
74
+ path: /tmp/test-results
75
+
76
+ - store_artifacts:
77
+ path: /tmp/test-results
78
+ destination: test-results
79
+
80
+ - deploy:
81
+ command: |
82
+ ./cc-test-reporter sum-coverage --output - --parts $CIRCLE_NODE_TOTAL coverage/codeclimate.*.json | ./cc-test-reporter upload-coverage --debug --input -
83
+
84
+ workflows:
85
+ version: 2
86
+ build:
87
+ jobs:
88
+ - linters
89
+ - tests
@@ -0,0 +1,13 @@
1
+ checks:
2
+ argument-count:
3
+ enabled: false
4
+ method-complexity:
5
+ enabled: false
6
+
7
+ plugins:
8
+ rubocop:
9
+ enabled: true
10
+ channel: rubocop-1-8
11
+
12
+ reek:
13
+ enabled: true
@@ -0,0 +1,36 @@
1
+ # Branch naming convention
2
+
3
+ ## Branch naming
4
+
5
+ > Please note for new pull requests create new branches from current `develop` branch only.
6
+
7
+ Branch name should include type of your contribution and context. Please follow next pattern for naming your branches:
8
+
9
+ ```bash
10
+ feature/add-some-feature
11
+ technical/some-technical-improvements
12
+ bugfix/fix-some-bug-name
13
+ ```
14
+
15
+ ## Before PR actions
16
+
17
+ ### Squash commits
18
+
19
+ Please squash all branch commits into the one before openning your PR from your fork. It's simple to do with the git:
20
+
21
+ ```bash
22
+ git rebase -i [hash your first commit of your branch]~1
23
+ git rebase -i 6467fe36232401fa740af067cfd8ac9ec932fed2~1 # example
24
+ ```
25
+
26
+ ### Add commit description
27
+
28
+ Please complete your commit description folowing next pattern:
29
+
30
+ ```
31
+ Technical/Add info files # should be the same name as your branch name
32
+
33
+ * Added license, changelog, contributing, code of conduct docs
34
+ * Added GitHub templates
35
+ * Updated project license link
36
+ ```
@@ -0,0 +1,28 @@
1
+ ---
2
+ name: Bug report
3
+ about: Create a report to help us improve
4
+ title: "[BUG] Your bug report title here"
5
+ labels: bug
6
+ assignees: bestwebua
7
+
8
+ ---
9
+
10
+ <!-- Thanks for helping to make DnsMock better! Before submit your bug, please make sure to check the following boxes by putting an x in the [ ] (don't: [x ], [ x], do: [x]) -->
11
+
12
+ ### New bug checklist
13
+
14
+ - [ ] I have updated `dns_mock` to the latest version
15
+ - [ ] I have read the [Contribution Guidelines](https://github.com/mocktools/ruby-dns-mock/blob/master/CONTRIBUTING.md)
16
+ - [ ] I have read the [documentation](https://github.com/mocktools/ruby-dns-mock/blob/master/README.md)
17
+ - [ ] I have searched for [existing GitHub issues](https://github.com/mocktools/ruby-dns-mock/issues)
18
+
19
+ <!-- Please use next pattern for your bug report title: [BUG] Your bug report title here -->
20
+
21
+ ### Bug description
22
+ <!-- Please include what's happening, expected behavior, and any relevant code samples -->
23
+
24
+ ##### Complete output when running dns_mock, including the stack trace and command used
25
+
26
+ <details>
27
+ <pre>[INSERT OUTPUT HERE]</pre>
28
+ </details>
@@ -0,0 +1,27 @@
1
+ ---
2
+ name: Feature request
3
+ about: Suggest an idea for DnsMock
4
+ title: "[FEATURE] Your feature request title here"
5
+ labels: enhancement
6
+ assignees: bestwebua
7
+
8
+ ---
9
+
10
+ <!-- Thanks for helping to make DnsMock better! Before submit your new feature request, please make sure to check the following boxes by putting an x in the [ ] (don't: [x ], [ x], do: [x]) -->
11
+
12
+ ### New feature request checklist
13
+
14
+ - [ ] I have updated `dns_mock` to the latest version
15
+ - [ ] I have read the [Contribution Guidelines](https://github.com/mocktools/ruby-dns-mock/blob/master/CONTRIBUTING.md)
16
+ - [ ] I have read the [documentation](https://github.com/mocktools/ruby-dns-mock/blob/master/README.md)
17
+ - [ ] I have searched for [existing GitHub issues](https://github.com/mocktools/ruby-dns-mock/issues)
18
+
19
+ <!-- Please use next pattern for your feature request title: [FEATURE] Your feature request title here -->
20
+
21
+ ### Feature description
22
+
23
+ <!-- Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
24
+
25
+ Describe the solution you'd like. A clear and concise description of what you want to happen.
26
+
27
+ Describe alternatives you've considered. A clear and concise description of any alternative solutions or features you've considered. -->
@@ -0,0 +1,28 @@
1
+ ---
2
+ name: Issue report
3
+ about: Create a report to help us improve
4
+ title: "[ISSUE] Your issue report title here"
5
+ labels: ''
6
+ assignees: bestwebua
7
+
8
+ ---
9
+
10
+ <!-- Thanks for helping to make DnsMock better! Before submit your issue, please make sure to check the following boxes by putting an x in the [ ] (don't: [x ], [ x], do: [x]) -->
11
+
12
+ ### New issue checklist
13
+
14
+ - [ ] I have updated `dns_mock` to the latest version
15
+ - [ ] I have read the [Contribution Guidelines](https://github.com/mocktools/ruby-dns-mock/blob/master/CONTRIBUTING.md)
16
+ - [ ] I have read the [documentation](https://github.com/mocktools/ruby-dns-mock/blob/master/README.md)
17
+ - [ ] I have searched for [existing GitHub issues](https://github.com/mocktools/ruby-dns-mock/issues)
18
+
19
+ <!-- Please use next pattern for your issue report title: [ISSUE] Your issue report title here -->
20
+
21
+ ### Issue description
22
+ <!-- Please include what's happening, expected behavior, and any relevant code samples -->
23
+
24
+ ##### Complete output when running dns_mock, including the stack trace and command used
25
+
26
+ <details>
27
+ <pre>[INSERT OUTPUT HERE]</pre>
28
+ </details>
@@ -0,0 +1,22 @@
1
+ ---
2
+ name: Question
3
+ about: Ask your question to DnsMock team
4
+ title: "[QUESTION] Your question title here"
5
+ labels: question
6
+ assignees: bestwebua
7
+
8
+ ---
9
+
10
+ <!-- Thanks for helping to make DnsMock better! Before submit your question, please make sure to check the following boxes by putting an x in the [ ] (don't: [x ], [ x], do: [x]) -->
11
+
12
+ ### New question checklist
13
+
14
+ - [ ] I have read the [Contribution Guidelines](https://github.com/mocktools/ruby-dns-mock/blob/master/CONTRIBUTING.md)
15
+ - [ ] I have read the [documentation](https://github.com/mocktools/ruby-dns-mock/blob/master/README.md)
16
+ - [ ] I have searched for [existing GitHub issues](https://github.com/mocktools/ruby-dns-mock/issues)
17
+
18
+ <!-- Please use next pattern for your question title: [QUESTION] Your question title here -->
19
+
20
+ ### Question
21
+
22
+ <!-- Your question context here -->
@@ -0,0 +1,49 @@
1
+ # PR Details
2
+
3
+ <!-- Provide a general summary of your changes in the Title above -->
4
+ <!-- PR name should the same name as your branch name, example: -->
5
+ <!-- Branch name is: feature/add-some-feature -->
6
+ <!-- PR name should be: Feature/Add some feature -->
7
+
8
+ ## Description
9
+
10
+ <!--- Describe your changes in detail -->
11
+
12
+ ## Related Issue
13
+
14
+ <!--- This project only accepts pull requests related to open issues -->
15
+ <!--- If suggesting a new feature or change, please discuss it in an issue first -->
16
+ <!--- If fixing a bug, there should be an issue describing it with steps to reproduce -->
17
+ <!--- Please link to the issue here: -->
18
+
19
+ ## Motivation and Context
20
+
21
+ <!--- Why is this change required? What problem does it solve? -->
22
+
23
+ ## How Has This Been Tested
24
+
25
+ <!--- Please describe in detail how you tested your changes. -->
26
+ <!--- Include details of your testing environment, and the tests you ran to -->
27
+ <!--- see how your change affects other areas of the code, etc. -->
28
+
29
+ ## Types of changes
30
+
31
+ <!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->
32
+
33
+ - [ ] Docs change / refactoring / dependency upgrade
34
+ - [ ] Bug fix (non-breaking change which fixes an issue)
35
+ - [ ] New feature (non-breaking change which adds functionality)
36
+ - [ ] Breaking change (fix or feature that would cause existing functionality to change)
37
+
38
+ ## Checklist
39
+
40
+ <!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
41
+ <!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
42
+
43
+ - [ ] My code follows the code style of this project
44
+ - [ ] My change requires a change to the documentation
45
+ - [ ] I have updated the documentation accordingly
46
+ - [ ] I have read the [**CONTRIBUTING** document](https://github.com/mocktools/ruby-dns-mock/blob/master/CONTRIBUTING.md)
47
+ - [ ] I have added tests to cover my changes
48
+ - [ ] I have run `bundle exec rspec` from the root directory to see all new and existing tests pass
49
+ - [ ] I have run `rubocop` and `reek` to ensure the code style is valid
@@ -0,0 +1,10 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+ .rspec_status
10
+ .DS_Store
@@ -0,0 +1,32 @@
1
+ PreCommit:
2
+ AuthorEmail:
3
+ enabled: true
4
+ required: false
5
+
6
+ AuthorName:
7
+ enabled: false
8
+
9
+ BundleAudit:
10
+ enabled: true
11
+
12
+ Fasterer:
13
+ enabled: true
14
+ include: '**/*.rb'
15
+
16
+ TrailingWhitespace:
17
+ enabled: true
18
+
19
+ RuboCop:
20
+ enabled: true
21
+ flags: ['--format=emacs', '--force-exclusion', '--display-cop-names']
22
+
23
+ Reek:
24
+ enabled: true
25
+ flags: ['--force-exclusion']
26
+
27
+ PostCheckout:
28
+ ALL:
29
+ quiet: true
30
+
31
+ IndexTags:
32
+ enabled: true
@@ -0,0 +1,46 @@
1
+ detectors:
2
+ IrresponsibleModule:
3
+ enabled: false
4
+
5
+ NestedIterators:
6
+ exclude:
7
+ - DnsMock::Server::RecordsDictionaryBuilder#build
8
+
9
+ UtilityFunction:
10
+ exclude:
11
+ - DnsMock::Server::RecordsDictionaryBuilder#build_records_instances_by_type
12
+ - DnsMock::RecordsDictionaryHelper#hostname_records_by_type
13
+ - DnsMock::DnsMessageHelper#to_dns_name
14
+ - DnsMock::ContextGeneratorHelper#random_dns_record_type
15
+ - DnsMock::ContextGeneratorHelper#random_hostname
16
+ - DnsMock::ContextGeneratorHelper#create_dns_name
17
+ - DnsMock::ContextGeneratorHelper#random_ip_v4_address
18
+ - DnsMock::ContextGeneratorHelper#random_ip_v6_address
19
+ - DnsMock::ContextGeneratorHelper#random_txt_record_context
20
+ - DnsMock::RecordsDictionaryHelper#create_records_dictionary_by_records
21
+ - DnsMock::ServerHelper#start_random_server
22
+ - DnsMock::ServerHelper#stop_all_running_servers
23
+
24
+ ControlParameter:
25
+ exclude:
26
+ - DnsMock::Error::Helper#raise_unless
27
+ - DnsMock::Server#initialize
28
+
29
+ MissingSafeMethod:
30
+ exclude:
31
+ - DnsMock::PortInUseHelper::TransportService
32
+ - DnsMock::Server
33
+
34
+ TooManyStatements:
35
+ exclude:
36
+ - DnsMock::Server::RecordsDictionaryBuilder#build
37
+ - DnsMock::Server#initialize
38
+ - DnsMock::Server#run
39
+
40
+ TooManyInstanceVariables:
41
+ exclude:
42
+ - DnsMock::Server
43
+
44
+ LongParameterList:
45
+ exclude:
46
+ - DnsMock::Server#initialize
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --require spec_helper
2
+ --format documentation
@@ -0,0 +1,273 @@
1
+ require:
2
+ - rubocop-rspec
3
+ - rubocop-performance
4
+
5
+ AllCops:
6
+ DisplayCopNames: true
7
+ DisplayStyleGuide: true
8
+ TargetRubyVersion: 2.5
9
+
10
+ Metrics/ClassLength:
11
+ Max: 150
12
+
13
+ Metrics/MethodLength:
14
+ Max: 15
15
+
16
+ Metrics/BlockLength:
17
+ Enabled: false
18
+
19
+ Metrics/CyclomaticComplexity:
20
+ Enabled: false
21
+
22
+ Metrics/PerceivedComplexity:
23
+ Enabled: false
24
+
25
+ Naming/VariableNumber:
26
+ Enabled: false
27
+
28
+ Naming/RescuedExceptionsVariableName:
29
+ Enabled: false
30
+
31
+ Style/Documentation:
32
+ Enabled: false
33
+
34
+ Style/DoubleNegation:
35
+ Enabled: false
36
+
37
+ Style/EmptyCaseCondition:
38
+ Enabled: false
39
+
40
+ Style/ParallelAssignment:
41
+ Enabled: false
42
+
43
+ Style/RescueStandardError:
44
+ Enabled: false
45
+
46
+ Style/HashEachMethods:
47
+ Enabled: true
48
+
49
+ Style/HashTransformKeys:
50
+ Enabled: true
51
+
52
+ Style/HashTransformValues:
53
+ Enabled: true
54
+
55
+ Style/AccessorGrouping:
56
+ Enabled: true
57
+
58
+ Style/ArrayCoercion:
59
+ Enabled: true
60
+
61
+ Style/BisectedAttrAccessor:
62
+ Enabled: true
63
+
64
+ Style/CaseLikeIf:
65
+ Enabled: true
66
+
67
+ Style/ExponentialNotation:
68
+ Enabled: true
69
+
70
+ Style/HashAsLastArrayItem:
71
+ Enabled: true
72
+
73
+ Style/HashLikeCase:
74
+ Enabled: true
75
+
76
+ Style/RedundantAssignment:
77
+ Enabled: true
78
+
79
+ Style/RedundantFetchBlock:
80
+ Enabled: true
81
+
82
+ Style/RedundantFileExtensionInRequire:
83
+ Enabled: true
84
+
85
+ Style/RedundantRegexpCharacterClass:
86
+ Enabled: true
87
+
88
+ Style/RedundantRegexpEscape:
89
+ Enabled: true
90
+
91
+ Style/SlicingWithRange:
92
+ Enabled: true
93
+
94
+ Style/ArgumentsForwarding:
95
+ Enabled: true
96
+
97
+ Style/CollectionCompact:
98
+ Enabled: true
99
+
100
+ Style/DocumentDynamicEvalDefinition:
101
+ Enabled: true
102
+
103
+ Style/NegatedIfElseCondition:
104
+ Enabled: true
105
+
106
+ Style/NilLambda:
107
+ Enabled: true
108
+
109
+ Style/RedundantArgument:
110
+ Enabled: true
111
+
112
+ Style/SwapValues:
113
+ Enabled: true
114
+
115
+ Style/EndlessMethod:
116
+ Enabled: true
117
+
118
+ Style/HashExcept:
119
+ Enabled: true
120
+
121
+ Layout/LineLength:
122
+ Max: 140
123
+
124
+ Layout/EmptyLinesAroundAttributeAccessor:
125
+ Enabled: true
126
+
127
+ Layout/SpaceAroundMethodCallOperator:
128
+ Enabled: true
129
+
130
+ Layout/ClassStructure:
131
+ Enabled: true
132
+ Categories:
133
+ module_inclusion:
134
+ - include
135
+ - prepend
136
+ - extend
137
+ ExpectedOrder:
138
+ - module_inclusion
139
+ - constants
140
+ - public_class_methods
141
+ - initializer
142
+ - public_methods
143
+ - protected_methods
144
+ - private_methods
145
+
146
+ Layout/EmptyLineAfterGuardClause:
147
+ Enabled: false
148
+
149
+ Layout/SpaceBeforeBrackets:
150
+ Enabled: true
151
+
152
+ Lint/NonDeterministicRequireOrder:
153
+ Enabled: true
154
+
155
+ Lint/DeprecatedOpenSSLConstant:
156
+ Enabled: true
157
+
158
+ Lint/DuplicateElsifCondition:
159
+ Enabled: true
160
+
161
+ Lint/MixedRegexpCaptureTypes:
162
+ Enabled: true
163
+
164
+ Lint/RaiseException:
165
+ Enabled: true
166
+
167
+ Lint/StructNewOverride:
168
+ Enabled: true
169
+
170
+ Lint/DuplicateBranch:
171
+ Enabled: true
172
+
173
+ Lint/DuplicateRegexpCharacterClassElement:
174
+ Enabled: true
175
+
176
+ Lint/EmptyBlock:
177
+ Enabled: true
178
+
179
+ Lint/EmptyClass:
180
+ Enabled: true
181
+
182
+ Lint/NoReturnInBeginEndBlocks:
183
+ Enabled: true
184
+
185
+ Lint/ToEnumArguments:
186
+ Enabled: true
187
+
188
+ Lint/UnexpectedBlockArity:
189
+ Enabled: true
190
+
191
+ Lint/AmbiguousAssignment:
192
+ Enabled: true
193
+
194
+ Lint/DeprecatedConstants:
195
+ Enabled: true
196
+
197
+ Lint/LambdaWithoutLiteralBlock:
198
+ Enabled: true
199
+
200
+ Lint/RedundantDirGlobSort:
201
+ Enabled: true
202
+
203
+ Lint/UnmodifiedReduceAccumulator:
204
+ Enabled: true
205
+
206
+ Performance/AncestorsInclude:
207
+ Enabled: true
208
+
209
+ Performance/BigDecimalWithNumericArgument:
210
+ Enabled: true
211
+
212
+ Performance/RedundantSortBlock:
213
+ Enabled: true
214
+
215
+ Performance/RedundantStringChars:
216
+ Enabled: true
217
+
218
+ Performance/ReverseFirst:
219
+ Enabled: true
220
+
221
+ Performance/SortReverse:
222
+ Enabled: true
223
+
224
+ Performance/Squeeze:
225
+ Enabled: true
226
+
227
+ Performance/StringInclude:
228
+ Enabled: true
229
+
230
+ Performance/BlockGivenWithExplicitBlock:
231
+ Enabled: true
232
+
233
+ Performance/CollectionLiteralInLoop:
234
+ Enabled: true
235
+
236
+ Performance/ConstantRegexp:
237
+ Enabled: true
238
+
239
+ Performance/MethodObjectAsBlock:
240
+ Enabled: false
241
+
242
+ Performance/Sum:
243
+ Enabled: true
244
+
245
+ RSpec/ExampleLength:
246
+ Enabled: false
247
+
248
+ RSpec/NestedGroups:
249
+ Enabled: false
250
+
251
+ RSpec/MultipleExpectations:
252
+ Enabled: false
253
+
254
+ RSpec/MessageChain:
255
+ Enabled: false
256
+
257
+ RSpec/ContextWording:
258
+ Enabled: false
259
+
260
+ RSpec/AnyInstance:
261
+ Enabled: false
262
+
263
+ RSpec/MessageSpies:
264
+ Enabled: false
265
+
266
+ RSpec/MultipleDescribes:
267
+ Enabled: false
268
+
269
+ RSpec/MultipleMemoizedHelpers:
270
+ Enabled: false
271
+
272
+ RSpec/StubbedMock:
273
+ Enabled: false