- 26 Apr, 2021 1 commit
-
-
Huzaifa Iftikhar authored
-
- 23 Apr, 2021 1 commit
-
-
Mark Chao authored
-
- 13 Apr, 2021 1 commit
-
-
Peter Leitzen authored
-
- 24 Mar, 2021 1 commit
-
-
Peter Leitzen authored
Exclude current offenses in `.rubocop_manual_todo.yml` and link the follow-up issue.
-
- 17 Mar, 2021 1 commit
-
-
Diego Louzán authored
Ensure using `User#can_read_all_resources?` or `User#can_admin_all_resources?` instead of `User#admin?`
-
- 10 Mar, 2021 1 commit
-
-
Peter Leitzen authored
Enable new cops in RuboCop 0.9.3.
-
- 25 Feb, 2021 1 commit
-
-
Alex Kalderimis authored
We bring this cop into the main config, and set a lower threshold. Some files are excluded (migration specs, which we don't want to touch), others are fixed, and some have explicit disablements. The threshold of 28 is chosen as it accounts for the vast majority of our usage. We should aim to bring this down to 20, and eventually closer to 10. Note that at present let_it_be is not counted.
-
- 22 Feb, 2021 1 commit
-
-
Rémy Coutable authored
This avoids autoloading non-production tooling code in production. Signed-off-by:
Rémy Coutable <remy@rymai.me>
-
- 19 Feb, 2021 2 commits
-
-
Peter Leitzen authored
This allows to move permanent `Exclude`s from todo files into the main configuration file.
-
Peter Leitzen authored
-
- 20 Jan, 2021 2 commits
-
-
Albert Salim authored
These were added because of Rails eagerload. These files are now moved out of Rails eagerload path, so the conditionals are not necessary.
-
Markus Koller authored
This is redundant with Rubocop's Style/FrozenStringLiteralComment cop, which we didn't have enabled when this was introduced. To preserve the same behaviour we also: - Switch to `EnforcedStyle: always_true`, to forbid `false` values. - Replace the wildcard list with an explicit list of all violations, so we still catch all newly added files.
-
- 08 Jan, 2021 1 commit
-
-
Albert Salim authored
-
- 06 Jan, 2021 1 commit
-
-
Doug Stull authored
- add in deprecate cop helper
-
- 14 Dec, 2020 3 commits
-
-
Alex Kalderimis authored
This completes the elimination of todos for Graphql/ResolverType, which is now a fully-enabled Rubocop rule.
-
Peter Leitzen authored
Prior this change we were introducing new offense without notice.
-
Thong Kuah authored
Add documentation in-class with bad and good examples as well.
-
- 11 Dec, 2020 1 commit
-
-
Luke Duncalfe authored
Previously our GraphQL styleguide stated that description strings should not end in periods. Descriptions provided by `ruby-graphql` objects all do end in periods, so our overall API is inconsistent in how it presents its schema descriptions. This change switches our description styleguide to recommend that we add periods to the end of description strings. It also adds to the existing `GraphQL/Descriptions` cop to enforce this which can auto-correct offenses.
-
- 30 Nov, 2020 1 commit
-
-
Jacob Vosmaer authored
-
- 23 Nov, 2020 1 commit
-
-
Thong Kuah authored
We generate the data file using ruby-warnings Adds rubocop: - Only match if method name matches, not just line number - Match only file path from root so that files from other machines work Adds autocorrection - Add autocorrection by inserting ** before. - Special correction case for literal hash args Mark cop as unsafe as relies on data source Fix correction from splat type to double splat
-
- 12 Nov, 2020 1 commit
-
-
Alex Kalderimis authored
This new rubocop rule enforces that all resolvers declare their type. This is important for several reasons: - developers can read a resolver and know what it does, by understanding what it is meant to return. - we can enable better testing of resolvers, by creating fields from resolvers using `Resolver.field_options`. - Resolvers become the SSOT for field metadata, enabling us to eliminate repetition and boilerplate.
-
- 05 Nov, 2020 1 commit
-
-
Doug Stull authored
- keep up to date and add new cops.
-
- 03 Nov, 2020 1 commit
-
-
Kassio Borges authored
-
- 19 Oct, 2020 2 commits
-
-
Alishan Ladhani authored
- Run autocorrection - Add failing specs to todo
-
Peter Leitzen authored
-
- 14 Oct, 2020 2 commits
-
-
Sean McGivern authored
This makes changing the base class in future easier.
-
Mario de la Ossa authored
Let's use the more restrictive Types::GlobalIDType when possible
-
- 09 Oct, 2020 1 commit
-
-
Mario de la Ossa authored
To avoid possible security issues we need to enforce the usage of the `expected_type` parameter whenever possible when converting a GID string into an object.
-
- 07 Oct, 2020 2 commits
-
-
Alishan Ladhani authored
-
Alishan Ladhani authored
-
- 11 Sep, 2020 2 commits
-
-
Peter Leitzen authored
Avoid programmatic checks because they are slower as well.
-
Mehmet Emin INAC authored
It is discouraged to create a table along with more than one foreign key at a time so registering a cop to check this violation would eliminate the need of waiting for a feedback from db maintainer to catch the violation.
-
- 04 Sep, 2020 1 commit
-
-
David Fernandez authored
`UploadedFile.from_params` should only be used by `multipart.rb`
-
- 03 Sep, 2020 1 commit
-
-
Rajendra Kadam authored
MR fixes the cop for the files Adds changelog for change
-
- 27 Aug, 2020 1 commit
-
-
pbair authored
Add a new cop that checks that index operations in migrations like remove_index, remove_concurrent_index, and index_exists? use an explicit index name rather than relying on rails behavior to infer the index name from the index definition.
-
- 24 Aug, 2020 1 commit
-
-
Alishan Ladhani authored
-
- 21 Aug, 2020 1 commit
-
-
pbair authored
Add a new cop that detects instances where migrations create or remove a complex indexes that do not specify an explicit index name.
-
- 17 Aug, 2020 3 commits
-
-
Luke Duncalfe authored
This change also detects GraphQL/JSONType offenses in mutations and resolvers. Previously it was limited to detecting offenses only in types. See https://gitlab.com/gitlab-org/gitlab/-/merge_requests/38125#note_389671877
-
Sean Arnold authored
-
Sean Arnold authored
Move existing offences to todo
-