enmail 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: da7f84308a1af12cc8bd421e0b170b144cf4545f
4
- data.tar.gz: aaff74e6cbd4728b97967de2cbb39f0682b9b372
2
+ SHA256:
3
+ metadata.gz: '038acec812557605c0617e55c00be79bc33ce16a54c6fcf29fb46746ef99ff6c'
4
+ data.tar.gz: cb6ae7bdfa66d55caa7c528ce7edf24466a8cff2a1dd14f27296bf705226050e
5
5
  SHA512:
6
- metadata.gz: d231268caa5916018cafe1880ec7eb69754ddce0a97a6f3eca17f541148c0398a770edb506368abf6d0d7ab6d464415d70f50ea78dff459a19a9e60c916c311e
7
- data.tar.gz: ef04c56ca048403cf7d9259eb7ea9e29dd3cc2ad08c1170bb977a6bbc92843eee078e01c8e96ce668887971616bb7626ff394d02bfa5fb16b6faceccf5e99030
6
+ metadata.gz: dd2a871a71076c5f7fcffdfea2b56b8f619948fd587b7ef62c0e938d6362ce3614a58c8b17bd9e26467c491fb1eebf43348033f5b3d475cc00b5361a10be73f5
7
+ data.tar.gz: 1546d852a5faf9e5d6e1834784fab1532f8091a271f9c0d285cb2413727f94fe5d7d1c63df86ed64ea7f5d0d87677067f4b972ec11774597dc447986eab4147f
@@ -0,0 +1,21 @@
1
+ # EditorConfig is awesome: http://EditorConfig.org
2
+
3
+ # top-most EditorConfig file
4
+ root = true
5
+
6
+ # Unix-style newlines with a newline ending every file
7
+ [*]
8
+ charset = utf-8
9
+ end_of_line = lf
10
+
11
+ [{*.{rb,yml,rake},Rakefile}]
12
+ indent_style = space
13
+ indent_size = 2
14
+ insert_final_newline = true
15
+ trim_trailing_whitespace = true
16
+
17
+ [*.sh]
18
+ indent_style = tab
19
+ indent_size = 4
20
+ insert_final_newline = true
21
+ trim_trailing_whitespace = true
data/.gitignore CHANGED
@@ -1,15 +1,170 @@
1
- source_credentials.sh
2
- .DS_Store
3
- /.bundle/
4
- /.yardoc
5
- /.pryrc
6
1
  /Gemfile.lock
7
- /_yardoc/
2
+ /.ruby-gemset
3
+ /.ruby-version
4
+ /.rspec_status
5
+ *.gem
6
+ *.rbc
7
+ /.config
8
8
  /coverage/
9
- /doc/
9
+ /InstalledFiles
10
10
  /pkg/
11
11
  /spec/reports/
12
+ /spec/examples.txt
13
+ /test/tmp/
14
+ /test/version_tmp/
12
15
  /tmp/
13
16
 
