Skip to content
代码片段 群组 项目
未验证 提交 64a482ad 编辑于 作者: Archish Thakkar's avatar Archish Thakkar 提交者: GitLab
浏览文件

Lint issue fix in Layout/LineEndStringConcatenationIndentation 2

上级 9991ecdb
No related branches found
No related tags found
无相关合并请求
......@@ -2,12 +2,6 @@
# Cop supports --autocorrect.
Layout/LineEndStringConcatenationIndentation:
Exclude:
- 'app/graphql/mutations/award_emojis/toggle.rb'
- 'app/graphql/mutations/boards/issues/issue_move_list.rb'
- 'app/graphql/mutations/ci/job_token_scope/add_project.rb'
- 'app/graphql/mutations/concerns/mutations/validate_time_estimate.rb'
- 'app/graphql/mutations/container_registry/protection/rule/create.rb'
- 'app/graphql/mutations/container_registry/protection/rule/delete.rb'
- 'app/graphql/types/packages/package_base_type.rb'
- 'app/graphql/types/packages/protection/rule_type.rb'
- 'app/graphql/types/permission_types/ci/pipeline_schedules.rb'
......
......@@ -8,7 +8,7 @@ class Toggle < Base
field :toggled_on, GraphQL::Types::Boolean,
null: false,
description: 'Indicates the status of the emoji. ' \
'True if the toggle awarded the emoji, and false if the toggle removed the emoji.'
'True if the toggle awarded the emoji, and false if the toggle removed the emoji.'
def resolve(args)
awardable = authorized_find!(id: args[:awardable_id])
......
......@@ -41,13 +41,13 @@ class IssueMoveList < Mutations::Issues::Base
argument :position_in_list, GraphQL::Types::Int,
required: false,
description: "Position of issue within the board list. Positions start at 0. "\
"Use #{::Boards::Issues::MoveService::LIST_END_POSITION} to move to the end of the list."
"Use #{::Boards::Issues::MoveService::LIST_END_POSITION} to move to the end of the list."
def ready?(**args)
if move_arguments(args).blank?
raise Gitlab::Graphql::Errors::ArgumentError,
'At least one of the arguments ' \
'fromListId, toListId, positionInList, moveAfterId, or moveBeforeId is required'
'fromListId, toListId, positionInList, moveAfterId, or moveBeforeId is required'
end
if move_list_arguments(args).one?
......
......@@ -38,7 +38,7 @@ def resolve(project_path:, target_project_path:, direction: nil)
if direction == :outbound
raise Gitlab::Graphql::Errors::ArgumentError, 'direction: OUTBOUND scope entries can only be removed. ' \
'Only INBOUND scope can be expanded.'
'Only INBOUND scope can be expanded.'
end
direction ||= :inbound
......
......@@ -15,7 +15,7 @@ def validate_time_estimate(time_estimate)
elsif parsed_time_estimate < 0
raise Gitlab::Graphql::Errors::ArgumentError,
'timeEstimate must be greater than or equal to zero. ' \
'Remember that every new timeEstimate overwrites the previous value.'
'Remember that every new timeEstimate overwrites the previous value.'
end
end
end
......
......@@ -7,7 +7,7 @@ module Rule
class Create < ::Mutations::BaseMutation
graphql_name 'CreateContainerRegistryProtectionRule'
description 'Creates a protection rule to restrict access to a project\'s container registry. ' \
'Available only when feature flag `container_registry_protected_containers` is enabled.'
'Available only when feature flag `container_registry_protected_containers` is enabled.'
include FindsProject
......
......@@ -7,7 +7,7 @@ module Rule
class Delete < ::Mutations::BaseMutation
graphql_name 'DeleteContainerRegistryProtectionRule'
description 'Deletes a container registry protection rule. ' \
'Available only when feature flag `container_registry_protected_containers` is enabled.'
'Available only when feature flag `container_registry_protected_containers` is enabled.'
authorize :admin_container_image
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册