该项目从 https://gitlab.com/gitlab-org/gitlab.git 镜像。
拉取镜像更新于 。
- 7月 19, 2023
-
-
由 Dmitry Gruzd 创作于
EE: true Changelog: changed
-
- 7月 14, 2023
-
-
由 Peter Leitzen 创作于
Auto-corrected via: rubocop -a --only Style/RedundantFreeze scripts spec tooling qa
-
由 Kyle Edwards 创作于
Some places are calling strong_memoize_with() without parameters. They should be using strong_memoize_attr() instead. Update the RuboCop to reflect this.
-
- 7月 13, 2023
-
-
由 Luke Duncalfe 创作于
The `Graphql/GIDExpectedType` cop enforces that we pass an `expected_type:` param when calling `Gitlab.object_from_id`, but our Global IDs validate that the object resolved from a Global ID matches the model which does the same check as the :expected_type param. - https://gitlab.com/gitlab-org/gitlab/-/blob/45b3c596ef8b181bc893bd3b71613edf66064936/app/graphql/types/global_id_type.rb#L98 - https://gitlab.com/gitlab-org/gitlab/-/blob/ac2116a0abbf98019145cbffa0fbe569c7e2f978/app/graphql/gitlab_schema.rb#L128 https://gitlab.com/gitlab-org/gitlab/-/issues/417093
-
- 7月 11, 2023
-
-
由 Luke Duncalfe 创作于
Fixes some `Naming/InclusiveLanguage` offenses.
-
由 Dylan Griffith 创作于
-
由 Piotr Skorupa 创作于
This commit: - Moves some of the settings Service Ping metrics to instrumentation classes. - Adds PrometheusMetric to handle metrics querying Prometheus (being wrapped by the #with_prometheus call) without resorting to evaluate the metric value block in another context. - Fixes some specs that were broken by migrating the metrics to the instrumentation class framework.
-
- 7月 06, 2023
-
-
由 Peter Leitzen 创作于
Auto-corrected via: rubocop -a --only Performance/RegexpMatch ... Auto-corrections manually reviewed and verified.
-
由 Luke Duncalfe 创作于
-
- 7月 05, 2023
-
-
由 Rémy Coutable 创作于
Signed-off-by:
Rémy Coutable <remy@rymai.me>
-
- 7月 04, 2023
-
-
由 Leonardo da Rosa 创作于
It prevents the usage of this deprecated method
-
由 David Dieulivol 创作于
-
- 6月 29, 2023
-
-
由 Piotr Skorupa 创作于
This migrates two Jira usage metrics in Service Ping to instrumentation classes framework. They have been subsequently removed from `Gitlab::UsageData`, as they are generated directly from instrumentation classes.
-
- 6月 28, 2023
-
-
由 David Dieulivol 创作于
* Rename Rubocop cop * Consider `let_it_be` aliases * For example: `let_it_be_with_reload` * Ensure that example group alternatives are caught * For example: `it_behaves_like` and `include_examples`
-
- 6月 27, 2023
-
-
由 Terri Chu 创作于
-
- 6月 26, 2023
-
-
由 Peter Leitzen 创作于
Previously, we only retained HAML exclusions which ended with `html.haml.rb`. We also need to retain exclusions with different format like `text`, `atom`, or no format (by mistake).
-
- 6月 21, 2023
-
-
由 Peter Leitzen 创作于
HAML files (ending with `.html.haml.rb`) added (manually) to `.rubocop_todo/**/*.yml` now are retained and not removed. This is useful because `haml-lint` (which use RuboCop rules) cannot exclude HAML files per RuboCop. So, we tend to disable whole cop rules in `haml-lint.yml`. With this change we can now start enabling "temporarily" disabled cop rules in add HAML files as TODOs.
-
- 6月 20, 2023
-
-
由 Leonardo da Rosa 创作于
It catches exceptions being rescued without being properly re-raised inside the Job Class.
-
- 6月 13, 2023
-
-
由 John Mason 创作于
Changelog: changed EE: true
-
- 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
-