Welcome to mirror list, hosted at ThFree Co, Russian Federation.

summary_type.rb « codequality_reports_comparer « security « types « graphql « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: cd4a594c19344d6d0c55f7fb521730f58ad5fa00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# frozen_string_literal: true

module Types
  module Security
    module CodequalityReportsComparer
      # rubocop: disable Graphql/AuthorizeTypes (The resolver authorizes the request)
      class SummaryType < BaseObject
        graphql_name 'CodequalityReportsComparerReportSummary'

        description 'Represents a summary of the compared codequality report.'

        field :total,
          type: GraphQL::Types::Int,
          null: true,
          description: 'Total count of code quality degradations.'

        field :resolved,
          type: GraphQL::Types::Int,
          null: true,
          description: 'Count of resolved code quality degradations.'

        field :errored,
          type: GraphQL::Types::Int,
          null: true,
          description: 'Count of code quality errors.'
      end
      # rubocop: enable Graphql/AuthorizeTypes
    end
  end
end