Skip to content

Commit dc80853

Browse files
authored
Enable all cops, but explicitly opt each file out (#5608)
The idea here being that we can go in and opt each file in as we work on it
1 parent 344ee2d commit dc80853

File tree

1,008 files changed

+1019
-20
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,008 files changed

+1019
-20
lines changed

.rubocop.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
inherit_from: .rubocop_todo.yml
2-
31
require:
42
- rubocop-performance
53
- rubocop-rails
@@ -10,46 +8,48 @@ AllCops:
108
TargetRubyVersion: 2.6
119
NewCops: enable
1210
Exclude:
13-
- 'spec/shared/lib/mrss/**/*'
11+
- 'spec/shared/**/*'
1412
- 'vendor/**/*'
13+
- 'tmp/**/*'
14+
- 'test-apps/**/*'
1515

1616
# -----------------------------------
1717
# TODO: Enable and fix the cops below
1818
# -----------------------------------
1919

2020
Gemspec:
21-
Enabled: false
21+
Enabled: true
2222

2323
Layout:
24-
Enabled: false
24+
Enabled: true
2525

2626
Lint:
27-
Enabled: false
27+
Enabled: true
2828

2929
Metrics:
30-
Enabled: false
30+
Enabled: true
3131

3232
Naming:
33-
Enabled: false
33+
Enabled: true
3434

3535
Performance:
36-
Enabled: false
36+
Enabled: true
3737

3838
Rake:
39-
Enabled: false
39+
Enabled: true
4040

4141
Rails:
42-
Enabled: false
42+
Enabled: true
4343

4444
RSpec:
45-
Enabled: false
45+
Enabled: true
4646

4747
Security:
4848
Exclude:
4949
- 'spec/**/*'
5050

5151
Style:
52-
Enabled: false
52+
Enabled: true
5353

5454
# --------------------------------------
5555
# Cops below this line set intentionally

.rubocop_todo.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# rubocop:todo all
12
source 'https://rubygems.org'
23

34
gemspec

Rakefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# frozen_string_literal: true
2+
# rubocop:todo all
23

34
require "bundler"
45
require "bundler/gem_tasks"

examples/mongoid_test.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# frozen_string_literal: true
2+
# rubocop:todo all
23

34
require 'mongoid'
45
require 'mongoid/support/query_counter'

gemfiles/bson_master.gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# rubocop:todo all
12
source "https://rubygems.org"
23
gemspec path: '..'
34

gemfiles/bson_min.gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# rubocop:todo all
12
source "https://rubygems.org"
23
gemspec path: '..'
34

gemfiles/driver_master.gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# rubocop:todo all
12
source "https://rubygems.org"
23

34
gem 'bson', git: "https://github.com/mongodb/bson-ruby", branch: '4-stable'

gemfiles/driver_master_jruby.gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# rubocop:todo all
12
source "https://rubygems.org"
23

34
# Due to https://github.com/jruby/jruby/issues/5292 /

gemfiles/driver_min.gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# rubocop:todo all
12
source "https://rubygems.org"
23

34
gem 'mongo', git: "https://github.com/mongodb/mongo-ruby-driver", branch: '2.18-stable'

0 commit comments

Comments
 (0)