rubocop-ruby1_8 2.0.2 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +90 -8
- data/CITATION.cff +20 -0
- data/CODE_OF_CONDUCT.md +79 -29
- data/CONTRIBUTING.md +260 -27
- data/FUNDING.md +70 -0
- data/LICENSE.md +10 -0
- data/README.md +423 -331
- data/RUBOCOP.md +71 -0
- data/SECURITY.md +3 -4
- data/certs/pboling.pem +27 -0
- data/lib/rubocop/ruby1_8/version.rb +2 -1
- data/lib/rubocop/ruby1_8.rb +2 -2
- data/sig/rubocop/ruby1_8/version.rbs +8 -0
- data/sig/rubocop/ruby1_8.rbs +0 -1
- data.tar.gz.sig +0 -0
- metadata +232 -68
- metadata.gz.sig +0 -0
- data/LICENSE.txt +0 -21
- data/rubocop-lts/rails.yml +0 -15
- data/rubocop-lts/rails_rspec.yml +0 -6
- data/rubocop-lts/rspec.yml +0 -15
- data/rubocop-lts/ruby.yml +0 -43
- data/rubocop-lts/ruby_rspec.yml +0 -6
- data/rubocop-lts/rubygem.yml +0 -6
- data/rubocop-lts/rubygem_rspec.yml +0 -4
- data/rubocop-lts/strict/rails.yml +0 -22
- data/rubocop-lts/strict/rspec.yml +0 -14
- data/rubocop-lts/strict/ruby.yml +0 -14
- data/rubocop.yml +0 -15
data/rubocop-lts/ruby.yml
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
# Customizations/Deviations from Standard for Ruby Coding Standards
|
|
2
|
-
|
|
3
|
-
# We want Exclude, and Include, directives from different
|
|
4
|
-
# config files to get merged, not overwritten
|
|
5
|
-
inherit_mode:
|
|
6
|
-
merge:
|
|
7
|
-
- Exclude
|
|
8
|
-
- Include
|
|
9
|
-
|
|
10
|
-
require:
|
|
11
|
-
# Loads the Standard Ruby suite of gems, and configures for rubocop-lts:
|
|
12
|
-
- standard-rubocop-lts
|
|
13
|
-
# RuboCop Gradual can be used in "Require mode", which is a way to replace rubocop with rubocop-gradual:
|
|
14
|
-
- rubocop/gradual/patch
|
|
15
|
-
|
|
16
|
-
# Rules are overridden in a LIFO stack.
|
|
17
|
-
# This is the opposite of what you might expect.
|
|
18
|
-
inherit_gem:
|
|
19
|
-
standard-rubocop-lts: config/ruby-1.8.yml
|
|
20
|
-
|
|
21
|
-
inherit_from:
|
|
22
|
-
- strict/ruby.yml
|
|
23
|
-
|
|
24
|
-
AllCops:
|
|
25
|
-
# When the Ruby community, via RuboCop, adopts a new standard
|
|
26
|
-
# (with additional filtering by standard.rb) it is good enough for us!
|
|
27
|
-
NewCops: enable
|
|
28
|
-
|
|
29
|
-
# Metrics cops are disabled in Standard by default
|
|
30
|
-
Metrics:
|
|
31
|
-
Enabled: true
|
|
32
|
-
|
|
33
|
-
plugins:
|
|
34
|
-
# Lint Markdown code examples through RuboCop's plugin API.
|
|
35
|
-
- rubocop-md
|
|
36
|
-
# Rubygems have Rakefile as a convention, and if they don't, why not?
|
|
37
|
-
- rubocop-rake
|
|
38
|
-
# Warn about thread unsafe code in the broad LTS Ruby profile.
|
|
39
|
-
- rubocop-thread_safety
|
|
40
|
-
|
|
41
|
-
# Ruby specific customizations
|
|
42
|
-
Layout/LineLength:
|
|
43
|
-
Max: 120
|
data/rubocop-lts/ruby_rspec.yml
DELETED
data/rubocop-lts/rubygem.yml
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# These Cops Must Always Be Enabled!
|
|
2
|
-
# These Cops check for things that are *literally* bugs,
|
|
3
|
-
# and no code should ever be released that fails these cops.
|
|
4
|
-
#
|
|
5
|
-
# The Exclude: [] is crucial here:
|
|
6
|
-
# even if our .rubocop_todo.yml contained exclusions for strict cops, we nullify them here,
|
|
7
|
-
# thus, re-activating these cops for all the files.
|
|
8
|
-
#
|
|
9
|
-
# These settings must be loaded after any files of "TODOs" that instruct RuboCop to ignore errors.
|
|
10
|
-
# Fortunately this project doesn't rely on TODOs, instead relying on a rubocop_gradual lockfile.
|
|
11
|
-
#
|
|
12
|
-
Rails/Output: # Don't leave puts-debugging
|
|
13
|
-
Enabled: true
|
|
14
|
-
Exclude: []
|
|
15
|
-
|
|
16
|
-
Rails/FindEach: # each could severely affect the performance, use find_each
|
|
17
|
-
Enabled: true
|
|
18
|
-
Exclude: []
|
|
19
|
-
|
|
20
|
-
Rails/UniqBeforePluck: # uniq.pluck and not pluck.uniq
|
|
21
|
-
Enabled: true
|
|
22
|
-
Exclude: []
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
# These Cops Must Always Be Enabled!
|
|
2
|
-
# These Cops check for things that are *literally* bugs,
|
|
3
|
-
# and no code should ever be released that fails these cops.
|
|
4
|
-
#
|
|
5
|
-
# The Exclude: [] is crucial here:
|
|
6
|
-
# even if our .rubocop_todo.yml contained exclusions for strict cops, we nullify them here,
|
|
7
|
-
# thus, re-activating these cops for all the files.
|
|
8
|
-
#
|
|
9
|
-
# These settings must be loaded after any files of "TODOs" that instruct RuboCop to ignore errors.
|
|
10
|
-
# Fortunately this project doesn't rely on TODOs, instead relying on a rubocop_gradual lockfile.
|
|
11
|
-
#
|
|
12
|
-
RSpec/Focus: # run ALL tests on CI
|
|
13
|
-
Enabled: true
|
|
14
|
-
Exclude: []
|
data/rubocop-lts/strict/ruby.yml
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
# These Cops Must Always Be Enabled!
|
|
2
|
-
# These Cops check for things that are *literally* bugs,
|
|
3
|
-
# and no code should ever be released that fails these cops.
|
|
4
|
-
#
|
|
5
|
-
# The Exclude: [] is crucial here:
|
|
6
|
-
# even if our .rubocop_todo.yml contained exclusions for strict cops, we nullify them here,
|
|
7
|
-
# thus, re-activating these cops for all the files.
|
|
8
|
-
#
|
|
9
|
-
# These settings must be loaded after any files of "TODOs" that instruct RuboCop to ignore errors.
|
|
10
|
-
# Fortunately this project doesn't rely on TODOs, instead relying on a rubocop_gradual lockfile.
|
|
11
|
-
#
|
|
12
|
-
Lint/Debugger: # don't leave binding.pry
|
|
13
|
-
Enabled: true
|
|
14
|
-
Exclude: []
|
data/rubocop.yml
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# Change the file you inherit if you:
|
|
2
|
-
# * use Rails,
|
|
3
|
-
# * are creating a RubyGem, or
|
|
4
|
-
# * don't use RSpec
|
|
5
|
-
# As follows:
|
|
6
|
-
# inherit_gem:
|
|
7
|
-
# # Pick one:
|
|
8
|
-
# # rubocop-ruby1_8: rubocop-lts/rails_rspec.yml # or rubocop-lts/rails.yml w/o rspec
|
|
9
|
-
# # rubocop-ruby1_8: rubocop-lts/ruby_rspec.yml # or rubocop-lts/ruby.yml w/o rspec
|
|
10
|
-
# # rubocop-ruby1_8: rubocop-lts/rubygem_rspec.yml # or rubocop-lts/rubygem.yml w/o rspec
|
|
11
|
-
# # Convention over configuration, hence loading this file just only Ruby and RSpec defaults:
|
|
12
|
-
# rubocop-ruby1_8: rubocop.yml # for the ruby + rspec
|
|
13
|
-
|
|
14
|
-
inherit_from:
|
|
15
|
-
- rubocop-lts/rubygem_rspec.yml
|