Commit Graph

10 Commits

Author SHA1 Message Date
Javi Martín
db97f9d08c Add and apply rubocop rules for empty lines
We were very inconsistent regarding these rules.

Personally I prefer no empty lines around blocks, clases, etc... as
recommended by the Ruby style guide [1], and they're the default values
in rubocop, so those are the settings I'm applying.

The exception is the `private` access modifier, since we were leaving
empty lines around it most of the time. That's the default rubocop rule
as well. Personally I don't have a strong preference about this one.


[1] https://rubystyle.guide/#empty-lines-around-bodies
2019-10-24 17:11:47 +02:00
Javi Martín
71d9ddd849 Apply rule to end files with a newline character 2019-09-10 20:02:15 +02:00
Bertocq
d7b8777395 Fix all Layout/SpaceAroundEqualsInParameterDefault rubocop issues from rubocop_todo list 2017-06-26 18:03:40 +02:00
Juanjo Bazán
d11a6a039a refactors method to keep consistency in sync 2015-09-12 14:29:26 +02:00
Juanjo Bazán
9166307120 adds cache key for commendable without updated_at 2015-09-09 14:45:19 +02:00
Juanjo Bazán
bf18da3faa adds cache for authors of debate/comment 2015-09-06 22:03:31 +02:00
rgarcia
0e1678467d adds admins and moderators to cache keys 2015-09-05 22:02:51 +02:00
rgarcia
4897d5df4e makes spaces consistent 2015-09-03 01:29:46 +02:00
Juanjo Bazán
0c7ce4b6cf includes organizations in the cache key helper 2015-09-02 12:39:31 +02:00
Juanjo Bazán
ef9a386b2b adds cache key helper for locale+user status 2015-08-31 20:39:54 +02:00