rubocop-bsm 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 602715c38ceb3977ce60328704c8af3ec03bfdcc989aecf65c3d94a9f656532a
4
+ data.tar.gz: 88142ba38d41ad42c15bd0cfd1f7766b6d7d25866012f9d47076f2cbef8774d5
5
+ SHA512:
6
+ metadata.gz: 4e0a039b6533077ce75d252799e24cd0b5a86cff7f01703268adb31a1fbd938b3068cfe46664ce875c83dee11c28231d908e8472b6f27234a762a26ca1d54373
7
+ data.tar.gz: 351b06ff80b9aec98a11d3383d2f705e8f7c80b92bfea0f09a6b8604b70072c2349b1050187963ccb5b5bfb7e9daeae577b0bdb36fc7a065dd231f5dbdcc948d
@@ -0,0 +1,5 @@
1
+ /.bundle/
2
+ /doc/
3
+ /pkg/
4
+ /tmp/
5
+ /Gemfile.lock
@@ -0,0 +1,4 @@
1
+ inherit_from: default.yml
2
+
3
+ AllCops:
4
+ TargetRubyVersion: 2.6
data/Gemfile ADDED
@@ -0,0 +1,2 @@
1
+ source 'https://rubygems.org'
2
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,13 @@
1
+ Copyright 2021 Black Square Media Ltd
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
@@ -0,0 +1,22 @@
1
+ # RuboCop BSM
2
+
3
+ Default [RuboCops](https://github.com/rubocop-hq/rubocop) for Black Square Media's internal projects.
4
+
5
+ ## Usage
6
+
7
+ In your project folder, add this to your `Gemfile`:
8
+
9
+ ```ruby
10
+ gem 'rubocop-bsm'
11
+ ```
12
+
13
+ Then, put this into your `.rubocop.yml` file:
14
+
15
+ ```yaml
16
+ inherit_gem:
17
+ rubocop-bsm:
18
+ - rails.yml
19
+ inherit_mode:
20
+ merge:
21
+ - Exclude
22
+ ```
@@ -0,0 +1,7 @@
1
+ require 'bundler/setup'
2
+ require 'bundler/gem_tasks'
3
+ require 'rubocop/rake_task'
4
+
5
+ RuboCop::RakeTask.new(:rubocop)
6
+
7
+ task default: %i[rubocop]
@@ -0,0 +1,35 @@
1
+ inherit_from:
2
+ - minimal.yml
3
+ inherit_mode:
4
+ merge:
5
+ - Exclude
6
+
7
+ require:
8
+ - rubocop-performance
9
+ - rubocop-rake
10
+ - rubocop-rspec
11
+
12
+ AllCops:
13
+ Exclude:
14
+ - "vendor/**/*"
15
+ - "**/*_pb.rb"
16
+
17
+ ## Metrics
18
+ Metrics/BlockLength:
19
+ Exclude:
20
+ - "**/*.rake"
21
+ - "**/spec/**/*.rb"
22
+ Metrics/ModuleLength:
23
+ Exclude:
24
+ - "**/*_spec.rb"
25
+
26
+ ## Lint
27
+ Lint/AmbiguousBlockAssociation:
28
+ Exclude:
29
+ - "spec/**/*_spec.rb"
30
+
31
+ ## RSpec
32
+ RSpec/ExampleLength:
33
+ Enabled: false
34
+ RSpec/MultipleExpectations:
35
+ Enabled: false
@@ -0,0 +1,61 @@
1
+ AllCops:
2
+ NewCops: enable
3
+
4
+ ## Metrics
5
+ Metrics/AbcSize:
6
+ Enabled: false
7
+ Metrics/BlockLength:
8
+ Exclude:
9
+ - "**/*.gemspec"
10
+ Metrics/ClassLength:
11
+ Max: 1500
12
+ Metrics/CyclomaticComplexity:
13
+ Max: 20
14
+ Metrics/MethodLength:
15
+ Max: 20
16
+ Metrics/PerceivedComplexity:
17
+ Max: 20
18
+
19
+ ## Layout
20
+ Layout/FirstArrayElementIndentation:
21
+ EnforcedStyle: consistent
22
+ Layout/HashAlignment:
23
+ EnforcedHashRocketStyle: table
24
+ Layout/LineLength:
25
+ Max: 160
26
+ Layout/ParameterAlignment:
27
+ EnforcedStyle: with_fixed_indentation
28
+ Layout/MultilineOperationIndentation:
29
+ Enabled: false
30
+ Layout/SpaceInsideBlockBraces:
31
+ SpaceBeforeBlockParameters: false
32
+
33
+ ## Style
34
+ Style/ClassAndModuleChildren:
35
+ Enabled: false
36
+ Style/Documentation:
37
+ Enabled: false
38
+ Style/FrozenStringLiteralComment:
39
+ Enabled: false
40
+ Style/HashSyntax:
41
+ EnforcedStyle: ruby19_no_mixed_keys
42
+ Style/MultilineIfModifier:
43
+ Enabled: false
44
+ Style/NumericLiterals:
45
+ Enabled: false
46
+ Style/Semicolon:
47
+ AllowAsExpressionSeparator: true
48
+ Style/SingleLineBlockParams:
49
+ Enabled: false
50
+ Style/TrailingCommaInArguments:
51
+ EnforcedStyleForMultiline: consistent_comma
52
+ Style/TrailingCommaInArrayLiteral:
53
+ EnforcedStyleForMultiline: consistent_comma
54
+ Style/TrailingCommaInHashLiteral:
55
+ EnforcedStyleForMultiline: consistent_comma
56
+
57
+ ## RSpec
58
+ RSpec/ExampleLength:
59
+ Enabled: false
60
+ RSpec/MultipleExpectations:
61
+ Enabled: false
@@ -0,0 +1,20 @@
1
+ inherit_from:
2
+ - default.yml
3
+ inherit_mode:
4
+ merge:
5
+ - Exclude
6
+
7
+ require:
8
+ - rubocop-rails
9
+
10
+ AllCops:
11
+ Exclude:
12
+ - "db/schema.rb"
13
+
14
+ ## Metrics
15
+ Metrics/BlockLength:
16
+ Exclude:
17
+ - "db/**/*.rb"
18
+ Metrics/MethodLength:
19
+ Exclude:
20
+ - "db/**/*.rb"
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ Gem::Specification.new do |spec|
4
+ spec.name = 'rubocop-bsm'
5
+ spec.version = '0.5.2'
6
+ spec.authors = ['Black Square Media']
7
+ spec.email = ['info@blacksquaremedia.com']
8
+
9
+ spec.summary = 'Internal RuboCop plugin for BSM'
10
+ spec.description = 'Internal RuboCop plugin for BSM'
11
+ spec.homepage = 'https://github.com/bsm/rubocop-bsm'
12
+ spec.licenses = ['Apache 2.0']
13
+
14
+ spec.metadata['allowed_push_host'] = 'https://rubygems.org'
15
+ spec.required_ruby_version = Gem::Requirement.new('>= 2.6.0')
16
+ spec.files = `git ls-files -z`.split("\x0")
17
+
18
+ spec.add_runtime_dependency 'rubocop', '~> 1.0'
19
+ spec.add_runtime_dependency 'rubocop-performance'
20
+ spec.add_runtime_dependency 'rubocop-rails'
21
+ spec.add_runtime_dependency 'rubocop-rake'
22
+ spec.add_runtime_dependency 'rubocop-rspec'
23
+
24
+ spec.add_development_dependency 'rake'
25
+ end
metadata ADDED
@@ -0,0 +1,138 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rubocop-bsm
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.5.2
5
+ platform: ruby
6
+ authors:
7
+ - Black Square Media
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2021-01-14 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.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.0'
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-rake
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
+ - !ruby/object:Gem::Dependency
70
+ name: rubocop-rspec
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rake
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ description: Internal RuboCop plugin for BSM
98
+ email:
99
+ - info@blacksquaremedia.com
100
+ executables: []
101
+ extensions: []
102
+ extra_rdoc_files: []
103
+ files:
104
+ - ".gitignore"
105
+ - ".rubocop.yml"
106
+ - Gemfile
107
+ - LICENSE
108
+ - README.md
109
+ - Rakefile
110
+ - default.yml
111
+ - minimal.yml
112
+ - rails.yml
113
+ - rubocop-bsm.gemspec
114
+ homepage: https://github.com/bsm/rubocop-bsm
115
+ licenses:
116
+ - Apache 2.0
117
+ metadata:
118
+ allowed_push_host: https://rubygems.org
119
+ post_install_message:
120
+ rdoc_options: []
121
+ require_paths:
122
+ - lib
123
+ required_ruby_version: !ruby/object:Gem::Requirement
124
+ requirements:
125
+ - - ">="
126
+ - !ruby/object:Gem::Version
127
+ version: 2.6.0
128
+ required_rubygems_version: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - ">="
131
+ - !ruby/object:Gem::Version
132
+ version: '0'
133
+ requirements: []
134
+ rubygems_version: 3.1.4
135
+ signing_key:
136
+ specification_version: 4
137
+ summary: Internal RuboCop plugin for BSM
138
+ test_files: []