- Mar 03, 2025
-
-
Rémy Coutable authored
Pin all runtime dependencies See merge request !255 Merged-by:
Rémy Coutable <remy@rymai.me> Approved-by:
Rémy Coutable <remy@rymai.me> Reviewed-by:
Rémy Coutable <remy@rymai.me> Co-authored-by:
Peter Leitzen <pleitzen@gitlab.com>
-
- Feb 28, 2025
-
-
Brian Williams authored
Add missing good and bad examples to cops See merge request !256 Merged-by:
Brian Williams <bwilliams@gitlab.com> Approved-by:
Keeyan Nejad <knejad@gitlab.com> Approved-by:
Brian Williams <bwilliams@gitlab.com> Reviewed-by:
Keeyan Nejad <knejad@gitlab.com> Co-authored-by:
Kiran Kumawat <kiran.kumawat1991@gmail.com>
-
- Feb 27, 2025
-
-
Kiran Kumawat authored
-
- Feb 17, 2025
-
-
Peter Leitzen authored
This indicates that `gitlab-styles` is the single source of truth for RuboCop dependency configurations in used projects.
-
- Feb 10, 2025
-
-
Peter Leitzen authored
Release version 13.1.0 See merge request !253 Merged-by:
Peter Leitzen <pleitzen@gitlab.com> Approved-by:
Peter Leitzen <pleitzen@gitlab.com> Co-authored-by:
Lawrence Chou <choznerol@protonmail.com>
-
- Feb 05, 2025
-
-
Chou Yu Ta authored
-
- Feb 04, 2025
-
-
Peter Leitzen authored
Bump Rubocop to 1.71.1 and address 28 new `InternalAffairs/*` violations Closes #84 See merge request !254 Merged-by:
Peter Leitzen <pleitzen@gitlab.com> Approved-by:
Peter Leitzen <pleitzen@gitlab.com> Reviewed-by:
Chou Yu Ta <lawrencechou1024@gmail.com> Co-authored-by:
Chou Yu Ta <lawrencechou1024@gmail.com> Co-authored-by:
Lawrence Chou <choznerol@protonmail.com>
-
Changelog: changed
-
- Jan 31, 2025
-
-
Peter Leitzen authored
Disallow Endless Methods Closes #72 See merge request !252 Merged-by:
Peter Leitzen <pleitzen@gitlab.com> Approved-by:
Peter Leitzen <pleitzen@gitlab.com> Co-authored-by:
Lawrence Chou <choznerol@protonmail.com>
-
- Jan 29, 2025
-
-
Chou Yu Ta authored
Close #72 Changelog: added
-
- Jan 27, 2025
-
-
Peter Leitzen authored
Add RSpec/RailsControllerTesting rule Closes #32 See merge request !250 Merged-by:
Peter Leitzen <pleitzen@gitlab.com> Approved-by:
Peter Leitzen <pleitzen@gitlab.com> Reviewed-by:
Peter Leitzen <pleitzen@gitlab.com> Co-authored-by:
Manuel Schonlaub <manuel.schonlaub@prodigygame.com> Co-authored-by:
Manuel Schönlaub <manuel.schoenlaub@gmail.com>
-
Add cop to ban deprecated method usage in RSpec controller tests Add a cop that triggers when using assigns or render_template from within controller and request tests, instead of using the request body for assertions. Changelog: added
-
- Nov 27, 2024
-
-
Doug Stull authored
Release 13.0.2 See merge request !249 Merged-by:
Doug Stull <dstull@gitlab.com> Approved-by:
Doug Stull <dstull@gitlab.com> Co-authored-by:
Peter Leitzen <pleitzen@gitlab.com>
-
Peter Leitzen authored
-
- Nov 14, 2024
-
-
Brian Williams authored
Add cop to prevent usage of max-width CSS utils See merge request !239 Merged-by:
Brian Williams <bwilliams@gitlab.com> Approved-by:
Sashi Kumar Kumaresan <skumar@gitlab.com> Approved-by:
Brian Williams <bwilliams@gitlab.com> Co-authored-by:
Peter Hegman <phegman@gitlab.com>
-
Peter Leitzen authored
Resolve "Bump rubocop to 1.68.0" Closes #81 See merge request !247 Merged-by:
Peter Leitzen <pleitzen@gitlab.com> Approved-by:
David Dieulivol <ddieulivol@gitlab.com> Approved-by:
Aboobacker MK <akarakath@gitlab.com> Approved-by:
Peter Leitzen <pleitzen@gitlab.com> Co-authored-by:
Daniel Prause <dprause@gitlab.com>
-
Changelog: changed
-
- Nov 13, 2024
-
-
Peter Hegman authored
We want to try and only use min-width CSS utils to keep our codebase consistent and our bundle size small
-
- Oct 29, 2024
-
-
David Dieulivol authored
Style/HashSyntax: Set EnforcedShorthandSyntax to `either_consistent` See merge request !246 Merged-by:
David Dieulivol <ddieulivol@gitlab.com> Approved-by:
Keeyan Nejad <knejad@gitlab.com> Approved-by:
David Dieulivol <ddieulivol@gitlab.com> Reviewed-by:
Keeyan Nejad <knejad@gitlab.com> Co-authored-by:
Peter Leitzen <pleitzen@gitlab.com>
-
Peter Leitzen authored
Examples: # good - `foo` and `bar` values can be omitted, but they are consistent, so it's accepted {foo: foo, bar: bar} # bad - `bar` value can be omitted {foo:, bar: bar} # bad - mixed syntaxes {foo:, bar: baz} # good {foo:, bar:} # good - can't omit `baz` {foo: foo, bar: baz} See also gitlab-org/gitlab!161622 Changelog: changed
-
- Oct 21, 2024
-
-
Doug Stull authored
Clarify release process for external contributors See merge request !244 Merged-by:
Doug Stull <dstull@gitlab.com> Approved-by:
Doug Stull <dstull@gitlab.com> Reviewed-by:
Peter Leitzen <pleitzen@gitlab.com> Co-authored-by:
Peter Leitzen <pleitzen@gitlab.com> Co-authored-by:
Martin Schurz <Martin.Schurz@telekom.de>
-
-
- Oct 16, 2024
-
-
Rémy Coutable authored
Release version 13.0.1 See merge request !243 Merged-by:
Rémy Coutable <remy@rymai.me> Approved-by:
Rémy Coutable <remy@rymai.me> Reviewed-by:
Rémy Coutable <remy@rymai.me> Co-authored-by:
Peter Leitzen <pleitzen@gitlab.com>
-
Peter Leitzen authored
-
- Oct 15, 2024
-
-
Rémy Coutable authored
Upgrade RuboCop to 1.67.0 See merge request !242 Merged-by:
Rémy Coutable <remy@rymai.me> Approved-by:
Rémy Coutable <remy@rymai.me> Reviewed-by:
Rémy Coutable <remy@rymai.me> Reviewed-by:
Peter Leitzen <pleitzen@gitlab.com> Co-authored-by:
Peter Leitzen <pleitzen@gitlab.com>
-
Peter Leitzen authored
lib/rubocop/cop/gitlab_security/json_serialization.rb:33: warning: Inheriting from `RuboCop::Cop::Cop` is deprecated. Use `RuboCop::Cop::Base` instead. For more information, see https://docs.rubocop.org/rubocop/v1_upgrade_notes.html.
-
Peter Leitzen authored
With that we can also remove the monkey patch for `InternalAffairs/CopDescriptionWithExample` as it's no longer needed and fails now. Changelog: other
-
- Oct 14, 2024
-
-
Peter Leitzen authored
Change RSpec/ExampleWithoutDescription style to single_line_only See merge request !241 Merged-by:
Peter Leitzen <pleitzen@gitlab.com> Approved-by:
Thong Kuah <tkuah@gitlab.com> Approved-by:
drew stachon <730684-drew@users.noreply.gitlab.com> Approved-by:
Peter Leitzen <pleitzen@gitlab.com> Co-authored-by:
Abdul Wadood <awadood@gitlab.com>
-
>>> For empty test description blocks, use `specify` rather than `it do` if the test is self-explanatory. >>> The [RSpec/ExampleWithoutDescription cop](https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecexamplewithoutdescription) is enabled by default. Here we are changing the EnforcedStyle of the cop to [single_line_only](https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#enforcedstyle-single_line_only) to match the above quoted [testing guidelines](https://docs.gitlab.com/ee/development/testing_guide/best_practices.html#general-guidelines). ## Examples ```ruby # bad it do # good specify do ``` ## Impact on gitlab-org/gitlab ``` bundle exec rubocop $f --only RSpec/ExampleWithoutDescription 39218 files inspected, 1181 offenses detected ``` Changelog: added
-
- Oct 08, 2024
-
-
Peter Leitzen authored
Release version 13.0.0 See merge request !237 Merged-by:
Peter Leitzen <pleitzen@gitlab.com> Approved-by:
Peter Leitzen <pleitzen@gitlab.com> Reviewed-by:
Peter Leitzen <pleitzen@gitlab.com> Co-authored-by:
Martin Schurz <Martin.Schurz@telekom.de>
-
-
- Sep 15, 2024
-
-
Thong Kuah authored
Don't override `relevant_file?` See merge request !238 Merged-by:
Thong Kuah <tkuah@gitlab.com> Approved-by:
Thong Kuah <tkuah@gitlab.com> Reviewed-by:
Keeyan Nejad <knejad@gitlab.com> Co-authored-by:
Peter Leitzen <pleitzen@gitlab.com>
-
- Sep 10, 2024
-
-
Peter Leitzen authored
Also, add missing rubocop-factory_bot.yml and rubocop-code_reuse.yml to rubocop-default.yml.
-
- Sep 09, 2024
-
-
Peter Leitzen authored
-
Peter Leitzen authored
Use `Include` directive instead.
-
- Sep 07, 2024
-
-
Peter Leitzen authored
Upgrade RuboCop (to 1.66.0) and rubocop extensions See merge request !232 Merged-by:
Peter Leitzen <pleitzen@gitlab.com> Approved-by:
Peter Leitzen <pleitzen@gitlab.com> Reviewed-by:
Martin Schurz <2090677-schurzi@users.noreply.gitlab.com> Co-authored-by:
Martin Schurz <Martin.Schurz@telekom.de>
-
* RuboCop 1.65.1 * RuboCop FactoryBot 2.26.1 * RuboCop GraphQL 1.5.4 * RuboCop Performance 1.21.1 * RuboCop Rails 2.26.0 * RuboCop RSpec 2.31.0 Changelog: changed
-
Peter Leitzen authored
Add an internal affairs cop to require examples See merge request !236 Merged-by:
Peter Leitzen <pleitzen@gitlab.com> Approved-by:
Peter Leitzen <pleitzen@gitlab.com> Reviewed-by:
Peter Leitzen <pleitzen@gitlab.com> Co-authored-by:
Keeyan Nejad <knejad@gitlab.com>
-
This cop ensures we include good and bad examples with any cop we define Changelog: added
-
- Sep 04, 2024
-
-
Brian Williams authored
Add a cop to prevent interpolated Tailwind utils See merge request !234 Merged-by:
Brian Williams <bwilliams@gitlab.com> Approved-by:
Brian Williams <bwilliams@gitlab.com> Co-authored-by:
Paul Gascou-Vaillancourt <paul.gascvail@gmail.com>
-