rubocop-config-captive 1.0.0.pre.alpha.3 → 1.0.2
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
- data/Gemfile +0 -4
- 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 +3 -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: 0a57c5e81ca1dcb56236505d3cf47fe25d33e407f068dcaa8bb7913196fb6c6a
|
4
|
+
data.tar.gz: 4495d14659ddf4b77d58fea203475d4711371bb1826dd98b5db75b8756e35ece
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b9f03bb9413cdf1a319e0c0ad6ab13404776810aa0e8d899f0389f449c712878efb2920ff45f86d6512a887ab00c67c9b61bdc3c623de1be75e0b2e82857ba7
|
7
|
+
data.tar.gz: 4ab73fe00d205402bb3a59a0c37f7bddd62ce0e36c31bc5ecdf79908c5c52436b472c2e862926773f5fe66ec0fb13976404759dd2bae573b93fb55b909615ab0
|
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
|