- 06 7月, 2017 3 次提交
-
-
由 Yorick Peterse 提交于
This cop has been renamed to ActiveRecordSerialize to match the way "ActiveRecord" is usually written.
-
由 Yorick Peterse 提交于
This is allowed for existing instances so we don't end up 76 offenses right away, but for new code one should _only_ use this if they _have_ to remove non database data. Even then it's usually better to do this in a service class as this gives you more control over how to remove the data (e.g. in bulk).
-
由 Douwe Maan 提交于
-
- 15 6月, 2017 1 次提交
-
-
由 Robert Speicher 提交于
This cop adds an offense when `before`, `after`, or `around` are used as single-line blocks.
-
- 13 6月, 2017 1 次提交
-
-
由 blackst0ne 提交于
-
- 07 6月, 2017 2 次提交
-
-
由 Yorick Peterse 提交于
One should really use a separate table instead of using polymorphic associations. See https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/11168 for more information.
-
由 blackst0ne 提交于
Add a rubocop rule to check if a method 'redirect_to' is used without explicitly set 'status' in 'destroy' actions of controllers
-
- 31 5月, 2017 1 次提交
-
-
由 Yorick Peterse 提交于
This Cop blacklists the use of ActiveRecord's "serialize" method, except for cases where we already use this.
-
- 29 5月, 2017 1 次提交
-
-
由 Rémy Coutable 提交于
Signed-off-by: NRémy Coutable <remy@rymai.me>
-
- 29 4月, 2017 2 次提交
-
-
由 Robert Speicher 提交于
-
由 Robert Speicher 提交于
We're going to add another cop that deals with another aspect of `add_column_with_default`, so we need to separate them.
-
- 06 4月, 2017 1 次提交
-
-
由 blackst0ne 提交于
-
- 08 3月, 2017 1 次提交
-
-
由 Douwe Maan 提交于
-
- 01 3月, 2017 1 次提交
-
-
由 Sean McGivern 提交于
-
- 11 2月, 2017 1 次提交
-
-
由 Yorick Peterse 提交于
This adds a Rubocop rule to enforce the use of add_concurrent_foreign_key instead of the regular add_foreign_key method. This cop has been disabled for existing migrations so we don't need to change those.
-
- 10 2月, 2017 1 次提交
-
-
由 Robert Speicher 提交于
-
- 09 2月, 2017 2 次提交
-
-
由 Douwe Maan 提交于
-
由 Douwe Maan 提交于
-
- 31 1月, 2017 1 次提交
-
-
由 Adam Pahlevi 提交于
code fix for aesthetic & conventions remove unused proc
-
- 29 6月, 2016 1 次提交
-
-
由 Yorick Peterse 提交于
There are currently two cops for this: * Migration/AddIndex: checks if indexes are added concurrently * Migration/ColumnWithDefault: checks if columns with default values are added in a concurrent manner Both cops are fairly simple and make no attempt at correcting the code as this is quite hard to do (e.g. modifications may need to be applied in various places in the same file). They however should provide enough to catch people ignoring the comments in generated migrations telling them to use add_concurrent_index or add_column_with_default.
-