Tom Hughes
434035eb5a
Enable new cops by default
2020-04-19 19:04:32 +01:00
Andy Allan
9b3a3a12f5
Add rubocop-minitest
2020-04-15 16:15:52 +02:00
Tom Hughes
c0c817b542
Update rubocop configuration
2020-02-28 22:50:08 +00:00
Boubacar
e854273c48
change Max for rubocop Metrics/ModuleLength
2020-02-17 12:33:47 -05:00
Andy Allan
2722cc60be
Move Style/Documentation into the main config file
...
I don't think anyone intends to write documentation for the app
2019-12-18 15:34:11 +01:00
Tom Hughes
57f5b7840e
Fix rubocop warnings
2019-12-04 19:31:53 +00:00
Andy Allan
a41d500b9f
Create an ApplicationRecord for models to inherit from
...
This is the default for Rails 5+, and also paves the way for
multiple database support.
2019-11-27 11:50:48 +01:00
Tom Hughes
bf1b9a9b60
Exclude all vendored code from rubocop checking
2019-08-27 15:33:23 +01:00
Andy Allan
8c1a5d62f8
Ignore the class length of test files
...
There's no sensible way to refactor a controller test into multiple classes,
so lets exclude them from the class length metrics to reveal other over-length
classes.
2019-07-10 17:24:32 +02:00
Andy Allan
a88d62bcc6
Ignore the block length of the routes
...
Since the routes are more of a dsl than code, we've been happy to
repeatedly bump up this number. But then that hides other code which
has over-long block lengths hiding behind.
So instead let's exclude the routes from this metric.
2019-06-05 16:29:54 +02:00
Tom Hughes
0d936de9c9
Add rubocop-rails
2019-06-05 08:51:27 +01:00
Tom Hughes
81e0b49ed5
Add rubocop-performance
2019-04-23 09:33:34 +01:00
Andy Allan
1ca77d6dda
Rubocop fixes for ruby 2.5
2019-03-13 10:33:33 +01:00
Tom Hughes
b8a8a88004
Merge remote-tracking branch 'upstream/pull/2014'
2018-10-03 18:59:33 +01:00
Andy Allan
3ec67ea2d3
Rename user_controller to users_controller
2018-10-03 15:31:10 +02:00
Andy Allan
0619ff58a8
Remove rubocop reference to quad_tile code
2018-10-03 14:07:10 +02:00
Tom Hughes
6c2093b29d
Fix new rubocop warnings
2018-09-22 17:12:29 +01:00
Andy Allan
071d7619c5
Set the rubocop target version to 2.3
...
This allows rubocop to run additional cops that would not apply to
older ruby versions
2018-09-19 14:25:31 +01:00
Tom Hughes
98de681e47
Update to rails 5.2.0
2018-06-19 00:16:24 +01:00
Tom Hughes
727ee97a3f
Allow inline javascript and CSS in better_errors pages
2018-06-17 11:33:51 +01:00
Tom Hughes
cb3c4ec09b
Update for rubocop 0.54.0
2018-05-17 19:39:25 +01:00
Tom Hughes
1f2ac59d1d
Fix new rubocop warnings
2018-03-26 19:00:03 +01:00
Tom Hughes
a83030dab7
Fix new rubocop warnings
2018-01-22 18:55:45 +00:00
Tom Hughes
8dae890a76
Fix rubocop warnings
2017-10-05 19:18:38 +01:00
Tom Hughes
5b33f3f8e3
Fix rubocop warnings
2017-06-02 00:08:30 +01:00
Tom Hughes
c5ef6404f5
Improve the content security policy
2017-03-01 22:38:24 +00:00
Tom Hughes
40a8e5caf5
Add support for Content-Security-Policy
...
Currently this is report only, and disabled unless a report URL has
been set in the application configuration.
2017-02-26 19:48:13 +00:00
Tom Hughes
c8671c137a
Update rubocop
2017-02-05 11:12:37 +00:00
Tom Hughes
e17b89e89f
Fix rubocop warnings
2016-10-20 22:35:51 +01:00
Andy Allan
d63dba03ce
Add xml builder files to rubocop.
2016-09-07 11:07:56 +01:00
Tom Hughes
8008dc9ccb
Update rubocopy config after bug fixes
2016-02-11 07:12:41 +00:00
Tom Hughes
5d3ecffa28
Fix new rubocop warnings
2016-02-05 13:35:26 +00:00
Tom Hughes
8fe1899596
Fix rubocop warnings
2016-01-19 09:51:24 +00:00
Tom Hughes
c9d35839be
Fix new rubocopy warnings
2015-08-18 20:57:14 +01:00
Tom Hughes
750484d1b5
Add rails cops to rubocop todo
2015-02-25 00:32:12 +00:00
Tom Hughes
a6b84a0294
Fix more rubocop style issues
2015-02-24 23:12:02 +00:00
Tom Hughes
4f4180e4bd
Standardise on "hash rocket" style for hashes
2015-02-20 19:53:13 +00:00
Tom Hughes
dc2a2c8ebd
Standardise on double quoted strings
2015-02-20 19:47:26 +00:00
Tom Hughes
5cbd4038ed
Fix rubocop style issues
2015-02-20 08:56:16 +00:00
Tom Hughes
ef7f3d800c
Fix most auto-correctable rubocop issues
2015-02-20 08:56:16 +00:00
Tom Hughes
e1f79d84ad
Add rubocop config with impressively large todo list
2015-02-20 08:56:15 +00:00