Commit graph

33 commits

Author SHA1 Message Date
Grzegorz Bizon
0e8aaad510 Decrease threshold for ABC Size metric in Rubocop
To 60.
2016-04-11 10:27:13 +02:00
connorshea
6274136c9a Update Rubocop from 0.35.1 to 0.38.0.
Discussed in #14233.

See [their releases](https://github.com/bbatsov/rubocop/releases) for
more info.

Changes:
- Enable DisplayCopNames for lint output.
- Default behavior for `Alias` changed, set to enforce `prefer_alias_method`.
- Enabling Rails cops changed to new syntax.
- Remove StyleGuides and move Descriptions to comments.
- Add missing cops.
- Add TODOs for cops that should be enabled in the future.
- Set TargetRubyVersion to 2.1.
2016-03-20 20:49:12 -06:00
Gabriel Mazetto
f479ed3066 Disabled Rails/Date cop 2015-12-15 00:54:26 -02:00
Gabriel Mazetto
d1f1c5c60b Updated .rubocop.yml to match 0.35.x changes 2015-12-14 20:27:43 -02:00
Grzegorz Bizon
6ffe8a06fd Bump cyclomatic and perceived complexity threshold by one 2015-12-08 08:43:09 +01:00
Grzegorz Bizon
79fb993a65 Enable rubocop metrics
This enables rubocop metrics like CyclomaticComplexity and ABCSize.
Initial threshold values are high, should be probably decreased.
2015-12-08 08:43:08 +01:00
Robert Speicher
767bd6f882 Enable the Lint/RescueException cop 2015-11-24 20:55:09 -05:00
Guilherme Garnier
0406455c8a Enable "UselessAssignment" rubocop lint 2015-10-03 00:56:16 -05:00
Valery Sizov
ee5ce705d4 fix rubocop 2015-09-16 13:20:38 +03:00
Valery Sizov
e2cbb36ba9 fix specs. Stage 5 2015-09-15 15:51:03 +03:00
Dmitriy Zaporozhets
770eba73d4
Enable rubocop for tests too
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-06-22 13:35:02 +02:00
Jeroen van Baarsen
5a4ebfb47a Fixed the Rails/ActionFilter cop
Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
2015-04-20 15:39:37 +02:00
Dmitriy Zaporozhets
9193b94ece
No tabs in code!
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-04-15 16:14:16 +03:00
Dmitriy Zaporozhets
69454e36f7 Style/RedundantReturn enabled 2015-03-24 18:35:57 -07:00
Dmitriy Zaporozhets
6ec8ff069c Enable more rubocop style checks 2015-03-24 18:28:10 -07:00
Dmitriy Zaporozhets
8348e1a9b5 Enable ParenthesesAsGroupedExpression rule 2015-03-02 18:45:28 -08:00
Dmitriy Zaporozhets
61cc6a9244 Rubocop: indentation fixes Yay!!! 2015-02-02 21:59:28 -08:00
Dmitriy Zaporozhets
d04344373b Rubocop: no trailing newlines 2015-02-02 21:53:27 -08:00
Dmitriy Zaporozhets
615bb94135 Rubocop: Dont allow puts or print to stdout 2015-02-02 21:41:38 -08:00
Dmitriy Zaporozhets
647ff6240e Rubocop: Style/ElseAlignment enabled 2015-02-02 21:38:50 -08:00
Dmitriy Zaporozhets
7d48205c1a Rubocop: comment indentation 2015-02-02 21:34:16 -08:00
Dmitriy Zaporozhets
7558fe9875 More rubocop rules enable 2015-02-02 21:31:03 -08:00
Dmitriy Zaporozhets
368e9a0862 Rubocop: Style/CaseIndentation enabled 2015-02-02 21:26:40 -08:00
Dmitriy Zaporozhets
da884aabc7 Avoid using {...} for multi-line blocks 2015-02-02 21:22:57 -08:00
Dmitriy Zaporozhets
6579c336f9 Rubocop: Ascii restrictions 2015-02-02 21:20:34 -08:00
Dmitriy Zaporozhets
cc39bca3fa Rubocop: Style/AlignHash enabled 2015-02-02 21:15:44 -08:00
Dmitriy Zaporozhets
c427bf08e4 Rubocop: Style/AlignArray enabled 2015-02-02 20:58:28 -08:00
Dmitriy Zaporozhets
9fbdbf8b3f Rubocop: Style/Alias enabled 2015-02-02 20:57:10 -08:00
Dmitriy Zaporozhets
aaae5e6f5e Rubocop: Style/AccessorMethodName enabled 2015-02-02 20:55:05 -08:00
Dmitriy Zaporozhets
e890582681 Rubocop enabled for: Use spaces inside hash literal braces 2015-02-02 20:36:54 -08:00
Dmitriy Zaporozhets
4f1d1fc51b Convert hashes to ruby 1.9 style 2015-02-02 19:30:09 -08:00
Dmitriy Zaporozhets
46b6ceeac7 At first disable all checks. We will enable it one by one later 2015-02-02 19:11:45 -08:00
Dmitriy Zaporozhets
76027e5efd Add rubocop and remove rails_best_practices gem 2015-02-02 18:54:27 -08:00