Commit graph

20 commits

Author SHA1 Message Date
Claudio Bley
0f9f01cdb1 Enable all newly introduced cops automatically
When Rubocop introduces new rules, existing code may violate them unknowingly.

That's why they are in a "pending" state initially and need to be enabled
explicitly:

```
The following cops were added to RuboCop, but are not configured. Please set
Enabled to either `true` or `false` in your `.rubocop.yml` file:

 - Layout/SpaceAroundMethodCallOperator (0.82)

 - Style/ExponentialNotation (0.82)

For more information: https://docs.rubocop.org/en/latest/versioning/
```

Since we never automatically let gem upgrade rubocop in this project, it is
safe to enable all pending cops globally. This way new cops are not silenced and
one has to deal with them when upgrading the dependency on Rubocop.
2020-04-20 10:20:10 +02:00
Claudio Bley
86cfa2f5cf Drop support for Ruby 2.4
It reached EOL on March 31, 2020, and no longer receives patches.

See https://www.ruby-lang.org/en/news/2020/04/05/support-of-ruby-2-4-has-ended/
2020-04-16 22:49:54 +02:00
Claudio Bley
68436f9f73 Enable pending cops
```
The following cops were added to RuboCop, but are not configured. Please set Enabled to either `true` or `false` in your `.rubocop.yml` file:
 - Lint/RaiseException (0.81)
 - Lint/StructNewOverride (0.81)
 - Style/HashEachMethods (0.80)
 - Style/HashTransformKeys (0.80)
 - Style/HashTransformValues (0.80)
For more information: https://docs.rubocop.org/en/latest/versioning/
```
2020-04-16 22:20:13 +02:00
Claudio Bley
b43a47608c Fix rubocop warning, move LineLength into Layout namespace
```
.rubocop.yml: Metrics/LineLength has the wrong namespace - should be Layout
```
2020-01-20 21:37:20 +01:00
Claudio Bley
9d2dd63944 rubocop: Rename Layout/AlignParameters cop to Layout/ParameterAlignment 2019-11-28 14:32:03 +01:00
Claudio Bley
55423123a1 Drop support for Ruby 2.3
It reached EOL on March 31, 2019, and no longer receives patches.

See https://www.ruby-lang.org/en/news/2019/03/31/support-of-ruby-2-3-has-ended/
2019-07-01 23:34:18 +02:00
Claudio Bley
cdf1f86ca2 Use rubocop-performance 2019-04-09 18:28:34 +02:00
Claudio Bley
41c274b883 Disable the Style/StderrPuts cop
I do not want to use `warn` since these errors should not be suppressed. And
I always want to use `STDERR`, not `$stderr`.
2019-04-09 18:25:06 +02:00
Claudio Bley
e02b30a111 Drop support for Ruby 2.2
It reached EOL on 20th Jun 2018 and no longer receives patches.

* set required Ruby version to >= 2.3 in spec file
* set rubocop's TargetRubyVersion to 2.3 and fix all the offenses
2019-01-04 12:08:06 +01:00
Claudio Bley
6061590a34 Set rubocop target Ruby version to 2.2 2018-12-28 18:55:57 +01:00
rohitner
1fefca92a9 fixed rubocop issue 2017-11-23 00:10:53 +05:30
Alex
1cd2029126 Create yaml class and add class methods. Move specs to appropriate folder. Fix method calls. Move flags spec to appropriate folder for rubocop 2017-11-07 19:22:37 -05:00
Alex
7aec4fda94 Add rubocop-rspec as a dev dependency. Fix non-directory changing fixes 2017-11-07 19:22:37 -05:00
Henré Botha
95e5e98d33 Exclude shell scripts from rubocop 2017-10-23 13:24:09 +02:00
hirowatari
342abf49f9 Rubocop fixes (#130)
* minor rubocop fixes

* fix FileName namespace
2017-10-21 00:27:17 +05:30
rohitner
72f3424a0d added -gs flag 2017-08-26 21:40:15 +05:30
rohitner
6b14f40331 minor bug fixes and changed rubocop 2017-08-26 18:31:37 +05:30
Rohit Ner
d3e0cd3bb8 Adds support for -h / --help flag (#97)
* added help flag

* updated .travis.yml

* added the list of all use-case commands

* changed rubocop

* made the necessary minor changes in helplog method and changed rubocop
2017-08-16 07:39:02 +05:30
GladOSkar
0cc9e16609 made rubocop happy by simplifying init_contents and increasing class
length limit
2017-07-10 15:04:45 +02:00
Athitya
f993755f0e Adds ruby gem skeleton 2017-07-05 19:53:11 +05:30