typesafe_enum 0.1.8 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +206 -28
- data/.idea/.rakeTasks +7 -0
- data/.idea/codeStyles/Project.xml +45 -0
- data/.idea/codeStyles/codeStyleConfig.xml +5 -0
- data/.idea/go.imports.xml +6 -0
- data/.idea/inspectionProfiles/Project_Default.xml +17 -0
- data/.idea/misc.xml +9 -0
- data/.idea/modules.xml +8 -0
- data/.idea/typesafe_enum.iml +38 -0
- data/.idea/vcs.xml +6 -0
- data/.rubocop.yml +247 -12
- data/.ruby-version +1 -1
- data/.travis.yml +7 -0
- data/CHANGES.md +23 -0
- data/README.md +49 -20
- data/lib/typesafe_enum.rb +1 -1
- data/lib/typesafe_enum/base.rb +36 -30
- data/lib/typesafe_enum/module_info.rb +2 -2
- data/spec/.rubocop.yml +8 -5
- data/spec/unit/typesafe_enum/base_spec.rb +107 -24
- data/typesafe_enum.gemspec +10 -12
- metadata +36 -36
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: e86150c4dbad18dc3b34bc33f36af102c1f6a971de91e1fdd77eda854f00ff88
|
4
|
+
data.tar.gz: 5e05fae89f1428427afff174ceaf42336e2031851d1428a58b9cf98adef42ba1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 866a544ab2935cd10e40fc44ee9f965ee08f21fcfed13a0412eaccbe09157b93a5a3df067a1c25b2c75d676c7d2dcbcccfe25141de708c77f32230d73cfca93d
|
7
|
+
data.tar.gz: ba826a728d1e2bed282df2f9d550ea7edd780f45f07c1bcdf6967710de52edd8898ec512281f48d36ba8dfb6d781655e8de7bd5e2adb16473dccf98f8c87416f
|
data/.gitignore
CHANGED
@@ -1,49 +1,227 @@
|
|
1
|
-
|
1
|
+
############################################################
|
2
|
+
# Custom ignores
|
2
3
|
|
3
|
-
.
|
4
|
+
# apps need Gemfile.lock in source control, gems don't
|
5
|
+
/Gemfile.lock
|
4
6
|
|
5
|
-
#
|
7
|
+
# https://youtrack.jetbrains.com/issue/IDEA-233049
|
8
|
+
.idea/$CACHE_FILE$
|
6
9
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
/
|
10
|
+
############################################################
|
11
|
+
# Generated ignores
|
12
|
+
|
13
|
+
#### joe made this: http://goel.io/joe
|
14
|
+
|
15
|
+
#### ruby ####
|
16
|
+
*.gem
|
17
|
+
*.rbc
|
18
|
+
/.config
|
11
19
|
/coverage/
|
12
|
-
/
|
20
|
+
/InstalledFiles
|
13
21
|
/pkg/
|
14
22
|
/spec/reports/
|
23
|
+
/spec/examples.txt
|
24
|
+
/test/tmp/
|
25
|
+
/test/version_tmp/
|
15
26
|
/tmp/
|
16
|
-
*.bundle
|
17
|
-
*.so
|
18
|
-
*.o
|
19
|
-
*.a
|
20
|
-
mkmf.log
|
21
27
|
|
22
|
-
#
|
23
|
-
|
28
|
+
# Used by dotenv library to load environment variables.
|
29
|
+
# .env
|
30
|
+
|
31
|
+
# Ignore Byebug command history file.
|
32
|
+
.byebug_history
|
24
33
|
|
25
|
-
|
34
|
+
## Specific to RubyMotion:
|
35
|
+
.dat*
|
36
|
+
.repl_history
|
37
|
+
build/
|
38
|
+
*.bridgesupport
|
39
|
+
build-iPhoneOS/
|
40
|
+
build-iPhoneSimulator/
|
26
41
|
|
27
|
-
|
42
|
+
## Specific to RubyMotion (use of CocoaPods):
|
43
|
+
#
|
44
|
+
# We recommend against adding the Pods directory to your .gitignore. However
|
45
|
+
# you should judge for yourself, the pros and cons are mentioned at:
|
46
|
+
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
|
47
|
+
#
|
48
|
+
# vendor/Pods/
|
28
49
|
|
29
|
-
|
50
|
+
## Documentation cache and generated files:
|
51
|
+
/.yardoc/
|
52
|
+
/_yardoc/
|
53
|
+
/doc/
|
54
|
+
/rdoc/
|
30
55
|
|
31
|
-
|
56
|
+
## Environment normalization:
|
57
|
+
/.bundle/
|
58
|
+
/vendor/bundle
|
59
|
+
/lib/bundler/man/
|
32
60
|
|
33
|
-
#
|
61
|
+
# for a library or gem, you might want to ignore these files since the code is
|
62
|
+
# intended to run in multiple environments; otherwise, check them in:
|
63
|
+
# Gemfile.lock
|
64
|
+
# .ruby-version
|
65
|
+
# .ruby-gemset
|
34
66
|
|
35
|
-
|
36
|
-
|
67
|
+
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
68
|
+
.rvmrc
|
69
|
+
|
70
|
+
# Used by RuboCop. Remote config files pulled in from inherit_from directive.
|
71
|
+
# .rubocop-https?--*
|
72
|
+
|
73
|
+
|
74
|
+
#### jetbrains ####
|
75
|
+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
|
76
|
+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
|
77
|
+
|
78
|
+
# User-specific stuff
|
79
|
+
.idea/**/workspace.xml
|
80
|
+
.idea/**/tasks.xml
|
81
|
+
.idea/**/usage.statistics.xml
|
82
|
+
.idea/**/dictionaries
|
83
|
+
.idea/**/shelf
|
84
|
+
|
85
|
+
# Generated files
|
86
|
+
.idea/**/contentModel.xml
|
87
|
+
|
88
|
+
# Sensitive or high-churn files
|
89
|
+
.idea/**/dataSources/
|
90
|
+
.idea/**/dataSources.ids
|
91
|
+
.idea/**/dataSources.local.xml
|
92
|
+
.idea/**/sqlDataSources.xml
|
93
|
+
.idea/**/dynamic.xml
|
94
|
+
.idea/**/uiDesigner.xml
|
95
|
+
.idea/**/dbnavigator.xml
|
96
|
+
|
97
|
+
# Gradle
|
98
|
+
.idea/**/gradle.xml
|
99
|
+
.idea/**/libraries
|
100
|
+
|
101
|
+
# Gradle and Maven with auto-import
|
102
|
+
# When using Gradle or Maven with auto-import, you should exclude module files,
|
103
|
+
# since they will be recreated, and may cause churn. Uncomment if using
|
104
|
+
# auto-import.
|
105
|
+
# .idea/artifacts
|
106
|
+
# .idea/compiler.xml
|
107
|
+
# .idea/jarRepositories.xml
|
108
|
+
# .idea/modules.xml
|
109
|
+
# .idea/*.iml
|
110
|
+
# .idea/modules
|
111
|
+
# *.iml
|
112
|
+
# *.ipr
|
113
|
+
|
114
|
+
# CMake
|
115
|
+
cmake-build-*/
|
116
|
+
|
117
|
+
# Mongo Explorer plugin
|
118
|
+
.idea/**/mongoSettings.xml
|
119
|
+
|
120
|
+
# File-based project format
|
37
121
|
*.iws
|
38
|
-
*.ids
|
39
|
-
.rakeTasks
|
40
122
|
|
41
|
-
#
|
123
|
+
# IntelliJ
|
124
|
+
out/
|
125
|
+
|
126
|
+
# mpeltonen/sbt-idea plugin
|
127
|
+
.idea_modules/
|
42
128
|
|
129
|
+
# JIRA plugin
|
130
|
+
atlassian-ide-plugin.xml
|
131
|
+
|
132
|
+
# Cursive Clojure plugin
|
133
|
+
.idea/replstate.xml
|
134
|
+
|
135
|
+
# Crashlytics plugin (for Android Studio and IntelliJ)
|
136
|
+
com_crashlytics_export_strings.xml
|
137
|
+
crashlytics.properties
|
138
|
+
crashlytics-build.properties
|
139
|
+
fabric.properties
|
140
|
+
|
141
|
+
# Editor-based Rest Client
|
142
|
+
.idea/httpRequests
|
143
|
+
|
144
|
+
# Android studio 3.1+ serialized cache file
|
145
|
+
.idea/caches/build_file_checksums.ser
|
146
|
+
|
147
|
+
|
148
|
+
#### emacs ####
|
149
|
+
# -*- mode: gitignore; -*-
|
43
150
|
*~
|
44
|
-
|
45
|
-
|
151
|
+
\#*\#
|
152
|
+
/.emacs.desktop
|
153
|
+
/.emacs.desktop.lock
|
154
|
+
*.elc
|
155
|
+
auto-save-list
|
156
|
+
tramp
|
157
|
+
.\#*
|
158
|
+
|
159
|
+
# Org-mode
|
160
|
+
.org-id-locations
|
161
|
+
*_archive
|
162
|
+
|
163
|
+
# flymake-mode
|
164
|
+
*_flymake.*
|
165
|
+
|
166
|
+
# eshell files
|
167
|
+
/eshell/history
|
168
|
+
/eshell/lastdir
|
169
|
+
|
170
|
+
# elpa packages
|
171
|
+
/elpa/
|
172
|
+
|
173
|
+
# reftex files
|
174
|
+
*.rel
|
175
|
+
|
176
|
+
# AUCTeX auto folder
|
177
|
+
/auto/
|
46
178
|
|
47
|
-
#
|
179
|
+
# cask packages
|
180
|
+
.cask/
|
181
|
+
dist/
|
48
182
|
|
183
|
+
# Flycheck
|
184
|
+
flycheck_*.el
|
185
|
+
|
186
|
+
# server auth directory
|
187
|
+
/server/
|
188
|
+
|
189
|
+
# projectiles files
|
190
|
+
.projectile
|
191
|
+
|
192
|
+
# directory configuration
|
193
|
+
.dir-locals.el
|
194
|
+
|
195
|
+
# network security
|
196
|
+
/network-security.data
|
197
|
+
|
198
|
+
|
199
|
+
|
200
|
+
#### macos ####
|
201
|
+
# General
|
49
202
|
.DS_Store
|
203
|
+
.AppleDouble
|
204
|
+
.LSOverride
|
205
|
+
|
206
|
+
# Icon must end with two \r
|
207
|
+
Icon
|
208
|
+
|
209
|
+
|
210
|
+
# Thumbnails
|
211
|
+
._*
|
212
|
+
|
213
|
+
# Files that might appear in the root of a volume
|
214
|
+
.DocumentRevisions-V100
|
215
|
+
.fseventsd
|
216
|
+
.Spotlight-V100
|
217
|
+
.TemporaryItems
|
218
|
+
.Trashes
|
219
|
+
.VolumeIcon.icns
|
220
|
+
.com.apple.timemachine.donotpresent
|
221
|
+
|
222
|
+
# Directories potentially created on remote AFP share
|
223
|
+
.AppleDB
|
224
|
+
.AppleDesktop
|
225
|
+
Network Trash Folder
|
226
|
+
Temporary Items
|
227
|
+
.apdisk
|
data/.idea/.rakeTasks
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<Settings><!--This file was automatically generated by Ruby plugin.
|
3
|
+
You are allowed to:
|
4
|
+
1. Remove rake task
|
5
|
+
2. Add existing rake tasks
|
6
|
+
To add existing rake tasks automatically delete this file and reload the project.
|
7
|
+
--><RakeGroup description="" fullCmd="" taksId="rake"><RakeTask description="Run all unit tests with coverage" fullCmd="coverage" taksId="coverage" /><RakeTask description="Run unit tests, check test coverage, run acceptance tests, check code style" fullCmd="default" taksId="default" /><RakeTask description="Run RuboCop" fullCmd="rubocop" taksId="rubocop" /><RakeGroup description="" fullCmd="" taksId="rubocop"><RakeTask description="Auto-correct RuboCop offenses" fullCmd="rubocop:auto_correct" taksId="auto_correct" /></RakeGroup><RakeTask description="Run all tests" fullCmd="spec" taksId="spec" /><RakeGroup description="" fullCmd="" taksId="spec"><RakeTask description="Run all unit tests" fullCmd="spec:unit" taksId="unit" /><RakeTask description="" fullCmd="spec:all" taksId="all" /></RakeGroup><RakeTask description="List TODOs (from spec/todo.rb)" fullCmd="todo" taksId="todo" /></RakeGroup></Settings>
|
@@ -0,0 +1,45 @@
|
|
1
|
+
<component name="ProjectCodeStyleConfiguration">
|
2
|
+
<code_scheme name="Project" version="173">
|
3
|
+
<Properties>
|
4
|
+
<option name="KEEP_BLANK_LINES" value="true" />
|
5
|
+
</Properties>
|
6
|
+
<Python>
|
7
|
+
<option name="DICT_NEW_LINE_AFTER_LEFT_BRACE" value="true" />
|
8
|
+
<option name="DICT_NEW_LINE_BEFORE_RIGHT_BRACE" value="true" />
|
9
|
+
</Python>
|
10
|
+
<Shell_Script>
|
11
|
+
<option name="REDIRECT_FOLLOWED_BY_SPACE" value="true" />
|
12
|
+
</Shell_Script>
|
13
|
+
<codeStyleSettings language="Groovy">
|
14
|
+
<indentOptions>
|
15
|
+
<option name="INDENT_SIZE" value="2" />
|
16
|
+
<option name="CONTINUATION_INDENT_SIZE" value="4" />
|
17
|
+
<option name="TAB_SIZE" value="2" />
|
18
|
+
</indentOptions>
|
19
|
+
</codeStyleSettings>
|
20
|
+
<codeStyleSettings language="HTML">
|
21
|
+
<option name="RIGHT_MARGIN" value="200" />
|
22
|
+
<indentOptions>
|
23
|
+
<option name="INDENT_SIZE" value="2" />
|
24
|
+
<option name="CONTINUATION_INDENT_SIZE" value="4" />
|
25
|
+
<option name="TAB_SIZE" value="2" />
|
26
|
+
</indentOptions>
|
27
|
+
</codeStyleSettings>
|
28
|
+
<codeStyleSettings language="JAVA">
|
29
|
+
<option name="IF_BRACE_FORCE" value="3" />
|
30
|
+
<option name="DOWHILE_BRACE_FORCE" value="3" />
|
31
|
+
<option name="WHILE_BRACE_FORCE" value="3" />
|
32
|
+
<option name="FOR_BRACE_FORCE" value="3" />
|
33
|
+
<indentOptions>
|
34
|
+
<option name="CONTINUATION_INDENT_SIZE" value="4" />
|
35
|
+
</indentOptions>
|
36
|
+
</codeStyleSettings>
|
37
|
+
<codeStyleSettings language="ruby">
|
38
|
+
<option name="SPACE_WITHIN_BRACES" value="true" />
|
39
|
+
<indentOptions>
|
40
|
+
<option name="CONTINUATION_INDENT_SIZE" value="2" />
|
41
|
+
<option name="USE_RELATIVE_INDENTS" value="false" />
|
42
|
+
</indentOptions>
|
43
|
+
</codeStyleSettings>
|
44
|
+
</code_scheme>
|
45
|
+
</component>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<component name="InspectionProjectProfileManager">
|
2
|
+
<profile version="1.0">
|
3
|
+
<option name="myName" value="Project Default" />
|
4
|
+
<inspection_tool class="GoNameStartsWithPackageName" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
|
5
|
+
<inspection_tool class="GoSnakeCaseUsage" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
|
6
|
+
<inspection_tool class="GoUnusedGlobalVariable" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
|
7
|
+
<inspection_tool class="GoUnusedVariable" enabled="true" level="WARNING" enabled_by_default="true" />
|
8
|
+
<inspection_tool class="GrazieInspection" enabled="false" level="TYPO" enabled_by_default="false" />
|
9
|
+
<inspection_tool class="Rubocop" enabled="false" level="WARNING" enabled_by_default="false" />
|
10
|
+
<inspection_tool class="RubyStringKeysInHashInspection" enabled="true" level="INFORMATION" enabled_by_default="true" />
|
11
|
+
<inspection_tool class="SpellCheckingInspection" enabled="false" level="TYPO" enabled_by_default="false">
|
12
|
+
<option name="processCode" value="true" />
|
13
|
+
<option name="processLiterals" value="true" />
|
14
|
+
<option name="processComments" value="true" />
|
15
|
+
</inspection_tool>
|
16
|
+
</profile>
|
17
|
+
</component>
|
data/.idea/misc.xml
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project version="4">
|
3
|
+
<component name="JavaScriptSettings">
|
4
|
+
<option name="languageLevel" value="ES6" />
|
5
|
+
</component>
|
6
|
+
<component name="ProjectRootManager" version="2" languageLevel="JDK_13" project-jdk-name="13" project-jdk-type="JavaSDK">
|
7
|
+
<output url="file://$PROJECT_DIR$/out" />
|
8
|
+
</component>
|
9
|
+
</project>
|
data/.idea/modules.xml
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project version="4">
|
3
|
+
<component name="ProjectModuleManager">
|
4
|
+
<modules>
|
5
|
+
<module fileurl="file://$PROJECT_DIR$/.idea/typesafe_enum.iml" filepath="$PROJECT_DIR$/.idea/typesafe_enum.iml" />
|
6
|
+
</modules>
|
7
|
+
</component>
|
8
|
+
</project>
|
@@ -0,0 +1,38 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<module type="RUBY_MODULE" version="4">
|
3
|
+
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
4
|
+
<exclude-output />
|
5
|
+
<content url="file://$MODULE_DIR$" />
|
6
|
+
<orderEntry type="jdk" jdkName="RVM: ruby-2.6.6" jdkType="RUBY_SDK" />
|
7
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
8
|
+
<orderEntry type="library" scope="PROVIDED" name="ansi (v1.5.0, RVM: ruby-2.6.6) [gem]" level="application" />
|
9
|
+
<orderEntry type="library" scope="PROVIDED" name="ast (v2.4.1, RVM: ruby-2.6.6) [gem]" level="application" />
|
10
|
+
<orderEntry type="library" scope="PROVIDED" name="bundler (v2.1.4, RVM: ruby-2.6.6) [gem]" level="application" />
|
11
|
+
<orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.3, RVM: ruby-2.6.6) [gem]" level="application" />
|
12
|
+
<orderEntry type="library" scope="PROVIDED" name="docile (v1.3.2, RVM: ruby-2.6.6) [gem]" level="application" />
|
13
|
+
<orderEntry type="library" scope="PROVIDED" name="parallel (v1.19.2, RVM: ruby-2.6.6) [gem]" level="application" />
|
14
|
+
<orderEntry type="library" scope="PROVIDED" name="parser (v2.7.2.0, RVM: ruby-2.6.6) [gem]" level="application" />
|
15
|
+
<orderEntry type="library" scope="PROVIDED" name="rainbow (v3.0.0, RVM: ruby-2.6.6) [gem]" level="application" />
|
16
|
+
<orderEntry type="library" scope="PROVIDED" name="rake (v12.3.3, RVM: ruby-2.6.6) [gem]" level="application" />
|
17
|
+
<orderEntry type="library" scope="PROVIDED" name="regexp_parser (v1.8.2, RVM: ruby-2.6.6) [gem]" level="application" />
|
18
|
+
<orderEntry type="library" scope="PROVIDED" name="rexml (v3.2.4, RVM: ruby-2.6.6) [gem]" level="application" />
|
19
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec (v3.9.0, RVM: ruby-2.6.6) [gem]" level="application" />
|
20
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.9.1, RVM: ruby-2.6.6) [gem]" level="application" />
|
21
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.9.1, RVM: ruby-2.6.6) [gem]" level="application" />
|
22
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.9.1, RVM: ruby-2.6.6) [gem]" level="application" />
|
23
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.9.2, RVM: ruby-2.6.6) [gem]" level="application" />
|
24
|
+
<orderEntry type="library" scope="PROVIDED" name="rubocop (v0.91.0, RVM: ruby-2.6.6) [gem]" level="application" />
|
25
|
+
<orderEntry type="library" scope="PROVIDED" name="rubocop-ast (v0.8.0, RVM: ruby-2.6.6) [gem]" level="application" />
|
26
|
+
<orderEntry type="library" scope="PROVIDED" name="ruby-progressbar (v1.10.1, RVM: ruby-2.6.6) [gem]" level="application" />
|
27
|
+
<orderEntry type="library" scope="PROVIDED" name="simplecov (v0.18.5, RVM: ruby-2.6.6) [gem]" level="application" />
|
28
|
+
<orderEntry type="library" scope="PROVIDED" name="simplecov-console (v0.7.2, RVM: ruby-2.6.6) [gem]" level="application" />
|
29
|
+
<orderEntry type="library" scope="PROVIDED" name="simplecov-html (v0.12.2, RVM: ruby-2.6.6) [gem]" level="application" />
|
30
|
+
<orderEntry type="library" scope="PROVIDED" name="terminal-table (v1.8.0, RVM: ruby-2.6.6) [gem]" level="application" />
|
31
|
+
<orderEntry type="library" scope="PROVIDED" name="unicode-display_width (v1.7.0, RVM: ruby-2.6.6) [gem]" level="application" />
|
32
|
+
<orderEntry type="library" scope="PROVIDED" name="yard (v0.9.24, RVM: ruby-2.6.6) [gem]" level="application" />
|
33
|
+
</component>
|
34
|
+
<component name="RModuleSettingsStorage">
|
35
|
+
<LOAD_PATH number="2" string0="$MODULE_DIR$/lib" string1="$MODULE_DIR$/spec" />
|
36
|
+
<I18N_FOLDERS number="0" />
|
37
|
+
</component>
|
38
|
+
</module>
|
data/.idea/vcs.xml
ADDED
data/.rubocop.yml
CHANGED
@@ -1,24 +1,259 @@
|
|
1
|
-
#
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
# Allow one line around block body (Layout/EmptyLines will still disallow two or more)
|
2
|
+
Layout/EmptyLinesAroundBlockBody:
|
3
|
+
Enabled: false
|
4
|
+
|
5
|
+
# Allow one line around class body (Layout/EmptyLines will still disallow two or more)
|
6
|
+
Layout/EmptyLinesAroundClassBody:
|
7
|
+
Enabled: false
|
8
|
+
|
9
|
+
# Allow one line around module body (Layout/EmptyLines will still disallow two or more)
|
10
|
+
Layout/EmptyLinesAroundModuleBody:
|
11
|
+
Enabled: false
|
12
|
+
|
13
|
+
# Reasonable line-length check; it's too easy for the cure to be worse than the disease
|
14
|
+
Layout/LineLength:
|
15
|
+
Max: 150
|
16
|
+
|
17
|
+
# Make indents consistent regardless of the lengths of variables and method names and whatnot
|
18
|
+
Layout/MultilineMethodCallIndentation:
|
19
|
+
EnforcedStyle: indented
|
20
|
+
|
21
|
+
# Produces monsters
|
22
|
+
Layout/MultilineOperationIndentation:
|
23
|
+
Enabled: false
|
5
24
|
|
6
|
-
#
|
7
|
-
|
25
|
+
# Confusing and weird
|
26
|
+
Naming/VariableNumber:
|
27
|
+
Enabled: False
|
28
|
+
|
29
|
+
# We meant to do that
|
30
|
+
Naming/MemoizedInstanceVariableName:
|
31
|
+
Enabled: False
|
32
|
+
|
33
|
+
# It works in context, trust us
|
34
|
+
Naming/MethodParameterName:
|
35
|
+
Enabled: False
|
36
|
+
|
37
|
+
# Do what's readable in the context you're in
|
38
|
+
Style/AccessModifierDeclarations:
|
39
|
+
Enabled: false
|
40
|
+
|
41
|
+
# 👎 to cultural imperialism
|
42
|
+
Style/AsciiComments:
|
43
|
+
Enabled: false
|
44
|
+
|
45
|
+
# Seriously?
|
46
|
+
Style/CommentedKeyword:
|
8
47
|
Enabled: False
|
9
48
|
|
10
49
|
# Disable problematic module documentation check (see https://github.com/bbatsov/rubocop/issues/947)
|
11
50
|
Style/Documentation:
|
12
51
|
Enabled: false
|
13
52
|
|
14
|
-
#
|
15
|
-
|
53
|
+
# Adding more line noise to format strings will not improve them
|
54
|
+
Style/FormatStringToken:
|
16
55
|
Enabled: false
|
17
56
|
|
18
|
-
#
|
19
|
-
|
57
|
+
# Putting '# frozen_string_literal: true' everywhere does not make the world a better place
|
58
|
+
Style/FrozenStringLiteralComment:
|
20
59
|
Enabled: false
|
21
60
|
|
22
|
-
#
|
23
|
-
|
61
|
+
# `foo.positive?` is cute, but it's not actually more readable than `foo > 0`
|
62
|
+
Style/NumericPredicate:
|
63
|
+
Enabled: false
|
64
|
+
|
65
|
+
# The semantics of `foo&.bar` are a lot less interchangeable with `foo && foo.bar` than RuboCop thinks
|
66
|
+
Style/SafeNavigation:
|
67
|
+
Enabled: false
|
68
|
+
|
69
|
+
# Requiring the lambda() method just makes wordy calls wordier
|
70
|
+
Style/Lambda:
|
71
|
+
EnforcedStyle: literal
|
72
|
+
|
73
|
+
# Unclear why it's a good idea to give parameters semantically meaningless names
|
74
|
+
Style/SingleLineBlockParams:
|
24
75
|
Enabled: false
|
76
|
+
|
77
|
+
############################################################
|
78
|
+
# Added in RuboCop 0.80
|
79
|
+
|
80
|
+
Style/HashEachMethods:
|
81
|
+
Enabled: true
|
82
|
+
|
83
|
+
Style/HashTransformKeys:
|
84
|
+
Enabled: true
|
85
|
+
|
86
|
+
Style/HashTransformValues:
|
87
|
+
Enabled: true
|
88
|
+
|
89
|
+
############################################################
|
90
|
+
# Added in RuboCop 0.81
|
91
|
+
|
92
|
+
Lint/StructNewOverride:
|
93
|
+
Enabled: true
|
94
|
+
|
95
|
+
Lint/RaiseException:
|
96
|
+
Enabled: true
|
97
|
+
|
98
|
+
############################################################
|
99
|
+
# Added in RuboCop 0.82
|
100
|
+
|
101
|
+
Layout/SpaceAroundMethodCallOperator:
|
102
|
+
Enabled: true
|
103
|
+
|
104
|
+
Style/ExponentialNotation:
|
105
|
+
Enabled: false
|
106
|
+
|
107
|
+
############################################################
|
108
|
+
# Added in RuboCop 0.83
|
109
|
+
|
110
|
+
Layout/EmptyLinesAroundAttributeAccessor:
|
111
|
+
Enabled: true
|
112
|
+
|
113
|
+
Style/SlicingWithRange:
|
114
|
+
Enabled: true
|
115
|
+
|
116
|
+
############################################################
|
117
|
+
# Added in RuboCop 0.84
|
118
|
+
|
119
|
+
Lint/DeprecatedOpenSSLConstant:
|
120
|
+
Enabled: true
|
121
|
+
|
122
|
+
############################################################
|
123
|
+
# Added in RuboCop 0.85
|
124
|
+
|
125
|
+
Lint/MixedRegexpCaptureTypes:
|
126
|
+
Enabled: true
|
127
|
+
|
128
|
+
Style/RedundantRegexpEscape:
|
129
|
+
Enabled: true
|
130
|
+
|
131
|
+
Style/RedundantRegexpCharacterClass:
|
132
|
+
Enabled: true
|
133
|
+
|
134
|
+
############################################################
|
135
|
+
# Added in Rubocop 0.86
|
136
|
+
|
137
|
+
Style/RedundantFetchBlock:
|
138
|
+
Enabled: true
|
139
|
+
|
140
|
+
############################################################
|
141
|
+
# Added in Rubocop 0.87
|
142
|
+
|
143
|
+
# Sometimes we separate things for a reason
|
144
|
+
Style/AccessorGrouping:
|
145
|
+
Enabled: false
|
146
|
+
|
147
|
+
Style/BisectedAttrAccessor:
|
148
|
+
Enabled: true
|
149
|
+
|
150
|
+
Style/RedundantAssignment:
|
151
|
+
Enabled: true
|
152
|
+
|
153
|
+
############################################################
|
154
|
+
# Added in Rubocop 0.88
|
155
|
+
|
156
|
+
Lint/DuplicateElsifCondition:
|
157
|
+
Enabled: true
|
158
|
+
|
159
|
+
Style/ArrayCoercion:
|
160
|
+
Enabled: true
|
161
|
+
|
162
|
+
Style/CaseLikeIf:
|
163
|
+
Enabled: true
|
164
|
+
|
165
|
+
Style/HashAsLastArrayItem:
|
166
|
+
Enabled: true
|
167
|
+
|
168
|
+
Style/HashLikeCase:
|
169
|
+
Enabled: true
|
170
|
+
|
171
|
+
Style/RedundantFileExtensionInRequire:
|
172
|
+
Enabled: true
|
173
|
+
|
174
|
+
############################################################
|
175
|
+
# Added in Rubocop 0.89
|
176
|
+
|
177
|
+
Lint/BinaryOperatorWithIdenticalOperands:
|
178
|
+
Enabled: true
|
179
|
+
|
180
|
+
Lint/DuplicateRescueException:
|
181
|
+
Enabled: true
|
182
|
+
|
183
|
+
Lint/EmptyConditionalBody:
|
184
|
+
Enabled: true
|
185
|
+
|
186
|
+
Lint/FloatComparison:
|
187
|
+
Enabled: true
|
188
|
+
|
189
|
+
Lint/MissingSuper:
|
190
|
+
Enabled: true
|
191
|
+
|
192
|
+
Lint/OutOfRangeRegexpRef:
|
193
|
+
Enabled: true
|
194
|
+
|
195
|
+
Lint/SelfAssignment:
|
196
|
+
Enabled: true
|
197
|
+
|
198
|
+
Lint/TopLevelReturnWithArgument:
|
199
|
+
Enabled: true
|
200
|
+
|
201
|
+
Lint/UnreachableLoop:
|
202
|
+
Enabled: true
|
203
|
+
|
204
|
+
Style/ExplicitBlockArgument:
|
205
|
+
Enabled: true
|
206
|
+
|
207
|
+
Style/GlobalStdStream:
|
208
|
+
Enabled: true
|
209
|
+
|
210
|
+
Style/OptionalBooleanParameter:
|
211
|
+
Enabled: true
|
212
|
+
|
213
|
+
Style/SingleArgumentDig:
|
214
|
+
Enabled: true
|
215
|
+
|
216
|
+
Style/SoleNestedConditional:
|
217
|
+
Enabled: true
|
218
|
+
|
219
|
+
Style/StringConcatenation:
|
220
|
+
Enabled: true
|
221
|
+
|
222
|
+
############################################################
|
223
|
+
# Added in Rubocop 0.90
|
224
|
+
|
225
|
+
Lint/DuplicateRequire:
|
226
|
+
Enabled: true
|
227
|
+
|
228
|
+
Lint/EmptyFile:
|
229
|
+
Enabled: true
|
230
|
+
|
231
|
+
Lint/TrailingCommaInAttributeDeclaration:
|
232
|
+
Enabled: true
|
233
|
+
|
234
|
+
Lint/UselessMethodDefinition:
|
235
|
+
Enabled: true
|
236
|
+
|
237
|
+
Style/CombinableLoops:
|
238
|
+
Enabled: true
|
239
|
+
|
240
|
+
Style/KeywordParametersOrder:
|
241
|
+
Enabled: true
|
242
|
+
|
243
|
+
Style/RedundantSelfAssignment:
|
244
|
+
Enabled: true
|
245
|
+
|
246
|
+
############################################################
|
247
|
+
# Added in Rubocop 0.91
|
248
|
+
|
249
|
+
Layout/BeginEndAlignment:
|
250
|
+
Enabled: true
|
251
|
+
|
252
|
+
Lint/ConstantDefinitionInBlock:
|
253
|
+
Enabled: true
|
254
|
+
|
255
|
+
Lint/IdentityComparison:
|
256
|
+
Enabled: true
|
257
|
+
|
258
|
+
Lint/UselessTimes:
|
259
|
+
Enabled: true
|