rubocop-config-prettier 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: b88ae4764313222d53ce60703f2ec2d7a73b8327f4aa81f063772fb81d38188a
4
+ data.tar.gz: 16983f8ed207bd38ef740fe94b7f517f77a67d459f659d9fd60cd26fccdf2bb4
5
+ SHA512:
6
+ metadata.gz: 9f01755ec21f2e0008e35b7abe19ea85ad5a4a9f7f8571c1b3ee17d9ae244ccdbaba4730439dc0c9c1d848868934be0d6be1e85e4150c8326aa32b022bcc934b
7
+ data.tar.gz: eae61f22f1d3a87f5b59f18d143443a56099d43f4eb5f80a4842a46cc7e676f03d1384f5861b49d79474979325cb82f56f7e43a5ab82ebe61fb6c2b32ac14c88
data/.gitignore ADDED
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.travis.yml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ sudo: false
3
+ language: ruby
4
+ cache: bundler
5
+ rvm:
6
+ - 2.6.2
7
+ before_install: gem install bundler -v 2.0.1
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "https://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in rubocop-config-prettier.gemspec
4
+ gemspec
data/README.md ADDED
@@ -0,0 +1,39 @@
1
+ # Rubocop::Config::Prettier
2
+
3
+ Turns off all rules that are unnecessary or might conflict with
4
+ [prettier plugin ruby](https://github.com/prettier/plugin-ruby).
5
+
6
+ ## Installation
7
+
8
+ Add this line to your application's Gemfile:
9
+
10
+ ```ruby
11
+ gem 'rubocop-config-prettier'
12
+ ```
13
+
14
+ And then execute:
15
+
16
+ $ bundle
17
+
18
+ Or install it yourself as:
19
+
20
+ $ gem install rubocop-config-prettier
21
+
22
+ ## Usage
23
+
24
+ Add the following code to your rubocop config file.
25
+
26
+ ```
27
+ inherit_gem:
28
+ rubocop-config-prettier: config/rubocop.yml
29
+ ```
30
+
31
+ ## Development
32
+
33
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
34
+
35
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
36
+
37
+ ## Contributing
38
+
39
+ Bug reports and pull requests are welcome on GitHub at https://github.com/xinminlabs/rubocop-config-prettier.
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "rubocop/config/prettier"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,366 @@
1
+ Layout/AccessModifierIndentation:
2
+ Enabled: false
3
+
4
+ Layout/AlignArguments:
5
+ Enabled: false
6
+
7
+ Layout/AlignArray:
8
+ Enabled: false
9
+
10
+ Layout/AlignHash:
11
+ Enabled: false
12
+
13
+ Layout/AlignParameters:
14
+ Enabled: false
15
+
16
+ Layout/BlockAlignment:
17
+ Enabled: false
18
+
19
+ Layout/BlockEndNewline:
20
+ Enabled: false
21
+
22
+ Layout/CaseIndentation:
23
+ Enabled: false
24
+
25
+ # Layout/ClassStructure
26
+
27
+ # Layout/ClosingHeredocIndentation
28
+
29
+ Layout/ClosingParenthesisIndentation:
30
+ Enabled: false
31
+
32
+ Layout/CommentIndentation:
33
+ Enabled: false
34
+
35
+ Layout/ConditionPosition:
36
+ Enabled: false
37
+
38
+ Layout/DefEndAlignment:
39
+ Enabled: false
40
+
41
+ Layout/DotPosition:
42
+ Enabled: false
43
+
44
+ Layout/ElseAlignment:
45
+ Enabled: false
46
+
47
+ # Layout/EmptyComment
48
+
49
+ # Layout/EmptyLineAfterGuardClause
50
+
51
+ # Layout/EmptyLineAfterMagicComment
52
+
53
+ # Layout/EmptyLineBetweenDefs
54
+
55
+ Layout/EmptyLines:
56
+ Enabled: false
57
+
58
+ Layout/EmptyLinesAroundAccessModifier:
59
+ Enabled: false
60
+
61
+ Layout/EmptyLinesAroundArguments:
62
+ Enabled: false
63
+
64
+ Layout/EmptyLinesAroundBeginBody:
65
+ Enabled: false
66
+
67
+ Layout/EmptyLinesAroundBlockBody:
68
+ Enabled: false
69
+
70
+ Layout/EmptyLinesAroundClassBody:
71
+ Enabled: false
72
+
73
+ Layout/EmptyLinesAroundExceptionHandlingKeywords:
74
+ Enabled: false
75
+
76
+ Layout/EmptyLinesAroundMethodBody:
77
+ Enabled: false
78
+
79
+ Layout/EmptyLinesAroundModuleBody:
80
+ Enabled: false
81
+
82
+ Layout/EndAlignment:
83
+ Enabled: false
84
+
85
+ Layout/EndOfLine:
86
+ Enabled: false
87
+
88
+ Layout/ExtraSpacing:
89
+ Enabled: false
90
+
91
+ Layout/FirstArrayElementLineBreak:
92
+ Enabled: false
93
+
94
+ Layout/FirstHashElementLineBreak:
95
+ Enabled: false
96
+
97
+ Layout/FirstMethodArgumentLineBreak:
98
+ Enabled: false
99
+
100
+ Layout/FirstMethodParameterLineBreak:
101
+ Enabled: false
102
+
103
+ Layout/FirstParameterIndentation:
104
+ Enabled: false
105
+
106
+ # Layout/HeredocArgumentClosingParenthesis
107
+
108
+ Layout/IndentArray:
109
+ Enabled: false
110
+
111
+ Layout/IndentAssignment:
112
+ Enabled: false
113
+
114
+ Layout/IndentFirstArrayElement:
115
+ Enabled: false
116
+
117
+ Layout/IndentFirstHashElement:
118
+ Enabled: false
119
+
120
+ Layout/IndentFirstParameter:
121
+ Enabled: false
122
+
123
+ Layout/IndentHash:
124
+ Enabled: false
125
+
126
+ # Layout/IndentHeredoc
127
+
128
+ Layout/IndentationConsistency:
129
+ Enabled: false
130
+
131
+ Layout/IndentationWidth:
132
+ Enabled: false
133
+
134
+ Layout/InitialIndentation:
135
+ Enabled: false
136
+
137
+ Layout/LeadingBlankLines:
138
+ Enabled: false
139
+
140
+ # Layout/LeadingCommentSpace
141
+
142
+ Layout/MultilineArrayBraceLayout:
143
+ Enabled: false
144
+
145
+ Layout/MultilineArrayLineBreaks:
146
+ Enabled: false
147
+
148
+ Layout/MultilineAssignmentLayout:
149
+ Enabled: false
150
+
151
+ Layout/MultilineBlockLayout:
152
+ Enabled: false
153
+
154
+
155
+ Layout/MultilineHashBraceLayout:
156
+ Enabled: false
157
+
158
+ Layout/MultilineHashKeyLineBreaks:
159
+ Enabled: false
160
+
161
+ Layout/MultilineMethodArgumentLineBreaks:
162
+ Enabled: false
163
+
164
+ Layout/MultilineMethodCallBraceLayout:
165
+ Enabled: false
166
+
167
+ Layout/MultilineMethodCallIndentation:
168
+ Enabled: false
169
+
170
+ Layout/MultilineMethodDefinitionBraceLayout:
171
+ Enabled: false
172
+
173
+ Layout/MultilineOperationIndentation:
174
+ Enabled: false
175
+
176
+ Layout/RescueEnsureAlignment:
177
+ Enabled: false
178
+
179
+ Layout/SpaceAfterColon:
180
+ Enabled: false
181
+
182
+ Layout/SpaceAfterComma:
183
+ Enabled: false
184
+
185
+ Layout/SpaceAfterMethodName:
186
+ Enabled: false
187
+
188
+ Layout/SpaceAfterNot:
189
+ Enabled: false
190
+
191
+ Layout/SpaceAfterSemicolon:
192
+ Enabled: false
193
+
194
+ Layout/SpaceAroundBlockParameters:
195
+ Enabled: false
196
+
197
+ Layout/SpaceAroundEqualsInParameterDefault:
198
+ Enabled: false
199
+
200
+ Layout/SpaceAroundKeyword:
201
+ Enabled: false
202
+
203
+ Layout/SpaceAroundOperators:
204
+ Enabled: false
205
+
206
+ Layout/SpaceBeforeBlockBraces:
207
+ Enabled: false
208
+
209
+ Layout/SpaceBeforeComma:
210
+ Enabled: false
211
+
212
+ Layout/SpaceBeforeComment:
213
+ Enabled: false
214
+
215
+ Layout/SpaceBeforeFirstArg:
216
+ Enabled: false
217
+
218
+ Layout/SpaceBeforeSemicolon:
219
+ Enabled: false
220
+
221
+ Layout/SpaceInLambdaLiteral:
222
+ Enabled: false
223
+
224
+ Layout/SpaceInsideArrayLiteralBrackets:
225
+ Enabled: false
226
+
227
+ Layout/SpaceInsideArrayPercentLiteral:
228
+ Enabled: false
229
+
230
+ Layout/SpaceInsideBlockBraces:
231
+ Enabled: false
232
+
233
+ Layout/SpaceInsideHashLiteralBraces:
234
+ Enabled: false
235
+
236
+ Layout/SpaceInsideParens:
237
+ Enabled: false
238
+
239
+ Layout/SpaceInsidePercentLiteralDelimiters:
240
+ Enabled: false
241
+
242
+ Layout/SpaceInsideRangeLiteral:
243
+ Enabled: false
244
+
245
+ Layout/SpaceInsideReferenceBrackets:
246
+ Enabled: false
247
+
248
+ Layout/SpaceInsideStringInterpolation:
249
+ Enabled: false
250
+
251
+ Layout/Tab:
252
+ Enabled: false
253
+
254
+ Layout/TrailingBlankLines:
255
+ Enabled: false
256
+
257
+ Metrics/LineLength:
258
+ Enabled: false
259
+
260
+ Layout/TrailingWhitespace:
261
+ Enabled: false
262
+
263
+ Style/BlockDelimiters:
264
+ Enabled: false
265
+
266
+ Style/CommandLiteral:
267
+ Enabled: false
268
+
269
+ Style/HashSyntax:
270
+ Enabled: false
271
+
272
+ Style/IfUnlessModifier:
273
+ Enabled: false
274
+
275
+ Style/IfWithSemicolon:
276
+ Enabled: false
277
+
278
+ Style/Lambda:
279
+ Enabled: false
280
+
281
+ Style/LambdaCall:
282
+ Enabled: false
283
+
284
+ Style/MethodCallWithoutArgsParentheses:
285
+ Enabled: false
286
+
287
+ Style/MethodDefParentheses:
288
+ Enabled: false
289
+
290
+ Style/MultilineIfModifier:
291
+ Enabled: false
292
+
293
+ Style/MultilineIfThen:
294
+ Enabled: false
295
+
296
+ Style/MultilineMethodSignature:
297
+ Enabled: false
298
+
299
+ Style/MultilineTernaryOperator:
300
+ Enabled: false
301
+
302
+ Style/NestedTernaryOperator:
303
+ Enabled: false
304
+
305
+ Style/NumericLiterals:
306
+ Enabled: false
307
+
308
+ Style/RedundantBegin:
309
+ Enabled: false
310
+
311
+ Style/RescueModifier:
312
+ Enabled: false
313
+
314
+ Style/Semicolon:
315
+ Enabled: false
316
+
317
+ Style/SingleLineMethods:
318
+ Enabled: false
319
+
320
+ Style/StabbyLambdaParentheses:
321
+ Enabled: false
322
+
323
+ Style/StringLiterals:
324
+ Enabled: false
325
+
326
+ Style/StringLiteralsInInterpolation:
327
+ Enabled: false
328
+
329
+ Style/SymbolArray:
330
+ Enabled: false
331
+
332
+ Style/SymbolProc:
333
+ Enabled: false
334
+
335
+ Style/TrailingBodyOnClass:
336
+ Enabled: false
337
+
338
+ Style/TrailingBodyOnMethodDefinition:
339
+ Enabled: false
340
+
341
+ Style/TrailingBodyOnModule:
342
+ Enabled: false
343
+
344
+ Style/TrailingCommaInArguments:
345
+ Enabled: false
346
+
347
+ Style/TrailingCommaInArrayLiteral:
348
+ Enabled: false
349
+
350
+ Style/TrailingCommaInHashLiteral:
351
+ Enabled: false
352
+
353
+ Style/TrailingMethodEndStatement:
354
+ Enabled: false
355
+
356
+ Style/VariableInterpolation:
357
+ Enabled: false
358
+
359
+ Style/WhileUntilDo:
360
+ Enabled: false
361
+
362
+ Style/WhileUntilModifier:
363
+ Enabled: false
364
+
365
+ Style/WordArray:
366
+ Enabled: false
@@ -0,0 +1,7 @@
1
+ module Rubocop
2
+ module Config
3
+ module Prettier
4
+ VERSION = "0.1.0"
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,10 @@
1
+ require "rubocop/config/prettier/version"
2
+
3
+ module Rubocop
4
+ module Config
5
+ module Prettier
6
+ class Error < StandardError; end
7
+ # Your code goes here...
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,28 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "rubocop/config/prettier/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "rubocop-config-prettier"
8
+ spec.version = Rubocop::Config::Prettier::VERSION
9
+ spec.authors = ["Richard Huang"]
10
+ spec.email = ["flyerhzm@gmail.com"]
11
+
12
+ spec.summary = 'Turns off all rules that are unnecessary or might conflict with prettier plugin ruby.'
13
+ spec.description = 'Turns off all rules that are unnecessary or might conflict with prettier plugin ruby.'
14
+ spec.homepage = 'https://github.com/xinminlabs/rubocop-config-prettier'
15
+
16
+ # Specify which files should be added to the gem when it is released.
17
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
18
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
19
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
20
+ end
21
+ spec.bindir = "exe"
22
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
+ spec.require_paths = ["lib"]
24
+
25
+ spec.add_development_dependency "bundler", "~> 2.0"
26
+ spec.add_development_dependency "rake", "~> 10.0"
27
+ spec.add_development_dependency "rspec", "~> 3.0"
28
+ end
metadata ADDED
@@ -0,0 +1,98 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rubocop-config-prettier
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Richard Huang
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2019-05-25 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2.0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ description: Turns off all rules that are unnecessary or might conflict with prettier
56
+ plugin ruby.
57
+ email:
58
+ - flyerhzm@gmail.com
59
+ executables: []
60
+ extensions: []
61
+ extra_rdoc_files: []
62
+ files:
63
+ - ".gitignore"
64
+ - ".rspec"
65
+ - ".travis.yml"
66
+ - Gemfile
67
+ - README.md
68
+ - Rakefile
69
+ - bin/console
70
+ - bin/setup
71
+ - config/rubocop.yml
72
+ - lib/rubocop/config/prettier.rb
73
+ - lib/rubocop/config/prettier/version.rb
74
+ - rubocop-config-prettier.gemspec
75
+ homepage: https://github.com/xinminlabs/rubocop-config-prettier
76
+ licenses: []
77
+ metadata: {}
78
+ post_install_message:
79
+ rdoc_options: []
80
+ require_paths:
81
+ - lib
82
+ required_ruby_version: !ruby/object:Gem::Requirement
83
+ requirements:
84
+ - - ">="
85
+ - !ruby/object:Gem::Version
86
+ version: '0'
87
+ required_rubygems_version: !ruby/object:Gem::Requirement
88
+ requirements:
89
+ - - ">="
90
+ - !ruby/object:Gem::Version
91
+ version: '0'
92
+ requirements: []
93
+ rubygems_version: 3.0.3
94
+ signing_key:
95
+ specification_version: 4
96
+ summary: Turns off all rules that are unnecessary or might conflict with prettier
97
+ plugin ruby.
98
+ test_files: []