angellist-style 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 +7 -0
- data/.envrc +68 -0
- data/.github/workflows/ruby.yml +26 -0
- data/.gitignore +82 -0
- data/.idea/.gitignore +8 -0
- data/.idea/.rakeTasks +7 -0
- data/.idea/angellist-style.iml +43 -0
- data/.idea/codeStyles/codeStyleConfig.xml +5 -0
- data/.idea/dictionaries/kig.xml +7 -0
- data/.idea/markdown-navigator-enh.xml +29 -0
- data/.idea/markdown-navigator.xml +55 -0
- data/.idea/misc.xml +7 -0
- data/.idea/modules.xml +8 -0
- data/.idea/vcs.xml +6 -0
- data/.rspec +3 -0
- data/.rubocop.yml +2 -0
- data/.rubocop_angellist.yml +12 -0
- data/.rubocop_relaxed.yml +153 -0
- data/.ruby-version +1 -0
- data/.travis.yml +6 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +78 -0
- data/README.adoc +154 -0
- data/Rakefile +8 -0
- data/angellist-style.gemspec +38 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/config/all_cops.yml +11 -0
- data/config/layout.yml +11 -0
- data/config/lint.yml +24 -0
- data/config/metrics.yml +32 -0
- data/config/naming.yml +28 -0
- data/config/rails.yml +42 -0
- data/config/require.yml +5 -0
- data/config/rspec.yml +40 -0
- data/config/security.yml +5 -0
- data/config/style.yml +69 -0
- data/lib/angellist-style.rb +3 -0
- data/lib/angellist/style.rb +10 -0
- data/lib/angellist/style/version.rb +7 -0
- metadata +198 -0
data/config/require.yml
ADDED
data/config/rspec.yml
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
# It's ok to use eg. "it { is_expected.to eq 0 }"
|
2
|
+
RSpec/ImplicitSubject:
|
3
|
+
Enabled: false
|
4
|
+
|
5
|
+
RSpec/ImplicitExpect:
|
6
|
+
Enabled: false
|
7
|
+
|
8
|
+
RSpec/LeadingSubject:
|
9
|
+
Enabled: false
|
10
|
+
|
11
|
+
RSpec/ExampleWording:
|
12
|
+
Enabled: false
|
13
|
+
|
14
|
+
# Turning off for rspec-rubocop complains
|
15
|
+
RSpec/MultipleExpectations:
|
16
|
+
Max: 20
|
17
|
+
|
18
|
+
RSpec/ExampleLength:
|
19
|
+
Max: 40
|
20
|
+
|
21
|
+
# Does not make sense for feature tests b/c you test an "user facing feature" not a class
|
22
|
+
RSpec/DescribeClass:
|
23
|
+
Exclude:
|
24
|
+
- spec/*
|
25
|
+
|
26
|
+
# Dont' use let! — it eager loads the definition even if its not used.
|
27
|
+
# Instead just trigger the let-defined variable by referencing it.
|
28
|
+
RSpec/LetSetup:
|
29
|
+
Enabled: true
|
30
|
+
|
31
|
+
# @andreasklinger: Having just `expect(subject)` is fine
|
32
|
+
RSpec/NamedSubject:
|
33
|
+
Enabled: false
|
34
|
+
|
35
|
+
# @andreasklinger: Context 'something' is fine
|
36
|
+
RSpec/ContextWording:
|
37
|
+
Enabled: false
|
38
|
+
|
39
|
+
RSpec/FilePath:
|
40
|
+
Enabled: false
|
data/config/security.yml
ADDED
data/config/style.yml
ADDED
@@ -0,0 +1,69 @@
|
|
1
|
+
# Sometimes parentheses are used for clarity.
|
2
|
+
Style/TernaryParentheses:
|
3
|
+
Enabled: false
|
4
|
+
|
5
|
+
|
6
|
+
Style/ExponentialNotation:
|
7
|
+
Enabled: true
|
8
|
+
|
9
|
+
Style/HashEachMethods:
|
10
|
+
Enabled: true
|
11
|
+
|
12
|
+
Style/HashTransformKeys:
|
13
|
+
Enabled: true
|
14
|
+
|
15
|
+
Style/HashTransformValues:
|
16
|
+
Enabled: true
|
17
|
+
|
18
|
+
Style/AsciiComments:
|
19
|
+
Exclude:
|
20
|
+
- spec/
|
21
|
+
|
22
|
+
# [:one, :two] is fine
|
23
|
+
Style/SymbolArray:
|
24
|
+
Enabled: false
|
25
|
+
|
26
|
+
# ['one', 'two'] is fine
|
27
|
+
Style/WordArray:
|
28
|
+
Enabled: false
|
29
|
+
|
30
|
+
# @tiff: Sometimes (or might I argue, often) having the if conditional on
|
31
|
+
# its own line is better for readability,
|
32
|
+
Style/IfUnlessModifier:
|
33
|
+
Enabled: false
|
34
|
+
|
35
|
+
# Note(kapil): Sometimes if !foo is preferable for legibility.
|
36
|
+
Style/NegatedIf:
|
37
|
+
Enabled: false
|
38
|
+
|
39
|
+
# Disables `module_function` vs `extend self` checks
|
40
|
+
# `module_function` doesn't support private methods
|
41
|
+
Style/ModuleFunction:
|
42
|
+
Enabled: false
|
43
|
+
|
44
|
+
# [
|
45
|
+
# commas,
|
46
|
+
# to make diffs,
|
47
|
+
# smaller,
|
48
|
+
# ]
|
49
|
+
Style/TrailingCommaInArrayLiteral:
|
50
|
+
EnforcedStyleForMultiline: comma
|
51
|
+
|
52
|
+
Style/TrailingCommaInHashLiteral:
|
53
|
+
EnforcedStyleForMultiline: comma
|
54
|
+
|
55
|
+
Style/TrailingCommaInArguments:
|
56
|
+
EnforcedStyleForMultiline: comma
|
57
|
+
|
58
|
+
# We cannot enforce nesting of modules/class because by default this would load
|
59
|
+
# eg namespaces via `app/controllers` before it would load namespace in `app/models`
|
60
|
+
# and hence not load the required `app/models` file
|
61
|
+
Style/ClassAndModuleChildren:
|
62
|
+
Enabled: false
|
63
|
+
|
64
|
+
Style/Lambda:
|
65
|
+
EnforcedStyle: literal
|
66
|
+
|
67
|
+
# @cbuchan: Sometimes this is desired behavior and isn't just a style concern
|
68
|
+
Style/DoubleNegation:
|
69
|
+
Enabled: false
|
metadata
ADDED
@@ -0,0 +1,198 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: angellist-style
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Konstantin Gredeskoul
|
8
|
+
- AngelList Developers
|
9
|
+
autorequire:
|
10
|
+
bindir: exe
|
11
|
+
cert_chain: []
|
12
|
+
date: 2020-05-05 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: activesupport
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - '='
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: 5.1.7
|
21
|
+
type: :runtime
|
22
|
+
prerelease: false
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - '='
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: 5.1.7
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: rubocop
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - ">="
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '0'
|
35
|
+
type: :runtime
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - ">="
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '0'
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: rubocop-rails
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - ">="
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '0'
|
49
|
+
type: :runtime
|
50
|
+
prerelease: false
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - ">="
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0'
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: rubocop-rspec
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - ">="
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '0'
|
63
|
+
type: :runtime
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ">="
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: rubocop-thread_safety
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
77
|
+
type: :runtime
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - ">="
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '0'
|
84
|
+
- !ruby/object:Gem::Dependency
|
85
|
+
name: bundler
|
86
|
+
requirement: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
88
|
+
- - ">="
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: '0'
|
91
|
+
type: :development
|
92
|
+
prerelease: false
|
93
|
+
version_requirements: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - ">="
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '0'
|
98
|
+
- !ruby/object:Gem::Dependency
|
99
|
+
name: rake
|
100
|
+
requirement: !ruby/object:Gem::Requirement
|
101
|
+
requirements:
|
102
|
+
- - ">="
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: '0'
|
105
|
+
type: :development
|
106
|
+
prerelease: false
|
107
|
+
version_requirements: !ruby/object:Gem::Requirement
|
108
|
+
requirements:
|
109
|
+
- - ">="
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: '0'
|
112
|
+
- !ruby/object:Gem::Dependency
|
113
|
+
name: rspec
|
114
|
+
requirement: !ruby/object:Gem::Requirement
|
115
|
+
requirements:
|
116
|
+
- - ">="
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '0'
|
119
|
+
type: :development
|
120
|
+
prerelease: false
|
121
|
+
version_requirements: !ruby/object:Gem::Requirement
|
122
|
+
requirements:
|
123
|
+
- - ">="
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
126
|
+
description: Contains rubocop style decisions to be used across all Ruby projects.
|
127
|
+
email:
|
128
|
+
- kigster@gmail.com
|
129
|
+
- dev@angel.co
|
130
|
+
executables: []
|
131
|
+
extensions: []
|
132
|
+
extra_rdoc_files: []
|
133
|
+
files:
|
134
|
+
- ".envrc"
|
135
|
+
- ".github/workflows/ruby.yml"
|
136
|
+
- ".gitignore"
|
137
|
+
- ".idea/.gitignore"
|
138
|
+
- ".idea/.rakeTasks"
|
139
|
+
- ".idea/angellist-style.iml"
|
140
|
+
- ".idea/codeStyles/codeStyleConfig.xml"
|
141
|
+
- ".idea/dictionaries/kig.xml"
|
142
|
+
- ".idea/markdown-navigator-enh.xml"
|
143
|
+
- ".idea/markdown-navigator.xml"
|
144
|
+
- ".idea/misc.xml"
|
145
|
+
- ".idea/modules.xml"
|
146
|
+
- ".idea/vcs.xml"
|
147
|
+
- ".rspec"
|
148
|
+
- ".rubocop.yml"
|
149
|
+
- ".rubocop_angellist.yml"
|
150
|
+
- ".rubocop_relaxed.yml"
|
151
|
+
- ".ruby-version"
|
152
|
+
- ".travis.yml"
|
153
|
+
- Gemfile
|
154
|
+
- Gemfile.lock
|
155
|
+
- README.adoc
|
156
|
+
- Rakefile
|
157
|
+
- angellist-style.gemspec
|
158
|
+
- bin/console
|
159
|
+
- bin/setup
|
160
|
+
- config/all_cops.yml
|
161
|
+
- config/layout.yml
|
162
|
+
- config/lint.yml
|
163
|
+
- config/metrics.yml
|
164
|
+
- config/naming.yml
|
165
|
+
- config/rails.yml
|
166
|
+
- config/require.yml
|
167
|
+
- config/rspec.yml
|
168
|
+
- config/security.yml
|
169
|
+
- config/style.yml
|
170
|
+
- lib/angellist-style.rb
|
171
|
+
- lib/angellist/style.rb
|
172
|
+
- lib/angellist/style/version.rb
|
173
|
+
homepage: https://github.com/venturehacks/angellist-style
|
174
|
+
licenses: []
|
175
|
+
metadata:
|
176
|
+
homepage_uri: https://github.com/venturehacks/angellist-style
|
177
|
+
source_code_uri: https://github.com/venturehacks/angellist-style
|
178
|
+
changelog_uri: https://github.com/venturehacks/angellist-style/tree/master/CHANGELOG.adoc
|
179
|
+
post_install_message:
|
180
|
+
rdoc_options: []
|
181
|
+
require_paths:
|
182
|
+
- lib
|
183
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ">="
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: 2.3.0
|
188
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
189
|
+
requirements:
|
190
|
+
- - ">="
|
191
|
+
- !ruby/object:Gem::Version
|
192
|
+
version: '0'
|
193
|
+
requirements: []
|
194
|
+
rubygems_version: 3.1.3
|
195
|
+
signing_key:
|
196
|
+
specification_version: 4
|
197
|
+
summary: Contains rubocop style decisions to be used across all Ruby projects.
|
198
|
+
test_files: []
|