14
- # rspec failure tracking
15
- .rspec_status
17
+ # Used by dotenv library to load environment variables.
18
+ # .env
19
+
20
+ ## Specific to RubyMotion:
21
+ .dat*
22
+ .repl_history
23
+ build/
24
+ *.bridgesupport
25
+ build-iPhoneOS/
26
+ build-iPhoneSimulator/
27
+
28
+ ## Specific to RubyMotion (use of CocoaPods):
29
+ #
30
+ # We recommend against adding the Pods directory to your .gitignore. However
31
+ # you should judge for yourself, the pros and cons are mentioned at:
32
+ # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
33
+ #
34
+ # vendor/Pods/
35
+
36
+ ## Documentation cache and generated files:
37
+ /.yardoc/
38
+ /_yardoc/
39
+ /doc/
40
+ /rdoc/
41
+
42
+ ## Environment normalization:
43
+ /.bundle/
44
+ /vendor/bundle
45
+ /lib/bundler/man/
46
+
47
+ # for a library or gem, you might want to ignore these files since the code is
48
+ # intended to run in multiple environments; otherwise, check them in:
49
+ # Gemfile.lock
50
+ # .ruby-version
51
+ # .ruby-gemset
52
+
53
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
54
+ .rvmrc
55
+
56
+ *.rbc
57
+ capybara-*.html
58
+ .rspec
59
+ /log
60
+ /tmp
61
+ /db/*.sqlite3
62
+ /db/*.sqlite3-journal
63
+ /public/system
64
+ /coverage/
65
+ /spec/tmp
66
+ *.orig
67
+ rerun.txt
68
+ pickle-email-*.html
69
+
70
+ # TODO Comment out this rule if you are OK with secrets being uploaded to the repo
71
+ config/initializers/secret_token.rb
72
+
73
+ # Only include if you have production secrets in this file, which is no longer a Rails default
74
+ # config/secrets.yml
75
+
76
+ # dotenv
77
+ # TODO Comment out this rule if environment variables can be committed
78
+ .env
79
+
80
+ ## Environment normalization:
81
+ /.bundle
82
+ /vendor/bundle
83
+
84
+ # these should all be checked in to normalize the environment:
85
+ # Gemfile.lock, .ruby-version, .ruby-gemset
86
+
87
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
88
+ .rvmrc
89
+
90
+ # if using bower-rails ignore default bower_components path bower.json files
91
+ /vendor/assets/bower_components
92
+ *.bowerrc
93
+ bower.json
94
+
95
+ # Ignore pow environment settings
96
+ .powenv
97
+
98
+ # Ignore Byebug command history file.
99
+ .byebug_history
100
+
101
+
102
+ # Created by https://www.gitignore.io/api/vim
103
+
104
+ ### Vim ###
105
+ # swap
106
+ [._]*.s[a-v][a-z]
107
+ [._]*.sw[a-p]
108
+ [._]s[a-v][a-z]
109
+ [._]sw[a-p]
110
+ # session
111
+ Session.vim
112
+ # temporary
113
+ .netrwhist
114
+ *~
115
+ # auto-generated tag files
116
+ tags
117
+
118
+ # End of https://www.gitignore.io/api/vim
119
+
120
+
121
+ # Created by https://www.gitignore.io/api/emacs
122
+
123
+ ### Emacs ###
124
+ # -*- mode: gitignore; -*-
125
+ *~
126
+ \#*\#
127
+ /.emacs.desktop
128
+ /.emacs.desktop.lock
129
+ *.elc
130
+ auto-save-list
131
+ tramp
132
+ .\#*
133
+
134
+ # Org-mode
135
+ .org-id-locations
136
+ *_archive
137
+
138
+ # flymake-mode
139
+ *_flymake.*
140
+
141
+ # eshell files
142
+ /eshell/history
143
+ /eshell/lastdir
144
+
145
+ # elpa packages
146
+ /elpa/
147
+
148
+ # reftex files
149
+ *.rel
150
+
151
+ # AUCTeX auto folder
152
+ /auto/
153
+
154
+ # cask packages
155
+ .cask/
156
+ dist/
157
+
158
+ # Flycheck
159
+ flycheck_*.el
160
+
161
+ # server auth directory
162
+ /server/
163
+
164
+ # projectiles files
165
+ .projectile
166
+
167
+ # directory configuration
168
+ .dir-locals.el
169
+
170
+ # End of https://www.gitignore.io/api/emacs
@@ -0,0 +1,3 @@
1
+ [submodule "ci/gpg"]
2
+ path = ci/gpg
3
+ url = https://github.com/riboseinc/gpg-build-scripts.git
@@ -1,637 +1,36 @@
1
- AllCops:
2
- TargetRubyVersion: 2.3
3
-
4
- Exclude:
5
- - db/schema.rb
6
-
7
- Style/AccessorMethodName:
8
- Description: Check the naming of accessor methods for get_/set_.
9
- Enabled: false
10
-
11
- Style/Alias:
12
- Description: 'Use alias_method instead of alias.'
13
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#alias-method'
14
- Enabled: false
15
-
16
- Style/ArrayJoin:
17
- Description: 'Use Array#join instead of Array#*.'
18
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#array-join'
19
- Enabled: false
20
-
21
- Style/AsciiComments:
22
- Description: 'Use only ascii symbols in comments.'
23
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#english-comments'
24
- Enabled: false
25
-
26
- Style/AsciiIdentifiers:
27
- Description: 'Use only ascii symbols in identifiers.'
28
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#english-identifiers'
29
- Enabled: false
30
-
31
- Style/Attr:
32
- Description: 'Checks for uses of Module#attr.'
33
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#attr'
34
- Enabled: false
35
-
36
- Metrics/BlockNesting:
37
- Description: 'Avoid excessive block nesting'
38
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#three-is-the-number-thou-shalt-count'
39
- Enabled: false
40
-
41
- Style/CaseEquality:
42
- Description: 'Avoid explicit use of the case equality operator(===).'
43
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-case-equality'
44
- Enabled: false
45
-
46
- Style/CharacterLiteral:
47
- Description: 'Checks for uses of character literals.'
48
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-character-literals'
49
- Enabled: false
50
-
51
- Style/ClassAndModuleChildren:
52
- Description: 'Checks style of children classes and modules.'
53
- Enabled: true
54
- EnforcedStyle: nested
55
-
56
- Metrics/ClassLength:
57
- Description: 'Avoid classes longer than 100 lines of code.'
58
- Enabled: false
59
-
60
- Metrics/ModuleLength:
61
- Description: 'Avoid modules longer than 100 lines of code.'
62
- Enabled: false
63
-
64
- Style/ClassVars:
65
- Description: 'Avoid the use of class variables.'
66
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-class-vars'
67
- Enabled: false
1
+ # This project follows the Ribose OSS style guide.
2
+ # https://github.com/riboseinc/oss-guides
3
+ # All project-specific additions and overrides should be specified in this file.
68
4
 
69
- Style/CollectionMethods:
70
- Enabled: true
71
- PreferredMethods:
72
- find: detect
73
- inject: reduce
74
- collect: map
75
- find_all: select
76
-
77
- Style/ColonMethodCall:
78
- Description: 'Do not use :: for method call.'
79
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#double-colons'
80
- Enabled: false
81
-
82
- Style/CommentAnnotation:
83
- Description: >-
84
- Checks formatting of special comments
85
- (TODO, FIXME, OPTIMIZE, HACK, REVIEW).
86
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#annotate-keywords'
87
- Enabled: false
88
-
89
- Metrics/AbcSize:
90
- Description: >-
91
- A calculated magnitude based on number of assignments,
92
- branches, and conditions.
93
- Enabled: false
94
-
95
- Metrics/CyclomaticComplexity:
96
- Description: >-
97
- A complexity metric that is strongly correlated to the number
98
- of test cases needed to validate a method.
99
- Enabled: false
100
-
101
- Rails/Delegate:
102
- Description: 'Prefer delegate method for delegations.'
103
- Enabled: false
104
-
105
- Style/PreferredHashMethods:
106
- Description: 'Checks for use of deprecated Hash methods.'
107
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#hash-key'
108
- Enabled: false
109
-
110
- Style/Documentation:
111
- Description: 'Document classes and non-namespace modules.'
112
- Enabled: false
113
-
114
- Style/DotPosition:
115
- Description: 'Checks the position of the dot in multi-line method calls.'
116
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains'
117
- EnforcedStyle: trailing
118
-
119
- Style/DoubleNegation:
120
- Description: 'Checks for uses of double negation (!!).'
121
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-bang-bang'
122
- Enabled: false
123
-
124
- Style/EachWithObject:
125
- Description: 'Prefer `each_with_object` over `inject` or `reduce`.'
126
- Enabled: false
127
-
128
- Style/EmptyLiteral:
129
- Description: 'Prefer literals to Array.new/Hash.new/String.new.'
130
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#literal-array-hash'
131
- Enabled: false
132
-
133
- # Checks whether the source file has a utf-8 encoding comment or not
134
- # AutoCorrectEncodingComment must match the regex
135
- # /#.*coding\s?[:=]\s?(?:UTF|utf)-8/
136
- Style/Encoding:
137
- Enabled: false
138
-
139
- Style/EvenOdd:
140
- Description: 'Favor the use of Fixnum#even? && Fixnum#odd?'
141
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#predicate-methods'
142
- Enabled: false
143
-
144
- Style/ExtraSpacing:
145
- Description: 'Do not use unnecessary spacing.'
146
- Enabled: true
147
-
148
- Style/FileName:
149
- Description: 'Use snake_case for source file names.'
150
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-files'
151
- Enabled: false
5
+ inherit_from:
6
+ - https://raw.githubusercontent.com/riboseinc/oss-guides/master/ci/rubocop.yml
152
7
 
153
- Style/FlipFlop:
154
- Description: 'Checks for flip flops'
155
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-flip-flops'
156
- Enabled: false
157
-
158
- Style/FormatString:
159
- Description: 'Enforce the use of Kernel#sprintf, Kernel#format or String#%.'
160
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#sprintf'
161
- Enabled: false
162
-
163
- Style/GlobalVars:
164
- Description: 'Do not introduce global variables.'
165
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#instance-vars'
166
- Reference: 'http://www.zenspider.com/Languages/Ruby/QuickRef.html'
167
- Enabled: false
168
-
169
- Style/GuardClause:
170
- Description: 'Check for conditionals that can be replaced with guard clauses'
171
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals'
172
- Enabled: false
173
-
174
- Style/IfUnlessModifier:
175
- Description: >-
176
- Favor modifier if/unless usage when you have a
177
- single-line body.
178
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier'
179
- Enabled: false
180
-
181
- Style/IfWithSemicolon:
182
- Description: 'Do not use if x; .... Use the ternary operator instead.'
183
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-semicolon-ifs'
184
- Enabled: false
185
-
186
- Style/InlineComment:
187
- Description: 'Avoid inline comments.'
188
- Enabled: false
189
-
190
- Style/Lambda:
191
- Description: 'Use the new lambda literal syntax for single-line blocks.'
192
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#lambda-multi-line'
193
- Enabled: false
194
-
195
- Style/LambdaCall:
196
- Description: 'Use lambda.call(...) instead of lambda.(...).'
197
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#proc-call'
198
- Enabled: false
199
-
200
- Style/LineEndConcatenation:
201
- Description: >-
202
- Use \ instead of + or << to concatenate two string literals at
203
- line end.
204
- Enabled: false
205
-
206
- Metric/BlockLength:
207
- Enabled: false
208
-
209
- Metrics/LineLength:
210
- Description: 'Limit lines to 80 characters.'
211
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#80-character-limits'
212
- Max: 80
213
-
214
- Metrics/MethodLength:
215
- Description: 'Avoid methods longer than 10 lines of code.'
216
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#short-methods'
217
- Enabled: false
218
-
219
- Style/ModuleFunction:
220
- Description: 'Checks for usage of `extend self` in modules.'
221
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#module-function'
222
- Enabled: false
223
-
224
- Style/MultilineOperationIndentation:
225
- Description: >-
226
- Checks indentation of binary operations that span more than
227
- one line.
228
- Enabled: true
229
- EnforcedStyle: indented
230
-
231
- Style/MultilineBlockChain:
232
- Description: 'Avoid multi-line chains of blocks.'
233
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#single-line-blocks'
234
- Enabled: false
235
-
236
- Style/MultilineMethodCallIndentation:
237
- Description: >-
238
- Checks indentation of method calls with the dot operator
239
- that span more than one line.
240
- Enabled: true
241
- EnforcedStyle: indented
242
-
243
- Style/NegatedIf:
244
- Description: >-
245
- Favor unless over if for negative conditions
246
- (or control flow or).
247
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#unless-for-negatives'
248
- Enabled: false
249
-
250
- Style/NegatedWhile:
251
- Description: 'Favor until over while for negative conditions.'
252
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#until-for-negatives'
253
- Enabled: false
254
-
255
- Style/Next:
256
- Description: 'Use `next` to skip iteration instead of a condition at the end.'
257
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals'
258
- Enabled: false
259
-
260
- Style/NilComparison:
261
- Description: 'Prefer x.nil? to x == nil.'
262
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#predicate-methods'
263
- Enabled: false
264
-
265
- Style/Not:
266
- Description: 'Use ! instead of not.'
267
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#bang-not-not'
268
- Enabled: false
269
-
270
- Style/NumericLiterals:
271
- Description: >-
272
- Add underscores to large numeric literals to improve their
273
- readability.
274
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscores-in-numerics'
275
- Enabled: false
276
-
277
- Style/OneLineConditional:
278
- Description: >-
279
- Favor the ternary operator(?:) over
280
- if/then/else/end constructs.
281
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#ternary-operator'
282
- Enabled: false
283
-
284
- Style/OpMethod:
285
- Description: 'When defining binary operators, name the argument other.'
286
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#other-arg'
287
- Enabled: false
288
-
289
- Metrics/ParameterLists:
290
- Description: 'Avoid parameter lists longer than three or four parameters.'
291
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#too-many-params'
292
- Enabled: false
293
-
294
- Style/PercentLiteralDelimiters:
295
- Description: 'Use `%`-literal delimiters consistently'
296
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-literal-braces'
297
- Enabled: false
298
-
299
- Style/PerlBackrefs:
300
- Description: 'Avoid Perl-style regex back references.'
301
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-perl-regexp-last-matchers'
302
- Enabled: false
303
-
304
- Style/PredicateName:
305
- Description: 'Check the names of predicate methods.'
306
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#bool-methods-qmark'
307
- NamePrefixBlacklist:
308
- - is_
309
- Exclude:
310
- - spec/**/*
311
-
312
- Style/Proc:
313
- Description: 'Use proc instead of Proc.new.'
314
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#proc'
315
- Enabled: false
316
-
317
- Style/RaiseArgs:
318
- Description: 'Checks the arguments passed to raise/fail.'
319
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#exception-class-messages'
320
- Enabled: false
321
-
322
- Style/RegexpLiteral:
323
- Description: 'Use / or %r around regular expressions.'
324
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-r'
325
- Enabled: false
326
-
327
- Style/SelfAssignment:
328
- Description: >-
329
- Checks for places where self-assignment shorthand should have
330
- been used.
331
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#self-assignment'
332
- Enabled: false
333
-
334
- Style/SingleLineBlockParams:
335
- Description: 'Enforces the names of some block params.'
336
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#reduce-blocks'
337
- Enabled: false
338
-
339
- Style/SingleLineMethods:
340
- Description: 'Avoid single-line methods.'
341
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-single-line-methods'
342
- Enabled: false
343
-
344
- Style/SignalException:
345
- Description: 'Checks for proper usage of fail and raise.'
346
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#fail-method'
347
- Enabled: false
8
+ # Local repo-specific modifications
9
+ AllCops:
10
+ DisplayCopNames: false
11
+ StyleGuideCopsOnly: false
12
+ TargetRubyVersion: 2.3
348
13
 
