Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
8d7a0608
Commit
8d7a0608
authored
Feb 22, 2022
by
Kev
Committed by
Rémy Coutable
Feb 22, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix GraphQL/OrderedArguments offense (Part 6/6)
Changelog: other
parent
d94c5986
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
11 deletions
+8
-11
.rubocop_todo/graphql/ordered_arguments.yml
.rubocop_todo/graphql/ordered_arguments.yml
+0
-3
app/graphql/types/notes/diff_image_position_input_type.rb
app/graphql/types/notes/diff_image_position_input_type.rb
+4
-4
app/graphql/types/notes/diff_position_base_input_type.rb
app/graphql/types/notes/diff_position_base_input_type.rb
+2
-2
app/graphql/types/notes/diff_position_input_type.rb
app/graphql/types/notes/diff_position_input_type.rb
+2
-2
No files found.
.rubocop_todo/graphql/ordered_arguments.yml
View file @
8d7a0608
...
...
@@ -4,6 +4,3 @@ GraphQL/OrderedArguments:
-
app/graphql/resolvers/base_issues_resolver.rb
-
app/graphql/resolvers/design_management/designs_resolver.rb
-
app/graphql/resolvers/design_management/version/design_at_version_resolver.rb
-
app/graphql/types/notes/diff_image_position_input_type.rb
-
app/graphql/types/notes/diff_position_base_input_type.rb
-
app/graphql/types/notes/diff_position_input_type.rb
app/graphql/types/notes/diff_image_position_input_type.rb
View file @
8d7a0608
...
...
@@ -5,14 +5,14 @@ module Types
class
DiffImagePositionInputType
<
DiffPositionBaseInputType
graphql_name
'DiffImagePositionInput'
argument
:height
,
GraphQL
::
Types
::
Int
,
required:
true
,
description:
copy_field_description
(
Types
::
Notes
::
DiffPositionType
,
:height
)
argument
:width
,
GraphQL
::
Types
::
Int
,
required:
true
,
description:
copy_field_description
(
Types
::
Notes
::
DiffPositionType
,
:width
)
argument
:x
,
GraphQL
::
Types
::
Int
,
required:
true
,
description:
copy_field_description
(
Types
::
Notes
::
DiffPositionType
,
:x
)
argument
:y
,
GraphQL
::
Types
::
Int
,
required:
true
,
description:
copy_field_description
(
Types
::
Notes
::
DiffPositionType
,
:y
)
argument
:width
,
GraphQL
::
Types
::
Int
,
required:
true
,
description:
copy_field_description
(
Types
::
Notes
::
DiffPositionType
,
:width
)
argument
:height
,
GraphQL
::
Types
::
Int
,
required:
true
,
description:
copy_field_description
(
Types
::
Notes
::
DiffPositionType
,
:height
)
end
end
end
app/graphql/types/notes/diff_position_base_input_type.rb
View file @
8d7a0608
...
...
@@ -3,10 +3,10 @@
module
Types
module
Notes
class
DiffPositionBaseInputType
<
BaseInputObject
argument
:base_sha
,
GraphQL
::
Types
::
String
,
required:
false
,
description:
copy_field_description
(
Types
::
DiffRefsType
,
:base_sha
)
argument
:head_sha
,
GraphQL
::
Types
::
String
,
required:
true
,
description:
copy_field_description
(
Types
::
DiffRefsType
,
:head_sha
)
argument
:base_sha
,
GraphQL
::
Types
::
String
,
required:
false
,
description:
copy_field_description
(
Types
::
DiffRefsType
,
:base_sha
)
argument
:start_sha
,
GraphQL
::
Types
::
String
,
required:
true
,
description:
copy_field_description
(
Types
::
DiffRefsType
,
:start_sha
)
...
...
app/graphql/types/notes/diff_position_input_type.rb
View file @
8d7a0608
...
...
@@ -5,10 +5,10 @@ module Types
class
DiffPositionInputType
<
DiffPositionBaseInputType
graphql_name
'DiffPositionInput'
argument
:old_line
,
GraphQL
::
Types
::
Int
,
required:
false
,
description:
copy_field_description
(
Types
::
Notes
::
DiffPositionType
,
:old_line
)
argument
:new_line
,
GraphQL
::
Types
::
Int
,
required:
false
,
description:
copy_field_description
(
Types
::
Notes
::
DiffPositionType
,
:new_line
)
argument
:old_line
,
GraphQL
::
Types
::
Int
,
required:
false
,
description:
copy_field_description
(
Types
::
Notes
::
DiffPositionType
,
:old_line
)
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment