rubocop-config-captive 1.0.0.pre.alpha.3 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 89d38bf5656750c061e2f17069a6b5b9e2919d462cc1fb527c15896cf807c751
4
- data.tar.gz: 700106edcfd7d46a29150039913a00d1033c6c80ba222cf54c4754da0d729a75
3
+ metadata.gz: 0a57c5e81ca1dcb56236505d3cf47fe25d33e407f068dcaa8bb7913196fb6c6a
4
+ data.tar.gz: 4495d14659ddf4b77d58fea203475d4711371bb1826dd98b5db75b8756e35ece
5
5
  SHA512:
6
- metadata.gz: d24d1dff0a51f0fa491d7233ccc9a2e5b7f9d1ca14519feaa6c65120c3694455bc353e044d625848bad04c53ea69a733ca35fe834ec5449a126deaca64cd75a3
7
- data.tar.gz: d79d9497e83fcfbb5b26cee87bc7fea4b1d017899bda5b75baf22f9cfcac5977589ba5efb870a9f80b07f7d62f9f2b135d698a0503426e3c1682e702b25b5339
6
+ metadata.gz: 0b9f03bb9413cdf1a319e0c0ad6ab13404776810aa0e8d899f0389f449c712878efb2920ff45f86d6512a887ab00c67c9b61bdc3c623de1be75e0b2e82857ba7
7
+ data.tar.gz: 4ab73fe00d205402bb3a59a0c37f7bddd62ce0e36c31bc5ecdf79908c5c52436b472c2e862926773f5fe66ec0fb13976404759dd2bae573b93fb55b909615ab0
data/Gemfile CHANGED
@@ -4,10 +4,6 @@ source "https://rubygems.org"
4
4
 
5
5
  gemspec
6
6
 
7
- gem "rubocop", "~> 1.21"
8
- gem 'rspec'
9
- gem 'rubocop-rspec'
10
-
11
7
  group :test do
12
8
  gem 'pry'
13
9
  end
data/README.md CHANGED
@@ -10,7 +10,7 @@ add the follow line into your `Gemfile`
10
10
 
11
11
  ```ruby
12
12
  group :test, :development do
13
- gem 'rubocop-config-captive', github: 'Captive-Studio/rubocop-config'
13
+ gem 'rubocop-config-captive'
14
14
  end
15
15
  ```
16
16
 
@@ -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,9 @@
1
+ ### ⚠️ GENERATED WITH `script/pull`. DO NOT EDIT MANUALLY. ###
2
+ Bundler/DuplicatedGem:
3
+ Enabled: true
4
+
5
+ Bundler/InsecureProtocolSource:
6
+ Enabled: false
7
+
8
+ Bundler/OrderedGems:
9
+ Enabled: false
@@ -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