rubocop-config-captive 1.0.0.pre.alpha.3 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -5
- data/README.md +1 -1
- data/config/__private__/README.md +1 -0
- data/config/__private__/rubocop-airbnb.yml +96 -0
- data/config/__private__/rubocop-bundler.yml +9 -0
- data/config/__private__/rubocop-gemspec.yml +13 -0
- data/config/__private__/rubocop-layout.yml +562 -0
- data/config/__private__/rubocop-lint.yml +306 -0
- data/config/__private__/rubocop-metrics.yml +44 -0
- data/config/__private__/rubocop-naming.yml +89 -0
- data/config/__private__/rubocop-performance.yml +126 -0
- data/config/__private__/rubocop-rails.yml +222 -0
- data/config/__private__/rubocop-rspec.yml +327 -0
- data/config/__private__/rubocop-security.yml +18 -0
- data/config/__private__/rubocop-style.yml +1001 -0
- data/config/default.yml +54 -0
- data/config/rubocop-bundler.yml +6 -0
- data/config/rubocop-captive.yml +33 -0
- data/config/rubocop-capybara.yml +2 -0
- data/config/rubocop-gemspec.yml +3 -0
- data/config/rubocop-layout.yml +45 -0
- data/config/rubocop-lint.yml +3 -0
- data/config/rubocop-metrics.yml +3 -0
- data/config/rubocop-naming.yml +3 -0
- data/config/rubocop-performance.yml +3 -0
- data/config/rubocop-rails.yml +3 -0
- data/config/rubocop-rake.yml +2 -0
- data/config/rubocop-rspec.yml +3 -0
- data/config/rubocop-security.yml +3 -0
- data/config/rubocop-style.yml +3 -0
- data/lib/rubocop/captive/version.rb +8 -0
- data/lib/rubocop-captive.rb +1 -1
- data/rubocop-config-captive.gemspec +5 -2
- metadata +33 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d26b4c18e60a16162ee86f408a1dc11d3282b14e7d0dfee767f338e78b298c7c
|
4
|
+
data.tar.gz: 9d8451ae556c8177d7887f80e72162065c6eb9d81b010cb2f29db5418ce2d412
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3c325ded0d7ab84d1c2b1ffad5c5efc2cec260fe29e9a612f578e39f9523f6ee5b2bce951ddc0e8ac1be9a73652318fbd62c003f3b62188724822fd224adb63
|
7
|
+
data.tar.gz: c42b32494c79c5398a55ce22d4ab1c9cb457ffdcb0c446fd55c7e2002f8fbe31f689bff75d65823484db406f9f705908411782c2b3c5c0ccd98147abd856f9e8
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
# ⚠️ This folder is managed by `script/pull`. Do not edit theses files manually
|
@@ -0,0 +1,96 @@
|
|
1
|
+
### ⚠️ GENERATED WITH `script/pull`. DO NOT EDIT MANUALLY. ###
|
2
|
+
# All of these rules are implemented in this gem.
|
3
|
+
# They are custom built for use inside Airbnb and address issues that we have experienced in
|
4
|
+
# testing and production.
|
5
|
+
|
6
|
+
Airbnb/ClassOrModuleDeclaredInWrongFile:
|
7
|
+
Description: Declare a class or module in the file that matches its namespace and name.
|
8
|
+
Enabled: true
|
9
|
+
Include:
|
10
|
+
- 'app/**/*'
|
11
|
+
- 'lib/**/*'
|
12
|
+
|
13
|
+
Airbnb/ConstAssignedInWrongFile:
|
14
|
+
Description: Assign a const in a file that matches the namespace in which it is scoped.
|
15
|
+
Enabled: true
|
16
|
+
Include:
|
17
|
+
- 'app/**/*'
|
18
|
+
- 'lib/**/*'
|
19
|
+
|
20
|
+
Airbnb/ContinuationSlash:
|
21
|
+
Description: Slash continuation should be reserved for string continatuion. Many times it is
|
22
|
+
used to get around other existing rules.
|
23
|
+
Enabled: true
|
24
|
+
|
25
|
+
Airbnb/DefaultScope:
|
26
|
+
Description: Avoid `default_scope`. Default scopes make it difficult to
|
27
|
+
refactor data access patterns since the scope becomes part of every query unless
|
28
|
+
explicitly excluded, even when it is unnecessary or incidental to the desired logic.
|
29
|
+
Enabled: true
|
30
|
+
|
31
|
+
Airbnb/FactoryAttrReferencesClass:
|
32
|
+
Description: Cop to enforce "attr { CONST }" instead of "attr CONST" in factories,
|
33
|
+
because the latter forces autoload, which slows down spec startup time and
|
34
|
+
Zeus reload time after touching a model.
|
35
|
+
Enabled: true
|
36
|
+
|
37
|
+
Airbnb/FactoryClassUseString:
|
38
|
+
Description: Cop to tell developers to use :class => "MyClass" instead of :class => MyClass,
|
39
|
+
because the latter slows down reloading zeus.
|
40
|
+
Enabled: true
|
41
|
+
|
42
|
+
Airbnb/MassAssignmentAccessibleModifier:
|
43
|
+
Description: Do no override and objects mass assignment restrictions.
|
44
|
+
Enabled: true
|
45
|
+
|
46
|
+
Airbnb/ModuleMethodInWrongFile:
|
47
|
+
Description: Define a module method in the file that defines the module, not a file that
|
48
|
+
happens to use the module as a namespace.
|
49
|
+
Enabled: true
|
50
|
+
Include:
|
51
|
+
- 'app/**/*'
|
52
|
+
- 'lib/**/*'
|
53
|
+
|
54
|
+
Airbnb/NoTimeout:
|
55
|
+
Description: Do not use Timeout.timeout. In combination with Rails autoloading,
|
56
|
+
timeout can cause Segmentation Faults in version of Ruby we use.
|
57
|
+
It can also cause logic errors since it can raise in
|
58
|
+
any callee scope. Use client library timeouts and monitoring to
|
59
|
+
ensure proper timing behavior for web requests.
|
60
|
+
Enabled: true
|
61
|
+
|
62
|
+
Airbnb/OptArgParameters:
|
63
|
+
Description: Do not use default arguments. Use an options hash instead.
|
64
|
+
Enabled: true
|
65
|
+
StyleGuide: https://github.com/airbnb/ruby#no-default-args
|
66
|
+
|
67
|
+
Airbnb/PhraseBundleKeys:
|
68
|
+
Description: Checks for phrase bundle keys that do not match their respective translation keys.
|
69
|
+
Enabled: true
|
70
|
+
|
71
|
+
Airbnb/RiskyActiverecordInvocation:
|
72
|
+
Description: Disallow ActiveRecord calls that use interpolated or added strings as arguments.
|
73
|
+
Enabled: true
|
74
|
+
|
75
|
+
Airbnb/RspecEnvironmentModification:
|
76
|
+
Description: Disallow Rails.env from being stubbed in half measure ways or from being reassigned
|
77
|
+
Use `stub_env` instead.
|
78
|
+
Enabled: true
|
79
|
+
|
80
|
+
Airbnb/SimpleModifierConditional:
|
81
|
+
Enabled: true
|
82
|
+
StyleGuide: https://github.com/airbnb/ruby#only-simple-if-unless
|
83
|
+
|
84
|
+
Airbnb/SimpleUnless:
|
85
|
+
Enabled: true
|
86
|
+
StyleGuide: https://github.com/airbnb/ruby#unless-with-multiple-conditions
|
87
|
+
|
88
|
+
Airbnb/SpecConstantAssignment:
|
89
|
+
Description: Constant assignment in specs polute global namespace and are a cause of spurious
|
90
|
+
specs. They should be avoided. Also modifing existing constants is bad too, use stub_const
|
91
|
+
instead
|
92
|
+
Enabled: true
|
93
|
+
|
94
|
+
Airbnb/UnsafeYamlMarshal:
|
95
|
+
Description: Avoid use of YAML/Marshal methods that can trigger RCE on untrusted input.
|
96
|
+
Enabled: true
|
@@ -0,0 +1,13 @@
|
|
1
|
+
### ⚠️ GENERATED WITH `script/pull`. DO NOT EDIT MANUALLY. ###
|
2
|
+
Gemspec/OrderedDependencies:
|
3
|
+
Enabled: false
|
4
|
+
|
5
|
+
Gemspec/RequiredRubyVersion:
|
6
|
+
Description: Checks that `required_ruby_version` of gemspec and `TargetRubyVersion` of
|
7
|
+
.rubocop.yml are equal.
|
8
|
+
Enabled: false
|
9
|
+
Include:
|
10
|
+
- '**/*.gemspec'
|
11
|
+
|
12
|
+
Gemspec/RubyVersionGlobalsUsage:
|
13
|
+
Enabled: true
|