349
- Style/SpecialGlobalVars:
350
- Description: 'Avoid Perl-style global variables.'
351
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-cryptic-perlisms'
14
+ Rails:
352
15
  Enabled: false
353
16
 
354
- Style/StringLiterals:
355
- Description: 'Checks if uses of quotes match the configured preference.'
356
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#consistent-string-literals'
357
- EnforcedStyle: double_quotes
358
- Enabled: true
359
- SupportedStyles:
360
- - single_quotes
361
- - double_quotes
362
-
363
- Style/FrozenStringLiteralComment:
17
+ Style/EmptyCaseCondition:
364
18
  Enabled: false
365
19
 
366
20
  Style/TrailingCommaInArguments:
367
- Description: 'Checks for trailing comma in argument lists.'
368
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
369
- EnforcedStyleForMultiline: comma
370
- SupportedStyles:
371
- - comma
372
- - consistent_comma
373
- - no_comma
374
- Enabled: true
375
-
376
- Style/TrailingCommaInLiteral:
377
- Description: 'Checks for trailing comma in array and hash literals.'
378
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
379
- EnforcedStyleForMultiline: comma
380
- SupportedStyles:
381
- - comma
382
- - consistent_comma
383
- - no_comma
384
- Enabled: true
385
-
386
- Style/TrivialAccessors:
387
- Description: 'Prefer attr_* methods to trivial readers/writers.'
388
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#attr_family'
389
- Enabled: false
390
-
391
- Style/VariableInterpolation:
392
- Description: >-
393
- Don't interpolate global, instance and class variables
394
- directly in strings.
395
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#curlies-interpolate'
396
- Enabled: false
397
-
398
- Style/WhenThen:
399
- Description: 'Use when x then ... for one-line cases.'
400
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#one-line-cases'
401
- Enabled: false
402
-
403
- Style/WhileUntilModifier:
404
- Description: >-
405
- Favor modifier while/until usage when you have a
406
- single-line body.
407
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#while-as-a-modifier'
408
- Enabled: false
409
-
410
- Style/WordArray:
411
- Description: 'Use %w or %W for arrays of words.'
412
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-w'
413
- Enabled: false
414
-
415
- # Lint
416
-
417
- Lint/AmbiguousOperator:
418
- Description: >-
419
- Checks for ambiguous operators in the first argument of a
420
- method invocation without parentheses.
421
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-as-args'
422
- Enabled: false
423
-
424
- Lint/AmbiguousRegexpLiteral:
425
- Description: >-
426
- Checks for ambiguous regexp literals in the first argument of
427
- a method invocation without parenthesis.
428
- Enabled: false
429
-
430
- Lint/AssignmentInCondition:
431
- Description: "Don't use assignment in conditions."
432
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#safe-assignment-in-condition'
433
- Enabled: false
434
-
435
- Lint/CircularArgumentReference:
436
- Description: "Don't refer to the keyword argument in the default value."
437
- Enabled: false
438
-
439
- Lint/ConditionPosition:
440
- Description: >-
441
- Checks for condition placed in a confusing position relative to
442
- the keyword.
443
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#same-line-condition'
444
- Enabled: false
445
-
446
- Lint/DeprecatedClassMethods:
447
- Description: 'Check for deprecated class method calls.'
448
- Enabled: false
449
-
450
- Lint/DuplicatedKey:
451
- Description: 'Check for duplicate keys in hash literals.'
452
- Enabled: false
453
-
454
- Lint/EachWithObjectArgument:
455
- Description: 'Check for immutable argument given to each_with_object.'
456
- Enabled: false
457
-
458
- Lint/ElseLayout:
459
- Description: 'Check for odd code arrangement in an else block.'
460
- Enabled: false
461
-
462
- Lint/FormatParameterMismatch:
463
- Description: 'The number of parameters to format/sprint must match the fields.'
464
- Enabled: false
465
-
466
- Lint/HandleExceptions:
467
- Description: "Don't suppress exception."
468
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#dont-hide-exceptions'
469
- Enabled: false
470
-
471
- Lint/InvalidCharacterLiteral:
472
- Description: >-
473
- Checks for invalid character literals with a non-escaped
474
- whitespace character.
475
- Enabled: false
476
-
477
- Style/InitialIndentation:
478
- Description: >-
479
- Checks the indentation of the first non-blank non-comment line in a file.
480
- Enabled: false
481
-
482
- Lint/LiteralInCondition:
483
- Description: 'Checks of literals used in conditions.'
484
- Enabled: false
485
-
486
- Lint/LiteralInInterpolation:
487
- Description: 'Checks for literals used in interpolation.'
488
- Enabled: false
489
-
490
- Lint/Loop:
491
- Description: >-
492
- Use Kernel#loop with break rather than begin/end/until or
493
- begin/end/while for post-loop tests.
494
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#loop-with-break'
495
- Enabled: false
496
-
497
- Lint/NestedMethodDefinition:
498
- Description: 'Do not use nested method definitions.'
499
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-methods'
500
- Enabled: false
501
-
502
- Lint/NonLocalExitFromIterator:
503
- Description: 'Do not use return in iterator to cause non-local exit.'
504
- Enabled: false
505
-
506
- Lint/ParenthesesAsGroupedExpression:
507
- Description: >-
508
- Checks for method calls with a space before the opening
509
- parenthesis.
510
- StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-no-spaces'
511
- Enabled: false
512
-
513
- Lint/RequireParentheses:
514
- Description: >-
515
- Use parentheses in the method call to avoid confusion
516
- about precedence.
517
- Enabled: false
518
-
519
- Lint/UnderscorePrefixedVariableName:
520
- Description: 'Do not use prefix `_` for a variable that is used.'
521
- Enabled: false
522
-
523
- Lint/UnneededDisable:
524
- Description: >-
525
- Checks for rubocop:disable comments that can be removed.
526
- Note: this cop is not disabled when disabling all cops.
527
- It must be explicitly disabled.
528
- Enabled: false
529
-
530
- Lint/Void:
531
- Description: 'Possible use of operator/literal/variable in void context.'
532
- Enabled: false
533
-
534
- # Performance
535
-
536
- Performance/CaseWhenSplat:
537
- Description: >-
538
- Place `when` conditions that use splat at the end
539
- of the list of `when` branches.
540
- Enabled: false
541
-
542
- Performance/Count:
543
- Description: >-
544
- Use `count` instead of `select...size`, `reject...size`,
545
- `select...count`, `reject...count`, `select...length`,
546
- and `reject...length`.
547
- Enabled: false
548
-
549
- Performance/Detect:
550
- Description: >-
551
- Use `detect` instead of `select.first`, `find_all.first`,
552
- `select.last`, and `find_all.last`.
553
- Reference: 'https://github.com/JuanitoFatas/fast-ruby#enumerabledetect-vs-enumerableselectfirst-code'
554
- Enabled: false
555
-
556
- Performance/FlatMap:
557
- Description: >-
558
- Use `Enumerable#flat_map`
559
- instead of `Enumerable#map...Array#flatten(1)`
560
- or `Enumberable#collect..Array#flatten(1)`
561
- Reference: 'https://github.com/JuanitoFatas/fast-ruby#enumerablemaparrayflatten-vs-enumerableflat_map-code'
562
- Enabled: false
563
-
564
- Performance/ReverseEach:
565
- Description: 'Use `reverse_each` instead of `reverse.each`.'
566
- Reference: 'https://github.com/JuanitoFatas/fast-ruby#enumerablereverseeach-vs-enumerablereverse_each-code'
567
- Enabled: false
568
-
569
- Performance/Sample:
570
- Description: >-
571
- Use `sample` instead of `shuffle.first`,
572
- `shuffle.last`, and `shuffle[Fixnum]`.
573
- Reference: 'https://github.com/JuanitoFatas/fast-ruby#arrayshufflefirst-vs-arraysample-code'
574
- Enabled: false
575
-
576
- Performance/Size:
577
- Description: >-
578
- Use `size` instead of `count` for counting
579
- the number of elements in `Array` and `Hash`.
580
- Reference: 'https://github.com/JuanitoFatas/fast-ruby#arraycount-vs-arraysize-code'
581
- Enabled: false
582
-
583
- Performance/StringReplacement:
584
- Description: >-
585
- Use `tr` instead of `gsub` when you are replacing the same
586
- number of characters. Use `delete` instead of `gsub` when
587
- you are deleting characters.
588
- Reference: 'https://github.com/JuanitoFatas/fast-ruby#stringgsub-vs-stringtr-code'
589
- Enabled: false
590
-
591
- # Rails
592
-
593
- Rails/ActionFilter:
594
- Description: 'Enforces consistent use of action filter methods.'
595
- Enabled: false
596
-
597
- Rails/Date:
598
- Description: >-
599
- Checks the correct usage of date aware methods,
600
- such as Date.today, Date.current etc.
601
- Enabled: false
602
-
603
- Rails/FindBy:
604
- Description: 'Prefer find_by over where.first.'
605
- Enabled: false
606
-
607
- Rails/FindEach:
608
- Description: 'Prefer all.find_each over all.find.'
609
- Enabled: false
610
-
611
- Rails/HasAndBelongsToMany:
612
- Description: 'Prefer has_many :through to has_and_belongs_to_many.'
613
- Enabled: false
614
-
615
- Rails/Output:
616
- Description: 'Checks for calls to puts, print, etc.'
617
- Enabled: false
618
-
619
- Rails/ReadWriteAttribute:
620
- Description: >-
621
- Checks for read_attribute(:attr) and
622
- write_attribute(:attr, val).
623
- Enabled: false
624
-
625
- Rails/ScopeArgs:
626
- Description: 'Checks the arguments of ActiveRecord scopes.'
627
- Enabled: false
21
+ Exclude:
22
+ # RSpec expectations can easily go multiline. And sometimes, it's all not
23
+ # about multiple arguments, but more about & or | operators. Comma placed
24
+ # after a single method argument which spans across many lines is confusing,
25
+ # not helpful. Hence, I'm disabling this cop for all specs.
26
+ - "spec/**/*"
628
27
 
629
- Rails/TimeZone:
630
- Description: 'Checks the correct usage of time zone aware methods.'
631
- StyleGuide: 'https://github.com/bbatsov/rails-style-guide#time'
632
- Reference: 'http://danilenko.org/2012/7/6/rails_timezones'
633
- Enabled: false
28
+ Metrics/BlockLength:
29
+ Exclude:
30
+ - "spec/**/*"
31
+ - "**/*.rake"
32
+ - "Rakefile"
634
33
 
635
- Rails/Validation:
636
- Description: 'Use validates :attribute, hash of validations.'
637
- Enabled: false
34
+ Style/HashSyntax:
35
+ Exclude:
36
+ - "Rakefile"