Bertocq
61be1015dd
Explicitly disable rubocop-rspec cops until we can debate about it
2018-01-07 00:20:55 +01:00
Bertocq
7f14544f71
Enable Capybara/CurrentPathExpectation cop & fix issues
...
Read cop description http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Capybara/CurrentPathExpectation to better understand reasons behind enforcing this rule
On some cases the `only_path: true` was needed as argument of `have_current_path` matcher to avoid comparing the url parameters and just checking the path.
2018-01-06 23:31:41 +01:00
Bertocq
4c7b2fcaa0
Update rubocop config with some rspec cops rules without issues
2018-01-06 21:19:03 +01:00
Bertocq
de2816a6a5
Enable RSpec/BeforeAfterAll rule and fix all issues
...
This cop tries to avoid state leaking between examples. The fixes done on the code don't follow the suggested path, since the usage of `before(:all)` was not really useful. By using RSpec's `let` method we achieve same goals but with much better and readable tests.
Check Cop description at http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/BeforeAfterAll
2018-01-06 21:16:00 +01:00
Bertocq
6555d20a6a
Add rubocop-rspec gem and require it at rubocop config
2018-01-06 21:01:22 +01:00
Bertocq
ecab5875a8
Disable all rubocop cops by default
2018-01-06 20:43:41 +01:00
Bertocq
0516010aa3
Correct deprecated & renamed rubocop cops names
2018-01-06 20:43:41 +01:00
Bertocq
6aba5de801
Make rubocop display cop name and style guide link to improve output
2017-09-20 16:13:08 +02:00
Bertocq
4a5a164925
Ignore Style/SymbolProc rubocop cop, no strong preferences for it
2017-07-05 11:56:44 +02:00
Bertocq
c16b0cba4d
Disable Style/EmptyMethod rubocop rule after debate agreement
2017-06-28 14:12:51 +02:00
Bertocq
9504958a08
Disable Style/SymbolArray rubocop cop after core discussion about it
2017-06-26 11:10:30 +02:00
Bertocq
82d47458f7
Disable rubocop Rails/ApplicationRecord cop until rails 5 branch comes
2017-06-08 11:46:31 +02:00
Bertocq
ec49432039
Fix rubocop cop namespaces from Style to Layout for those that were moved on last version
2017-06-07 20:57:34 +02:00
kikito
a2fa65a5bc
adds .rubocop.yml + .rubocop_todo.yml
2016-11-25 13:39:59 +01:00