Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

warning: assigned but unused variable - current #114

Open
wants to merge 332 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
332 commits
Select commit Hold shift + click to select a range
19c7197
Fixed: lib/RMagick.rb is overwritten by lib/rmagick.rb on case-insens…
u338steven Sep 16, 2014
bbaaec3
Merge pull request #124 from u338steven/patch-18
ioquatix Sep 16, 2014
b9a26ca
Added: Magick::Magick_features constant
u338steven Sep 20, 2014
2dd19b3
Fixed: test_import_export(Import_Export_UT) in Import_Export.rb fails…
u338steven Sep 20, 2014
a11f702
Changed Image#resample to calling ResampleImage
u338steven Sep 24, 2014
e352601
Merge pull request #125 from u338steven/patch-19
ioquatix Sep 24, 2014
2dbcff1
Merge pull request #127 from u338steven/patch-20
ioquatix Sep 24, 2014
c9c2f34
Fixed: test_limit_resources (Magick_UT) in Magick.rb fails #126
u338steven Sep 27, 2014
f8bff51
Merge pull request #128 from u338steven/patch-21
ioquatix Sep 27, 2014
093dc85
proof of concept for using pkg-config in place of Magick-config on de…
theschoolmaster Oct 3, 2014
179a85a
typo in pkg-config CPPFLAGS. Magick-config uses --cflags here. (See…
theschoolmaster Oct 4, 2014
2d90374
Merge pull request #129 from theschoolmaster/master
ioquatix Oct 17, 2014
ed02ff3
Enable builds on OS X
vassilevsky Oct 20, 2014
5f4990d
Prepare ImageMagick differently in different OSes
vassilevsky Oct 20, 2014
362600c
Merge pull request #131 from vassilevsky/osx
ioquatix Oct 21, 2014
d5048cd
Use different before_install scripts for different OSes
vassilevsky Oct 21, 2014
e4cb212
Merge pull request #133 from vassilevsky/osx
ioquatix Oct 21, 2014
f2a4b9e
Disable OS X build on travis as it is too slow
ioquatix Oct 22, 2014
ee99a43
Add Contributor's Guide
vassilevsky Nov 7, 2014
6e12c2a
Remove build support for RAA and rubyforge; annotate Rake tasks
bf4 Jul 28, 2014
b9ea0c1
Add releasing notes
bf4 Nov 12, 2014
d02df7d
Retire old build files
bf4 Nov 12, 2014
eef34c6
use pre-existing textile-based README
bf4 Nov 12, 2014
5795bfb
Update release tasks with legacy info
bf4 Nov 12, 2014
0e25a70
Break up release tasks
bf4 Nov 13, 2014
b08c0d3
Merge pull request #69 from gemhome/update
bf4 Nov 13, 2014
6b24554
Fix wrong relative path for lib/rmagick/version
Nov 15, 2014
78dc318
Merge pull request #139 from marwan-tanager/master
bf4 Nov 17, 2014
db4e87a
Merge pull request #136 from vassilevsky/contributors-guide
vassilevsky Nov 17, 2014
8cf3380
Fix version.rb require path
vassilevsky Nov 18, 2014
fa98023
fix path for build
mockdeep Nov 18, 2014
29a5cd1
Merge pull request #142 from mockdeep/path_fix
vassilevsky Nov 19, 2014
5a57230
Make Travis notify Gitter chat room 'gemhome'
vassilevsky Nov 19, 2014
148df1a
Reroute Travis notifications to rmagick repo chat
vassilevsky Nov 19, 2014
f019bd5
Add Gitter badge to README
vassilevsky Nov 19, 2014
63277ad
Put all badges in one line
vassilevsky Nov 19, 2014
7782734
move deprecated RMagick.rb file
mockdeep Nov 16, 2014
f1fdaf9
Add CodeClimate badge to README
vassilevsky Nov 25, 2014
8b4be2c
Replace GemFury badge with Shields.io one (flat)
vassilevsky Nov 25, 2014
733cdf8
Replace Travis CI badge with Shields.io one (flat)
vassilevsky Nov 25, 2014
fb7c0d0
Replace Code Climate badge with Shields.io one (flat)
vassilevsky Nov 25, 2014
e937d3e
Add Shields.io total gem downloads badge
vassilevsky Nov 25, 2014
3303afd
Add VersionEye reference count badge
vassilevsky Nov 25, 2014
14d2479
Update changelog; might have missed a few things
bf4 Nov 26, 2014
20e4084
Bump to version 2.13.4
bf4 Nov 26, 2014
335ea4c
adding rubocop
mockdeep Nov 14, 2014
49420f1
Merge pull request #138 from mockdeep/rubocop
vassilevsky Nov 28, 2014
990cb37
Test on Ruby 1.8
vassilevsky Nov 28, 2014
295eecb
only require rubocop on ruby versions >= 1.9.2
mockdeep Nov 28, 2014
6b60544
Merge pull request #151 from mockdeep/rubocop_version
vassilevsky Nov 28, 2014
e587bdc
Merge pull request #141 from mockdeep/deprecate
vassilevsky Nov 28, 2014
9bd3658
set up simplecov
mockdeep Nov 25, 2014
2b91e03
Merge pull request #147 from mockdeep/simplecov
vassilevsky Nov 28, 2014
b05005c
Let 1.8 fail
bf4 Dec 1, 2014
f085b6a
Merge pull request #155 from gemhome/let_it_fail
bf4 Dec 1, 2014
43bc089
Break extconf.rb into an object with methods
bf4 Nov 30, 2014
bc48594
Make extconf.rb 1.8 compatible
bf4 Dec 1, 2014
46f2dd6
Remove redundant 1.8 test from CI
bf4 Dec 1, 2014
1e0b1ae
Merge pull request #154 from gemhome/cleanup_extconf
bf4 Dec 4, 2014
f47ee74
Fix #148; More robust feature detection
bf4 Dec 4, 2014
7ba2a8f
Change all require RMagick to rmagick
bf4 Dec 4, 2014
de79b71
Merge pull request #157 from gemhome/dogfood_our_requires
bf4 Dec 4, 2014
f261a6f
Merge pull request #156 from gemhome/fix_features_detection
bf4 Dec 5, 2014
765232c
Revert "Merge pull request #147 from mockdeep/simplecov"
bf4 Nov 30, 2014
986ca15
Change all require RMagick to rmagick
bf4 Dec 5, 2014
eb47352
Remove all require_relatives
bf4 Nov 30, 2014
8f6a69b
Add SimpleCov
bf4 Nov 30, 2014
7c0313a
Fix hard-coded ruby path
bf4 Nov 30, 2014
aa58d83
Simplify minimum required ImageMagick version checking
vassilevsky Nov 29, 2014
1a129ac
Fix test load paths for 1.8 vs. >= 1.9
bf4 Nov 30, 2014
967c123
Merge pull request #153 from gemhome/18_compat
bf4 Dec 8, 2014
cf300d7
add documentation to readme for setting up dev env
mockdeep Jan 30, 2015
73c0ed5
Merge pull request #164 from mockdeep/dev_readme
mockdeep Feb 2, 2015
3b32bd7
Prevent failure when "prefix" is empty string.
voxik Mar 11, 2013
3e4abab
Update Rubocop configuration with v0.29.0
vassilevsky Feb 7, 2015
c64027f
No arguments => no parentheses
vassilevsky Feb 7, 2015
6b05c0e
Remove unnecessary parentheses around conditions
vassilevsky Feb 7, 2015
7124cbb
Use `unless` instead of `if !` or `if not`
vassilevsky Feb 7, 2015
663abd0
Remove space between ! and expressions being negated
vassilevsky Feb 7, 2015
68c7a27
Remove unnecessary `then`
vassilevsky Feb 7, 2015
92ffc81
Remove extra space inside parentheses (where it doesn't align paramet…
vassilevsky Feb 7, 2015
e6fb725
Remove unnecessary `to_s` in interpolation
vassilevsky Feb 7, 2015
ce4a6df
Use `alias_method` instead of `alias`
vassilevsky Feb 8, 2015
bc99202
Use `||` instead of `or` and `&&` instead of `and`
vassilevsky Feb 8, 2015
c1dcdd5
Use `do`...`end` for multiline blocks (not {...})
vassilevsky Feb 8, 2015
3f47fd1
Align `end`s
vassilevsky Feb 8, 2015
182f350
Use `is_a?` instead of `kind_of?`
vassilevsky Feb 8, 2015
b3f5cd4
Use `self` instead of class name inside the class
vassilevsky Feb 8, 2015
401d31a
Use `.` instead of `::` for class method calls
vassilevsky Feb 8, 2015
0c814f4
Put method chaining dots after line breaks, not before
vassilevsky Feb 8, 2015
6a076ab
Use empty lines between defs
vassilevsky Feb 8, 2015
8372323
Remove extra empty lines
vassilevsky Feb 8, 2015
93a6719
Surround access modifiers with blank lines
vassilevsky Feb 8, 2015
2e86855
Remove empty lines inside blocks
vassilevsky Feb 8, 2015
8ba4702
remove the SplineInterpolatePixel check in the rmmain.c file since it…
joshk Sep 7, 2010
189d255
Make format a string literal
vassilevsky Feb 10, 2015
105f04a
Display only master build status in README
vassilevsky Feb 12, 2015
cece2e8
Remove empty lines around class bodies
vassilevsky Feb 10, 2015
4f7cb32
Remove empty lines around method bodies
vassilevsky Feb 10, 2015
92554ff
Remove empty lines around module bodies
vassilevsky Feb 10, 2015
a9411e5
Use hash and array literals
vassilevsky Feb 10, 2015
75e4209
Use `odd?` instead of `% 2 != 0`
vassilevsky Feb 10, 2015
1f36248
Finalize 1.8 hash style setting
vassilevsky Feb 10, 2015
ccd434b
Use \ to concatenate long strings
vassilevsky Feb 10, 2015
b78cd1b
Use `nil?` instead of `== nil`
vassilevsky Feb 10, 2015
8e1d584
Enable checking for `not` usage instead of `!`
vassilevsky Feb 10, 2015
5165a34
Remove redundant begin..end
vassilevsky Feb 10, 2015
545485d
Remove redundant `return`s
vassilevsky Feb 10, 2015
bd132e0
Remove redundant `self`
vassilevsky Feb 10, 2015
0c1f7cc
Remove trailing semicolons
vassilevsky Feb 10, 2015
e948238
Use `fail` instead of `raise` when deliberately throwing exceptions
vassilevsky Feb 10, 2015
f4d31ca
Use long descriptive names of special global variables
vassilevsky Feb 10, 2015
8e151c4
Use single quotes around strings where possible
vassilevsky Feb 10, 2015
c11e6fe
Use single quotes around strings in interpolated expressions
vassilevsky Feb 10, 2015
46af474
Remove trailing empty lines
vassilevsky Feb 10, 2015
2a01d5b
Remove unnecessary `%q{}` string literal notation
vassilevsky Feb 10, 2015
62a725c
Indent multiline array values
vassilevsky Feb 10, 2015
f9bac8f
Indent multiline hashes
vassilevsky Feb 10, 2015
bbc0623
Indent multiline method call parameters
vassilevsky Feb 10, 2015
cba9aeb
Use line comments at all times
vassilevsky Feb 10, 2015
55176ee
Indent multiline array content with 2 spaces
vassilevsky Feb 10, 2015
7e54d67
Indent multiline hash content with 2 spaces
vassilevsky Feb 10, 2015
5d49340
Make trace_proc a proc instead of a lambda
vassilevsky Feb 12, 2015
d78df1c
Define procs with the `proc` keyword, not `Proc.new`
vassilevsky Feb 12, 2015
6883aa3
Add ImageMagick 6.9 to build matrix
vassilevsky Feb 13, 2015
4bbff3d
set ARCHFLAGS appropriately for OSX (#169)
u338steven Feb 15, 2015
000065e
Follow style guide
u338steven Feb 15, 2015
7fc54e4
Follow style guide
u338steven Feb 15, 2015
c138950
Merge pull request #170 from u338steven/ARCHFLAGS_appropriately
vassilevsky Feb 16, 2015
738fc2b
Unattended package installation and removal with apt-get
vassilevsky Feb 16, 2015
f31e3de
Add Hound configuration that uses existing RuboCop config file
vassilevsky Feb 16, 2015
5ecad6d
Follow the community style guide, not Thoughtbot's
vassilevsky Feb 16, 2015
987d67b
Unattended installation of ImageMagick build dependencies
vassilevsky Feb 16, 2015
6e1ca1c
fix: in `require': cannot load such file -- rmagick/version (LoadError)
u338steven Feb 18, 2015
5e6c806
The Great Indentation Fix
vassilevsky Feb 26, 2015
476e26c
Manually remove indentation of `when` inside `case`
vassilevsky Feb 26, 2015
8bf6522
Explicitly require single quotes around strings
vassilevsky Feb 26, 2015
5b42587
Remove tabs
vassilevsky Feb 26, 2015
49e21eb
Indent chained method calls on separate lines
vassilevsky Feb 26, 2015
db90a69
Remove unnecessary space
vassilevsky Feb 26, 2015
6d80e0f
Remove unnecessary comment
vassilevsky Feb 26, 2015
fe9d07d
Enforce leading dots in multiline chained method calls
vassilevsky Feb 27, 2015
5e0296d
Merge pull request #174 from gemhome/fix-indentation
vassilevsky Mar 1, 2015
5ca41ef
Merge pull request #172 from u338steven/fix_missing_version_rb
vassilevsky Mar 1, 2015
4b16889
Fix for ImageMagick 404
mockdeep Mar 2, 2015
8ed258c
Merge pull request #177 from gemhome/magick_fix
mockdeep Mar 4, 2015
351dd8b
Fixed escaping of '%' sign
Mar 5, 2015
6d95199
more robust #177(Fix for ImageMagick 404)
u338steven Mar 12, 2015
064d0f9
Merge pull request #181 from gemhome/travis-with-latest-IM
u338steven Mar 17, 2015
634a3d7
Merge pull request #179 from mkluczny/percent_sign_escaping_fix
u338steven Mar 17, 2015
80de3d1
Test on Ruby 2.2
vassilevsky Mar 18, 2015
7d714db
Explicitly load Test/Unit in Ruby >= 2.0
vassilevsky Mar 18, 2015
8fe6b12
Allow Ruby 2.2 to segfault without making master red
vassilevsky Mar 19, 2015
c765163
Fix indentation and spacing
vassilevsky Mar 19, 2015
1c8c7db
Silence warnings on Ruby 2.2 when comparing Enums
meanphil Mar 5, 2015
16bfaea
Reduce nesting by early return
vassilevsky Mar 28, 2015
f3fe756
Fix a typo
vassilevsky Mar 30, 2015
301fb62
Add space after comma
vassilevsky Mar 30, 2015
b2865f4
Add unreleased user-facing changes to the changelog
vassilevsky Mar 30, 2015
9acc1c2
Remove post-install message
vassilevsky Mar 31, 2015
bcace0b
Require English library to make long global variable names work
vassilevsky Mar 31, 2015
40d7c03
Release 2.14.0
vassilevsky Mar 31, 2015
3d4a954
Write version 2.14.0 to changelog
vassilevsky Mar 31, 2015
e845998
Inform potential contributors that we appreciate their effort
vassilevsky Apr 9, 2015
546e689
Use actual numbers in numbered list
vassilevsky Apr 9, 2015
9a7f480
Instruct potential contributors to use RSpec
vassilevsky Apr 9, 2015
2a39aca
Ask potential contributors to follow Git Style Guide
vassilevsky Apr 9, 2015
952f581
Add link to CodeTriage project page
vassilevsky Apr 14, 2015
c237e81
Add code of conduct
vassilevsky Apr 9, 2015
697ded3
Link to code of conduct from contributor's guide
vassilevsky Apr 9, 2015
220f082
Make source information italic
vassilevsky Apr 9, 2015
7789ba7
Send in RUBY_VERSION.dup to Gem::Version
linduxed Apr 6, 2015
39ecbe7
fixed typo in Rakefile
spidergears Apr 20, 2015
2934aee
Merge pull request #190 from spidergears/fix_rakefile
mockdeep Apr 20, 2015
5dc852f
Added missing -alpha remove flag
ollie Apr 23, 2015
13cec53
Only add RemoveAlphaChannel enun if HAVE_ENUM_REMOVEALPHACHANNEL
ollie Apr 24, 2015
ee1b877
Fixed test: find 12 alpha enumerators instead of 11
ollie Apr 24, 2015
962a2bd
Actually do not test number of alpha enumerators
ollie Apr 24, 2015
c2d2f63
Merge pull request #192 from ollie/add-alpha-remove-flag
vassilevsky Apr 24, 2015
f27badb
replaced `volatile VALUE X` with `RB_GC_GUARD(X)`
u338steven Apr 25, 2015
d287616
Merge pull request #193 from gemhome/replace_volatile
vassilevsky Apr 26, 2015
ae0adce
fixed segfault in Magick#trace_proc= for ruby 2.2.X
u338steven Apr 26, 2015
f984713
Merge pull request #194 from gemhome/fixed_segfault_in_trace_proc
vassilevsky Apr 27, 2015
488a6de
introduce rspec and convert over draw_spec.rb
mockdeep Mar 1, 2015
7826df4
Merge pull request #176 from gemhome/spec_it
vassilevsky Apr 27, 2015
5198e8f
It is possible to branch from master now
vassilevsky Apr 27, 2015
4d2fb15
Updated Rubocop version and regenerated TODO yml
ollie Apr 27, 2015
6e3ac1a
Moved .rubocop_todo.yml into .rubocop.yml
ollie Apr 28, 2015
3f586e4
Always use latest version of Rubocop
ollie Apr 28, 2015
ddbc316
Merge pull request #195 from ollie/rubocop-update
vassilevsky Apr 28, 2015
529cfc9
Release 2.15.0
vassilevsky Apr 28, 2015
d96e37c
Fixed Rubocop Style/TrailingWhitespace
ollie Apr 28, 2015
6aba928
Fixed Rubocop Style/IndentationConsistency
ollie Apr 28, 2015
7ba815c
Copied back custom rubocop config before update to silence Hound
ollie Apr 28, 2015
b4d636e
Merge pull request #196 from ollie/rubocop-whitespace-fix
vassilevsky Apr 28, 2015
0c3882e
Convert changelog to Markdown
vassilevsky May 10, 2015
b1ae309
Format lists of changes between releases
vassilevsky May 10, 2015
50c14cf
Reformat lists of issues as lists
vassilevsky May 10, 2015
af01ef1
Format code and filenames in monospaced font
vassilevsky May 10, 2015
efa4d23
Specify actual added enum values in CHANGELOG
vassilevsky May 11, 2015
be11097
Fixed segfault for Ruby 1.8 on Travis CI
u338steven May 25, 2015
eba2dc5
Add instructions on how to disable stack size limit to README
vassilevsky May 25, 2015
0d9b222
Merge pull request #198 from gemhome/fix_ruby18_segfault
vassilevsky May 25, 2015
d20e6dd
Add instructions on reinstalling pkg-config with Homebrew on OS X
vassilevsky May 25, 2015
f967f05
Fixed #202; Avoid a loop in linked list
u338steven May 30, 2015
80b873c
Merge pull request #203 from gemhome/fix_hangs_in_ilist
vassilevsky May 30, 2015
20831cc
Release 2.15.1
vassilevsky May 30, 2015
d3f43ea
Remove redundant comment
u338steven May 31, 2015
004a8c4
Move RMagick to github.com/rmagick/rmagick
vassilevsky Jun 2, 2015
6459e68
Remove information about the fork because the original repo is back
vassilevsky Jun 2, 2015
aeb305e
Release 2.15.2 with updated links to GitHub
vassilevsky Jun 2, 2015
afa0225
Accept `convert -version` format variation
maisumakun Jun 22, 2015
3f4a1cf
Merge pull request #207 from maisumakun/win64-6.9.1
vassilevsky Jun 22, 2015
6507ce4
Release 2.15.3 with improved version detection on Windows
vassilevsky Jul 21, 2015
64eda65
Download Imagemagick as a tar.xz
iGEL Jul 23, 2015
60a5f55
Rubocop errors fixed
iGEL Jul 23, 2015
6d495c5
Build on legacy infrastructure on Travis CI
iGEL Jul 23, 2015
d5427d1
Adjusted allowed failures
iGEL Jul 23, 2015
6f10a9e
Merge pull request #209 from iGEL/build_fix
vassilevsky Jul 24, 2015
f1b5cd9
Add .editorconfig to make a default indentation style
marceloboeira Jul 24, 2015
0f21fe6
Merge pull request #210 from marceloboeira/editorconfig
vassilevsky Jul 25, 2015
14cc6a7
Change indentation style follow ruby style guide (2 spaces)
marceloboeira Jul 26, 2015
b2fbff4
Merge pull request #211 from marceloboeira/ruby-style
vassilevsky Jul 27, 2015
b6409db
Convert more tests to specs
mockdeep Aug 5, 2015
5bc06e7
Merge pull request #214 from mockdeep/testy
vassilevsky Aug 5, 2015
cdf3acb
update rubocop config
mockdeep Aug 5, 2015
25e80c3
Merge pull request #215 from rmagick/ruhroh
vassilevsky Aug 6, 2015
f76164a
more tests converted to RSpec
mockdeep Aug 6, 2015
08e8adb
Call `pkg-config` if GraphicsMagick is installed
u338steven Jun 1, 2015
923aa99
Replace `convert` with `*-config` to get ImageMagick version
u338steven Jun 1, 2015
40a8511
`Gem::Version` requires `rubygems` for Ruby 1.8
u338steven Jun 1, 2015
9fecbb1
Fix missing X11 library for Windows x86
u338steven Jun 1, 2015
8ebc26d
Replace `convert` with `identify` to avoid confusion for Windows
u338steven Jun 1, 2015
d5d90d2
Automatically set `CPPFLAGS` and `LDFLAGS` on MinGW
u338steven Jun 1, 2015
1ab6555
Merge pull request #217 from rmagick/spuc
vassilevsky Aug 8, 2015
3b99c0d
Merge pull request #204 from rmagick/fix_build_problems
vassilevsky Aug 8, 2015
0dac155
remove style checks from Travis build
mockdeep Aug 8, 2015
2186677
Merge pull request #219 from rmagick/nobo
vassilevsky Aug 10, 2015
cb3d5e7
Document the new `develop` branch where all work is done
vassilevsky Aug 14, 2015
679ceb2
Document the problem with the default repo when creating a PR
vassilevsky Aug 14, 2015
77cd5b7
Add ImageMagick development libraries installation instructions for D…
vassilevsky Aug 14, 2015
4bc3b2b
Merge branch 'develop'
vassilevsky Aug 14, 2015
37b268c
Release version 2.15.4
vassilevsky Aug 14, 2015
9b961e8
Add README hint for bitness under windows
NobodysNightmare Dec 2, 2015
9451b48
Orthography fixes
NobodysNightmare Dec 4, 2015
8614f0c
Merge pull request #228 from NobodysNightmare/patch-1
linduxed Dec 6, 2015
57c590f
Drop support for Ruby 1.8 and 1.9
Dec 11, 2015
893dfd9
Merge pull request #232 from joneslee85/drop-unsupported-rubies
vassilevsky Dec 15, 2015
bff7781
Fix Travis builds
vassilevsky Dec 21, 2015
2640b41
:warning: assigned but unused variable - current
amatsuda Jan 11, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# EditorConfig helps developers define and maintain consistent coding styles between different editors and IDEs
# @see http://editorconfig.org
root = true

[*]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = spaces
tab_width = 2

[{*.{rb,yml,sh,md}]
indent_size = 2
21 changes: 21 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
*.gem
*.rbc
.bundle
.config
.yardoc
Gemfile.lock
InstalledFiles
_yardoc
coverage
lib/bundler/man
pkg
rdoc
spec/reports
test/tmp
test/version_tmp
tmp
*.bundle
*.so
*.o
*.a
mkmf.log
2 changes: 2 additions & 0 deletions .hound.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ruby:
config_file: .rubocop.yml
1 change: 1 addition & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--require spec_helper
340 changes: 340 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,340 @@
# Custom configuration, edit with care! This gem needs to be backwards
# compatible with Ruby 1.8:

Style/HashSyntax:
EnforcedStyle: hash_rockets

Style/DeprecatedHashMethods:
Enabled: false

# TODO: How to warn if stabby proc is used?
Style/Lambda:
Enabled: false

Style/StringLiterals:
EnforcedStyle: single_quotes

Style/DotPosition:
EnforcedStyle: leading

# Auto-generated config to be cleaned up and deleted:

# Offense count: 2
# Cop supports --auto-correct.
Lint/BlockAlignment:
Enabled: false

Lint/FormatParameterMismatch:
Enabled: false

# Offense count: 1
Lint/HandleExceptions:
Enabled: false

# Offense count: 1
Lint/RescueException:
Enabled: false

# Offense count: 1
Lint/ShadowingOuterLocalVariable:
Enabled: false

# Offense count: 1
Lint/UnderscorePrefixedVariableName:
Enabled: false

# Offense count: 9
# Cop supports --auto-correct.
Lint/UnusedBlockArgument:
Enabled: false

# Offense count: 17
# Cop supports --auto-correct.
Lint/UnusedMethodArgument:
Enabled: false

# Offense count: 22
Lint/UselessAssignment:
Enabled: false

# Offense count: 183
Metrics/AbcSize:
Max: 559

# Offense count: 1
Metrics/BlockNesting:
Max: 4

# Offense count: 17
# Configuration parameters: CountComments.
Metrics/ClassLength:
Max: 1099

# Offense count: 22
Metrics/CyclomaticComplexity:
Max: 42

# Offense count: 844
# Configuration parameters: AllowURI, URISchemes.
Metrics/LineLength:
Max: 276

# Offense count: 178
# Configuration parameters: CountComments.
Metrics/MethodLength:
Max: 157

# Offense count: 13
# Configuration parameters: CountKeywordArgs.
Metrics/ParameterLists:
Max: 8

# Offense count: 14
Metrics/PerceivedComplexity:
Max: 41

Performance/StringReplacement:
Enabled: false

# Offense count: 4
Style/AccessorMethodName:
Enabled: false

Style/AlignArray:
Enabled: false

# Offense count: 3
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
Style/BarePercentLiterals:
Enabled: false

# Offense count: 7
Style/CaseEquality:
Enabled: false

# Offense count: 63
# Configuration parameters: IndentWhenRelativeTo, SupportedStyles, IndentOneStep.
Style/CaseIndentation:
Enabled: false

# Offense count: 13
Style/ClassAndModuleCamelCase:
Enabled: false

# Offense count: 6
# Configuration parameters: EnforcedStyle, SupportedStyles.
Style/ClassAndModuleChildren:
Enabled: false

# Offense count: 1
# Cop supports --auto-correct.
Style/ClosingParenthesisIndentation:
Enabled: false

Style/CollectionMethods:
Enabled: false

# Offense count: 5
# Cop supports --auto-correct.
Style/CommentIndentation:
Enabled: false

# Offense count: 126
Style/ConstantName:
Enabled: false

# Offense count: 62
Style/Documentation:
Enabled: false

Style/EmptyLinesAroundBlockBody:
Enabled: false

Style/ExtraSpacing:
Enabled: false

# Offense count: 23
# Configuration parameters: Exclude.
Style/FileName:
Enabled: false

# Offense count: 68
# Configuration parameters: EnforcedStyle, SupportedStyles.
Style/FormatString:
Enabled: false

# Offense count: 45
# Configuration parameters: AllowedVariables.
Style/GlobalVars:
Enabled: false

# Offense count: 8
# Configuration parameters: MinBodyLength.
Style/GuardClause:
Enabled: false

# Offense count: 29
# Cop supports --auto-correct.
# Configuration parameters: MaxLineLength.
Style/IfUnlessModifier:
Enabled: false

Style/IndentArray:
Enabled: false

Style/IndentationConsistency:
Enabled: false

# Offense count: 1049
# Cop supports --auto-correct.
# Configuration parameters: Width.
Style/IndentationWidth:
Enabled: false

# Offense count: 47
# Cop supports --auto-correct.
Style/LeadingCommentSpace:
Enabled: false

# Offense count: 4
# Configuration parameters: EnforcedStyle, SupportedStyles.
Style/MethodName:
Enabled: false

# Offense count: 9
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
Style/MultilineOperationIndentation:
Enabled: false

# Offense count: 1
Style/MultilineTernaryOperator:
Enabled: false

# Offense count: 3
# Configuration parameters: EnforcedStyle, MinBodyLength, SupportedStyles.
Style/Next:
Enabled: false

# Offense count: 21
# Cop supports --auto-correct.
Style/NumericLiterals:
MinDigits: 18

# Offense count: 1
Style/OpMethod:
Enabled: false

# Offense count: 9
# Cop supports --auto-correct.
# Configuration parameters: PreferredDelimiters.
Style/PercentLiteralDelimiters:
Enabled: false

# Offense count: 10
# Cop supports --auto-correct.
Style/PerlBackrefs:
Enabled: false

# Offense count: 4
# Configuration parameters: NamePrefix, NamePrefixBlacklist.
Style/PredicateName:
Enabled: false

# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, AllowInnerSlashes.
Style/RegexpLiteral:
Enabled: false

Style/RescueEnsureAlignment:
Enabled: false

# Offense count: 2
Style/RescueModifier:
Enabled: false

# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: AllowAsExpressionSeparator.
Style/Semicolon:
Enabled: false

# Offense count: 2
# Configuration parameters: Methods.
Style/SingleLineBlockParams:
Enabled: false

# Offense count: 7
# Cop supports --auto-correct.
Style/SingleSpaceBeforeFirstArg:
Enabled: false

# Offense count: 1114
# Cop supports --auto-correct.
Style/SpaceAfterComma:
Enabled: false

# Offense count: 91
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
Style/SpaceAroundEqualsInParameterDefault:
Enabled: false

# Offense count: 1066
# Cop supports --auto-correct.
# Configuration parameters: MultiSpaceAllowedForOperators.
Style/SpaceAroundOperators:
Enabled: false

# Offense count: 3
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
Style/SpaceBeforeBlockBraces:
Enabled: false

# Offense count: 204
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
Style/SpaceInsideBlockBraces:
Enabled: false

# Offense count: 6
# Cop supports --auto-correct.
Style/SpaceInsideBrackets:
Enabled: false

# Offense count: 68
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SupportedStyles.
Style/SpaceInsideHashLiteralBraces:
Enabled: false

# Offense count: 35
# Cop supports --auto-correct.
Style/SpaceInsideParens:
Enabled: false

# Offense count: 12
# Cop supports --auto-correct.
# Configuration parameters: IgnoredMethods.
Style/SymbolProc:
Enabled: false

# Offense count: 3
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyleForMultiline, SupportedStyles.
Style/TrailingComma:
Enabled: false

# Offense count: 2
# Configuration parameters: EnforcedStyle, SupportedStyles.
Style/VariableName:
Enabled: false

# Offense count: 7
# Cop supports --auto-correct.
# Configuration parameters: WordRegex.
Style/WordArray:
MinSize: 3
Loading