diff --git a/.rubocop_todo/layout/line_end_string_concatenation_indentation.yml b/.rubocop_todo/layout/line_end_string_concatenation_indentation.yml index 02e24315ed57307443aaab50e32da629d69ef043..83ef157e8c0e13864e0bb18ddeef9d8cf2f76837 100644 --- a/.rubocop_todo/layout/line_end_string_concatenation_indentation.yml +++ b/.rubocop_todo/layout/line_end_string_concatenation_indentation.yml @@ -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' diff --git a/app/graphql/mutations/award_emojis/toggle.rb b/app/graphql/mutations/award_emojis/toggle.rb index a419a8df64eda76e31287367b298173653d8b384..a020e9ec15be5e83da5e5815b71394ccd4fe8731 100644 --- a/app/graphql/mutations/award_emojis/toggle.rb +++ b/app/graphql/mutations/award_emojis/toggle.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]) diff --git a/app/graphql/mutations/boards/issues/issue_move_list.rb b/app/graphql/mutations/boards/issues/issue_move_list.rb index bb2a7604226ac1957efccf72db091155dc2c7440..bcaeed314b1c85855073a8e7cae592779612a87a 100644 --- a/app/graphql/mutations/boards/issues/issue_move_list.rb +++ b/app/graphql/mutations/boards/issues/issue_move_list.rb @@ -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? diff --git a/app/graphql/mutations/ci/job_token_scope/add_project.rb b/app/graphql/mutations/ci/job_token_scope/add_project.rb index cc27ca63931d2677b3c0e2ebd1b6dd0bd5774f20..aa43781b3ebb13376f1e3e4dd75aa6ad7d5b13ae 100644 --- a/app/graphql/mutations/ci/job_token_scope/add_project.rb +++ b/app/graphql/mutations/ci/job_token_scope/add_project.rb @@ -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 diff --git a/app/graphql/mutations/concerns/mutations/validate_time_estimate.rb b/app/graphql/mutations/concerns/mutations/validate_time_estimate.rb index 82a56fd04f326f359106984a0b9dd1069ef2eea7..9f71229dd8c6323886eb14f579e478fa442ff5f7 100644 --- a/app/graphql/mutations/concerns/mutations/validate_time_estimate.rb +++ b/app/graphql/mutations/concerns/mutations/validate_time_estimate.rb @@ -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 diff --git a/app/graphql/mutations/container_registry/protection/rule/create.rb b/app/graphql/mutations/container_registry/protection/rule/create.rb index e68a8c1f2700698f791569284e0f9b12fdbaed3b..ec1c4e49a0dc604bb298b7f07e13ee909ff1a1aa 100644 --- a/app/graphql/mutations/container_registry/protection/rule/create.rb +++ b/app/graphql/mutations/container_registry/protection/rule/create.rb @@ -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 diff --git a/app/graphql/mutations/container_registry/protection/rule/delete.rb b/app/graphql/mutations/container_registry/protection/rule/delete.rb index d48316896287c81735ed5b6d9e3b2365ac1dcc28..6822ef3b50236d0dd00a306f249e3af42f70eb96 100644 --- a/app/graphql/mutations/container_registry/protection/rule/delete.rb +++ b/app/graphql/mutations/container_registry/protection/rule/delete.rb @@ -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