rubocop-pave 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: 5716f99ea3b582163c87ee69c85bd31303fba7d50ba7c5f1ecf52c1f3219c666
4
+ data.tar.gz: ca3754666e3e235d590eae2744ce50e26cdefd6e9fb1715ba3672397284ebdf3
5
+ SHA512:
6
+ metadata.gz: f8eea469d75c06cee1efa000ae378c2dabb74686204c8e1f2334b238d0f78b86a17949118d76f250466c43572559c91d27e149dc4b0c8da273b741b895855b83
7
+ data.tar.gz: 6ecdb810a2f051a039722777ff095696d3ab77224b223d188ef6cb8de6fd978fde5ef9e6eb0504e56a8c09333ca2e3420ebbe427b881b31f314952d788699567
data/Gemfile ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in rubocop-pave.gemspec
6
+ gemspec
7
+
8
+ gem "rake", "~> 13.0"
data/README.md ADDED
@@ -0,0 +1,37 @@
1
+ # rubocop-pave
2
+
3
+ Pave shared rubocop configs.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ group :test, :development do
11
+ gem 'rubocop-pave'
12
+ end
13
+ ```
14
+
15
+ And then run:
16
+
17
+ ```bash
18
+ bundle install
19
+ ```
20
+
21
+ ## Usage
22
+
23
+ Create a `.rubocop.yml` with the following directives:
24
+
25
+ ```yaml
26
+ inherit_gem:
27
+ rubocop-pave:
28
+ - default.yml
29
+ ```
30
+
31
+ Now, run:
32
+
33
+ ```bash
34
+ bundle exec rubocop
35
+ ```
36
+
37
+ You do not need to include rubocop directly in your application's dependencies. rubocop-pave will include a specific version of `rubocop` and `rubocop-rspec` that is shared across all projects.
data/Rakefile ADDED
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ task default: %i[]
data/default.yml ADDED
@@ -0,0 +1,71 @@
1
+ require:
2
+ - rubocop-performance
3
+ - rubocop-rails
4
+ - rubocop-rspec
5
+
6
+ AllCops:
7
+ NewCops: enable
8
+ Exclude:
9
+ - 'vendor/**/*'
10
+ - "config/**/*"
11
+ - "bin/**/*"
12
+ - "db/structure.sql"
13
+
14
+ Style/Documentation:
15
+ Enabled: false
16
+
17
+ Style/EmptyMethod:
18
+ Enabled: false
19
+
20
+ Style/FrozenStringLiteralComment:
21
+ Enabled: false
22
+
23
+ Style/NumericLiterals:
24
+ Enabled: false
25
+
26
+ Style/HashSyntax:
27
+ EnforcedShorthandSyntax: never
28
+
29
+ Layout/FirstMethodArgumentLineBreak:
30
+ Enabled: true
31
+
32
+ Layout/MultilineMethodArgumentLineBreaks:
33
+ Enabled: true
34
+
35
+ RSpec/ContextWording:
36
+ Prefixes:
37
+ - when
38
+ - and
39
+
40
+ Naming/VariableNumber:
41
+ EnforcedStyle: snake_case
42
+ AllowedIdentifiers: ['auth0']
43
+
44
+ RSpec/ExampleLength:
45
+ Enabled: false
46
+
47
+ RSpec/MessageSpies:
48
+ Enabled: false
49
+
50
+ RSpec/NestedGroups:
51
+ Enabled: false
52
+
53
+ RSpec/MultipleExpectations:
54
+ Enabled: false
55
+
56
+ RSpec/AlignLeftLetBrace:
57
+ Enabled: true
58
+
59
+ RSpec/StubbedMock:
60
+ Enabled: false
61
+
62
+ RSpec/MultipleMemoizedHelpers:
63
+ Max: 10
64
+
65
+ Metrics/BlockLength:
66
+ Enabled: true
67
+ Exclude:
68
+ - "spec/**/*"
69
+
70
+ Rails/NotNullColumn:
71
+ Enabled: false
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Rubocop
4
+ module Pave
5
+ VERSION = "0.1.0"
6
+ end
7
+ end
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "pave/version"
4
+
5
+ module Rubocop
6
+ module Pave
7
+ class Error < StandardError; end
8
+ # Your code goes here...
9
+ end
10
+ end
metadata ADDED
@@ -0,0 +1,107 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rubocop-pave
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Team Pave
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2022-09-13 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rubocop
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.36'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.36'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rubocop-performance
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rubocop-rails
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rubocop-rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ description:
70
+ email:
71
+ - edp@paveapp.com
72
+ executables: []
73
+ extensions: []
74
+ extra_rdoc_files: []
75
+ files:
76
+ - Gemfile
77
+ - README.md
78
+ - Rakefile
79
+ - default.yml
80
+ - lib/rubocop/pave.rb
81
+ - lib/rubocop/pave/version.rb
82
+ homepage: https://github.com/teampave/rubocop-pave
83
+ licenses: []
84
+ metadata:
85
+ allowed_push_host: https://rubygems.org
86
+ homepage_uri: https://github.com/teampave/rubocop-pave
87
+ source_code_uri: https://github.com/teampave/rubocop-pave
88
+ post_install_message:
89
+ rdoc_options: []
90
+ require_paths:
91
+ - lib
92
+ required_ruby_version: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: 2.6.0
97
+ required_rubygems_version: !ruby/object:Gem::Requirement
98
+ requirements:
99
+ - - ">="
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ requirements: []
103
+ rubygems_version: 3.3.7
104
+ signing_key:
105
+ specification_version: 4
106
+ summary: Pave shared rubocop configs.
107
+ test_files: []