Skip to content
代码片段 群组 项目
该项目从 https://gitlab.com/gitlab-org/gitlab.git 镜像。 拉取镜像更新于
  1. 3月 22, 2024
  2. 3月 21, 2024
  3. 3月 14, 2024
    • Peter Leitzen's avatar
      Add new cop Gitlab/Rails/SafeFormat · 99e2f6fe
      Peter Leitzen 创作于
      Enforce `safe_format` for externalized strings with interpolations and
      `.html_safe`.
      
        # bad
        _('string %{open}foo%{close}').html_safe % { open: '<b>'.html_safe, close: '</b>'.html_safe }
        format(_('string %{open}foo%{close}').html_safe, open: '<b>'.html_safe, close: '</b>'.html_safe)
      
        # good
        safe_format(_('string %{open}foo%{close}'), tag_pair(tag.b, :open, :close)
        # also good no `html_safe`
        format(_('string %{var} number'), var: var)
      99e2f6fe
  4. 12月 13, 2023
  5. 11月 03, 2023
  6. 10月 03, 2023
  7. 7月 04, 2023
  8. 6月 21, 2023
    • Peter Leitzen's avatar
      Gitlab/FeatureAvailableUsage: Enable cop in haml-lint again · 8e8d6bc7
      Peter Leitzen 创作于
      Add files to RuboCop TODOs.
      
      Done via:
      
      1. Enable cop rule in haml-lint.yml
      2. bundle exec haml-lint --parallel > todos
      3. rg -r "    - '\$1.rb'" -o "^([^:]+)" todos | sort | uniq \
           >> .rubocop_todo/gitlab/feature_available_usage.yml
      4. bundle exec rake rubocop:todo:generate[Gitlab/FeatureAvailableUsage]
      8e8d6bc7
  9. 2月 15, 2023
  10. 2月 02, 2023
  11. 1月 21, 2023
  12. 10月 20, 2022
  13. 10月 12, 2022
  14. 8月 10, 2022
  15. 6月 13, 2022
  16. 5月 04, 2022
  17. 4月 04, 2022
  18. 11月 01, 2021
  19. 4月 19, 2021
  20. 4月 15, 2021
  21. 4月 12, 2021
  22. 4月 10, 2021
  23. 4月 08, 2021
  24. 4月 07, 2021
  25. 3月 29, 2021
  26. 3月 17, 2021
  27. 7月 17, 2020
  28. 7月 15, 2020
  29. 5月 29, 2020
  30. 7月 18, 2019
  31. 5月 22, 2019
    • Stan Hu's avatar
      Move files from lib/haml_lint to haml_lint · 27381e22
      Stan Hu 创作于
      Files in lib will be eager loaded and hence will require haml_lint to be
      loaded. Since this is only a development dependency, we can't assume
      this gem will be available in production, so it should never be loaded
      in production.
      27381e22
加载中