该项目从 https://gitlab.com/gitlab-org/gitlab.git 镜像。
拉取镜像更新于 。
- 6月 06, 2023
-
-
由 Abdul Wadood 创作于
We allow `add_column` and `create_table` methods inside the `down` method in post-deploy migrations. But if these methods were wrapped inside a statement like `if` then the cop was raising an error. For example, in the following, the 2nd example was being incorrectly flagged as an offense: ``` def down add_column(:table, :column) end ``` ``` def down add_column(:table, :column) unless column_exists(:table, :column) end ```
-
- 6月 02, 2023
-
-
由 Peter Leitzen 创作于
Use Pathname API as much as possible and resolve all RuboCop offenses.
-
由 Peter Leitzen 创作于
If specs change in {,ee/}/spec/migrations/**/*_spec.rb change RuboCop's cache should be invalidated for this cop to avoid flaky results in CI. Also, use RESTRICT_ON_SEND to define target method which is used by RuboCop internally to speed-up scans.
-
- 6月 01, 2023
-
-
由 Eduardo Bonet 创作于
Adds database migration and model definitions necessary to add visibility toggle for Model experiments Changelog: added
-
- 5月 31, 2023
-
-
由 Peter Leitzen 创作于
Previously, this cop only flagged `self.ignored_columns += [...]`. Because of this change the cop rule is put back in "grace period" to maintain `master` stability.
-
- 5月 30, 2023
-
-
由 Maxime Orefice 创作于
-
- 5月 24, 2023
-
-
由 David Kim 创作于
-
- 5月 17, 2023
-
-
由 Peter Leitzen 创作于
Flag local assignments during factory "load time". This leads to static data definitions. Move these definitions into attribute block or `transient` block to ensure that the data is evaluated during "runtime" and remains dynamic. Example: # bad factory :foo do random = rand(23) baz { "baz-#{random}" } trait :a_trait do random = rand(23) baz { "baz-#{random}" } end transient do random = rand(23) baz { "baz-#{random}" } end end # good factory :foo do baz { "baz-#{random}" } trait :a_trait do baz { "baz-#{random}" } end transient do random { rand(23) } end end
-
- 5月 16, 2023
-
-
由 Alina Mihaila 创作于
-
- 5月 15, 2023
-
-
由 Peter Leitzen 创作于
Current offenses are excludes via rake rubocop:todo:generate[Graphql/ResourceNotAvailableError] Put this cop in grace period.
-
- 5月 10, 2023
-
-
由 Peter Leitzen 创作于
Show the full source code in the offense message instead of its AST.
-
- 5月 09, 2023
-
-
由 Alina Mihaila 创作于
-
- 4月 28, 2023
-
-
由 Peter Leitzen 创作于
This same functionality is now covered by Gettext/StaticString.
-
由 Peter Leitzen 创作于
This cop ensures that only static strings are passed to gettext translation methods `_()`, `s_()`, `n_()`, `N_()`. Any kind of interpolation, formatting, or concatenation is disallowed. The following definitions are allowed: * Local variables * Method calls which are not mentioned above * Constants Generate TODOs for pending offenses in Ruby code.
-
- 4月 27, 2023
-
-
由 Sylvester Chin 创作于
This primarily targets ActionMailer::MailDeliveryJob which our mailers send to Sidekiq. The ActiveJob wrapper does not include ApplicationWorker which makes it tricky to configure `data_consistency`. This MR introduces another path of logic to handle active jobs and enable db load balancing for those jobs. Changelog: other
-
由 Madelein van Niekerk 创作于
Changelog: added EE: true
-
由 Brian Williams 创作于
An `authorize` statement with no arguments is the same as not having an authorize statement at all. So, we should flag an offense if `authorize` does not have any arugments.
-
- 4月 23, 2023
-
-
由 Matt Kasa 创作于
Also: - Moves geo database docs to ee/db/geo/docs/ - Adds support for embedding database docs in ee/db/embedding/docs/ Relates to https://gitlab.com/gitlab-org/gitlab/-/issues/404396
-
- 4月 21, 2023
-
-
由 Niko Belokolodov 创作于
This MR removes usage of old method from the codebase. Also removed corresponding rubocop check
-
- 4月 06, 2023
-
-
由 Alina Mihaila 创作于
-
- 4月 04, 2023
-
-
由 Sylvester Chin 创作于
- ensure good practice to try and leverage the non primary database
-
- 3月 23, 2023
-
-
由 Alina Mihaila 创作于
-
- 3月 22, 2023
-
-
由 John Mason 创作于
-
- 3月 18, 2023
-
-
由 Peter Leitzen 创作于
-
- 3月 16, 2023
-
-
由 Maxime Orefice 创作于
Changelog: removed
-
- 3月 14, 2023
-
-
由 Peter Leitzen 创作于
Short-hand Hash syntax does not work prior 3.1.
-
- 3月 13, 2023
-
-
由 Prabakaran Murugesan 创作于
MR: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/110743 Changelog: other
-
由 Niko Belokolodov 创作于
-
- 2月 21, 2023
-
-
由 Peter Leitzen 创作于
This commit also fixes all offenses in changed files (except for `usage_data.rb` which got too huge).
-
- 2月 18, 2023
-
-
由 Alina Mihaila 创作于
-
- 2月 15, 2023
-
-
由 Thong Kuah 创作于
In Rails 7.0, `attribute` definitions in models now run at class definition time, and calls model.connection_db_config. This means swapping the connection_handler now breaks because there's no valid connection_pool within with_disabled_database_connections block. On investigation, `.connection_pool`, and `.connection_db_config` does not create a database connection (model.connection does). In order to have this keep working in Rails 7.0, we switch to counting the number of connections before, and after instead. Also to prevent re-use of connections, we also disconnect all active connections first.
-
由 Marc Saleiko 创作于
-
由 Omar Qunsul 创作于
Changelog: other
-
- 2月 09, 2023
-
-
由 Peter Leitzen 创作于
Only inspect example groups and examples for `feature_category:` and skip normal test code.
-
- 2月 07, 2023
-
-
由 Peter Leitzen 创作于
-
- 2月 06, 2023
-
-
由 Peter Leitzen 创作于
Follow-up of https://gitlab.com/gitlab-org/gitlab/-/merge_requests/98669. To avoid failing RuboCop CI jobs for Ruby 2.7 we are now enabling these rules in Ruby 3.0 and disable them in Ruby 2.7. The opposite what we've done previously. Both cops are put in "grace period" so don't fail in CI on `master`.
-
- 2月 04, 2023
-
-
由 Peter Leitzen 创作于
-
- 2月 03, 2023
-
-
由 Peter Leitzen 创作于
Define a single node pattern to catch both cases `type: File` and `types: [File, ...]`. Defining node patterns on the fly is slow and discouraged.
-
- For features that support developers and they are not specific to a product group
-
由 João Cunha 创作于
Add a cop to deny the use of disable_ddl_transaction! when only validate_foreign_key is used, as PostgreSQL will add and implicit transaction for single statements anyway.
-