Skip to content
代码片段 群组 项目
该项目从 https://gitlab.com/gitlab-org/gitlab.git 镜像。 拉取镜像更新于
  1. 7月 19, 2023
  2. 7月 14, 2023
  3. 7月 13, 2023
  4. 7月 11, 2023
  5. 7月 06, 2023
  6. 7月 05, 2023
  7. 7月 04, 2023
  8. 6月 29, 2023
    • Piotr Skorupa's avatar
      Add instrumentation classes for Jira usage metrics · 158680cd
      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.
      158680cd
  9. 6月 28, 2023
    • David Dieulivol's avatar
      Refactor cop to support more cases · 65a380b2
      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`
      65a380b2
  10. 6月 27, 2023
  11. 6月 26, 2023
  12. 6月 21, 2023
    • Peter Leitzen's avatar
      RuboCop TODO formatter: Retain HAML exclusions · 2063753a
      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.
      2063753a
  13. 6月 20, 2023
  14. 6月 13, 2023
  15. 6月 06, 2023
    • Abdul Wadood's avatar
      Fix false positives for Migration/SchemaAdditionMethodsNoPost cop · 8b18112b
      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
      ```
      8b18112b
  16. 6月 02, 2023
  17. 6月 01, 2023
  18. 5月 31, 2023
  19. 5月 30, 2023
  20. 5月 24, 2023
  21. 5月 17, 2023
    • Peter Leitzen's avatar
      Add new cop rule RSpec/FactoryBot/StaticAssignment · e3880ee9
      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
      e3880ee9
  22. 5月 16, 2023
  23. 5月 15, 2023
  24. 5月 10, 2023
  25. 5月 09, 2023
  26. 4月 28, 2023
    • Peter Leitzen's avatar
      Remove unnecessary Cop/RubyInterpolationInTranslation · 964d44bb
      Peter Leitzen 创作于
      This same functionality is now covered by Gettext/StaticString.
      964d44bb
    • Peter Leitzen's avatar
      Add new RuboCop Gettext/StaticIdentifier · 89d2cbc1
      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.
      89d2cbc1
  27. 4月 27, 2023
  28. 4月 23, 2023
  29. 4月 21, 2023
  30. 4月 06, 2023
  31. 4月 04, 2023
加载中