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
5a3c5987
Commit
5a3c5987
authored
Sep 15, 2021
by
Luke Duncalfe
Committed by
James Fargher
Sep 15, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove `Graphql/Description` from `.rubocop_manual_todo.yml`
parent
07259586
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
90 additions
and
83 deletions
+90
-83
.rubocop_manual_todo.yml
.rubocop_manual_todo.yml
+0
-14
doc/api/graphql/reference/index.md
doc/api/graphql/reference/index.md
+52
-52
ee/app/graphql/types/iteration_state_enum.rb
ee/app/graphql/types/iteration_state_enum.rb
+6
-6
ee/app/graphql/types/requirements_management/requirement_state_enum.rb
...l/types/requirements_management/requirement_state_enum.rb
+2
-2
ee/app/graphql/types/requirements_management/test_report_state_enum.rb
...l/types/requirements_management/test_report_state_enum.rb
+2
-2
ee/app/graphql/types/security_scanner_type_enum.rb
ee/app/graphql/types/security_scanner_type_enum.rb
+8
-1
ee/app/graphql/types/vulnerability/issue_link_type_enum.rb
ee/app/graphql/types/vulnerability/issue_link_type_enum.rb
+8
-1
ee/app/graphql/types/vulnerability_confidence_enum.rb
ee/app/graphql/types/vulnerability_confidence_enum.rb
+1
-1
ee/app/graphql/types/vulnerability_grade_enum.rb
ee/app/graphql/types/vulnerability_grade_enum.rb
+1
-1
ee/app/graphql/types/vulnerability_report_type_enum.rb
ee/app/graphql/types/vulnerability_report_type_enum.rb
+8
-1
ee/app/graphql/types/vulnerability_severity_enum.rb
ee/app/graphql/types/vulnerability_severity_enum.rb
+1
-1
ee/app/graphql/types/vulnerability_state_enum.rb
ee/app/graphql/types/vulnerability_state_enum.rb
+1
-1
No files found.
.rubocop_manual_todo.yml
View file @
5a3c5987
...
@@ -10,20 +10,6 @@
...
@@ -10,20 +10,6 @@
# - guidelines for use found in
# - guidelines for use found in
# https://docs.gitlab.com/ee/development/contributing/style_guides.html#resolving-rubocop-exceptions.
# https://docs.gitlab.com/ee/development/contributing/style_guides.html#resolving-rubocop-exceptions.
# WIP See https://gitlab.com/gitlab-org/gitlab/-/issues/337596
Graphql/Descriptions
:
Exclude
:
-
'
ee/app/graphql/types/iteration_state_enum.rb'
-
'
ee/app/graphql/types/requirements_management/requirement_state_enum.rb'
-
'
ee/app/graphql/types/requirements_management/test_report_state_enum.rb'
-
'
ee/app/graphql/types/security_scanner_type_enum.rb'
-
'
ee/app/graphql/types/vulnerability/issue_link_type_enum.rb'
-
'
ee/app/graphql/types/vulnerability_grade_enum.rb'
-
'
ee/app/graphql/types/vulnerability_report_type_enum.rb'
-
'
ee/app/graphql/types/vulnerability_severity_enum.rb'
-
'
ee/app/graphql/types/vulnerability_state_enum.rb'
-
'
ee/app/graphql/types/vulnerability_confidence_enum.rb'
# WIP: See https://gitlab.com/gitlab-org/gitlab/-/issues/220040
# WIP: See https://gitlab.com/gitlab-org/gitlab/-/issues/220040
Rails/SaveBang
:
Rails/SaveBang
:
Exclude
:
Exclude
:
...
...
doc/api/graphql/reference/index.md
View file @
5a3c5987
...
@@ -15606,12 +15606,12 @@ State of a GitLab iteration.
...
@@ -15606,12 +15606,12 @@ State of a GitLab iteration.
| Value | Description |
| Value | Description |
| ----- | ----------- |
| ----- | ----------- |
|
<a
id=
"iterationstateall"
></a>
`all`
| |
|
<a
id=
"iterationstateall"
></a>
`all`
|
Any iteration.
|
|
<a
id=
"iterationstateclosed"
></a>
`closed`
| |
|
<a
id=
"iterationstateclosed"
></a>
`closed`
|
Closed iteration.
|
|
<a
id=
"iterationstatecurrent"
></a>
`current`
| |
|
<a
id=
"iterationstatecurrent"
></a>
`current`
|
Current iteration.
|
|
<a
id=
"iterationstateopened"
></a>
`opened`
| |
|
<a
id=
"iterationstateopened"
></a>
`opened`
|
Open iteration.
|
|
<a
id=
"iterationstatestarted"
></a>
`started`
**{warning-solid}**
|
**Deprecated**
in 14.1. Use current instead. |
|
<a
id=
"iterationstatestarted"
></a>
`started`
**{warning-solid}**
|
**Deprecated**
in 14.1. Use current instead. |
|
<a
id=
"iterationstateupcoming"
></a>
`upcoming`
| |
|
<a
id=
"iterationstateupcoming"
></a>
`upcoming`
|
Upcoming iteration.
|
### `IterationWildcardId`
### `IterationWildcardId`
...
@@ -16007,8 +16007,8 @@ State of a requirement.
...
@@ -16007,8 +16007,8 @@ State of a requirement.
| Value | Description |
| Value | Description |
| ----- | ----------- |
| ----- | ----------- |
|
<a
id=
"requirementstatearchived"
></a>
`ARCHIVED`
| |
|
<a
id=
"requirementstatearchived"
></a>
`ARCHIVED`
|
Archived requirement.
|
|
<a
id=
"requirementstateopened"
></a>
`OPENED`
| |
|
<a
id=
"requirementstateopened"
></a>
`OPENED`
|
Open requirement.
|
### `RequirementStatusFilter`
### `RequirementStatusFilter`
...
@@ -16016,9 +16016,9 @@ Status of a requirement based on last test report.
...
@@ -16016,9 +16016,9 @@ Status of a requirement based on last test report.
| Value | Description |
| Value | Description |
| ----- | ----------- |
| ----- | ----------- |
|
<a
id=
"requirementstatusfilterfailed"
></a>
`FAILED`
| |
|
<a
id=
"requirementstatusfilterfailed"
></a>
`FAILED`
|
Failed test report.
|
|
<a
id=
"requirementstatusfiltermissing"
></a>
`MISSING`
| Requirements without any test report. |
|
<a
id=
"requirementstatusfiltermissing"
></a>
`MISSING`
| Requirements without any test report. |
|
<a
id=
"requirementstatusfilterpassed"
></a>
`PASSED`
| |
|
<a
id=
"requirementstatusfilterpassed"
></a>
`PASSED`
|
Passed test report.
|
### `RunnerMembershipFilter`
### `RunnerMembershipFilter`
...
@@ -16058,14 +16058,14 @@ The type of the security scanner.
...
@@ -16058,14 +16058,14 @@ The type of the security scanner.
| Value | Description |
| Value | Description |
| ----- | ----------- |
| ----- | ----------- |
|
<a
id=
"securityscannertypeapi_fuzzing"
></a>
`API_FUZZING`
| |
|
<a
id=
"securityscannertypeapi_fuzzing"
></a>
`API_FUZZING`
|
API Fuzzing scanner.
|
|
<a
id=
"securityscannertypecluster_image_scanning"
></a>
`CLUSTER_IMAGE_SCANNING`
| |
|
<a
id=
"securityscannertypecluster_image_scanning"
></a>
`CLUSTER_IMAGE_SCANNING`
|
Cluster Image Scanning scanner.
|
|
<a
id=
"securityscannertypecontainer_scanning"
></a>
`CONTAINER_SCANNING`
| |
|
<a
id=
"securityscannertypecontainer_scanning"
></a>
`CONTAINER_SCANNING`
|
Container Scanning scanner.
|
|
<a
id=
"securityscannertypecoverage_fuzzing"
></a>
`COVERAGE_FUZZING`
| |
|
<a
id=
"securityscannertypecoverage_fuzzing"
></a>
`COVERAGE_FUZZING`
|
Coverage Fuzzing scanner.
|
|
<a
id=
"securityscannertypedast"
></a>
`DAST`
| |
|
<a
id=
"securityscannertypedast"
></a>
`DAST`
|
DAST scanner.
|
|
<a
id=
"securityscannertypedependency_scanning"
></a>
`DEPENDENCY_SCANNING`
| |
|
<a
id=
"securityscannertypedependency_scanning"
></a>
`DEPENDENCY_SCANNING`
|
Dependency Scanning scanner.
|
|
<a
id=
"securityscannertypesast"
></a>
`SAST`
| |
|
<a
id=
"securityscannertypesast"
></a>
`SAST`
|
SAST scanner.
|
|
<a
id=
"securityscannertypesecret_detection"
></a>
`SECRET_DETECTION`
| |
|
<a
id=
"securityscannertypesecret_detection"
></a>
`SECRET_DETECTION`
|
Secret Detection scanner.
|
### `SentryErrorStatus`
### `SentryErrorStatus`
...
@@ -16167,8 +16167,8 @@ State of a test report.
...
@@ -16167,8 +16167,8 @@ State of a test report.
| Value | Description |
| Value | Description |
| ----- | ----------- |
| ----- | ----------- |
|
<a
id=
"testreportstatefailed"
></a>
`FAILED`
| |
|
<a
id=
"testreportstatefailed"
></a>
`FAILED`
|
Failed test report.
|
|
<a
id=
"testreportstatepassed"
></a>
`PASSED`
| |
|
<a
id=
"testreportstatepassed"
></a>
`PASSED`
|
Passed test report.
|
### `TodoActionEnum`
### `TodoActionEnum`
...
@@ -16281,13 +16281,13 @@ Confidence that a given vulnerability is present in the codebase.
...
@@ -16281,13 +16281,13 @@ Confidence that a given vulnerability is present in the codebase.
| Value | Description |
| Value | Description |
| ----- | ----------- |
| ----- | ----------- |
|
<a
id=
"vulnerabilityconfidenceconfirmed"
></a>
`CONFIRMED`
| |
|
<a
id=
"vulnerabilityconfidenceconfirmed"
></a>
`CONFIRMED`
|
Confirmed confidence.
|
|
<a
id=
"vulnerabilityconfidenceexperimental"
></a>
`EXPERIMENTAL`
| |
|
<a
id=
"vulnerabilityconfidenceexperimental"
></a>
`EXPERIMENTAL`
|
Experimental confidence.
|
|
<a
id=
"vulnerabilityconfidencehigh"
></a>
`HIGH`
| |
|
<a
id=
"vulnerabilityconfidencehigh"
></a>
`HIGH`
|
High confidence.
|
|
<a
id=
"vulnerabilityconfidenceignore"
></a>
`IGNORE`
| |
|
<a
id=
"vulnerabilityconfidenceignore"
></a>
`IGNORE`
|
Ignore confidence.
|
|
<a
id=
"vulnerabilityconfidencelow"
></a>
`LOW`
| |
|
<a
id=
"vulnerabilityconfidencelow"
></a>
`LOW`
|
Low confidence.
|
|
<a
id=
"vulnerabilityconfidencemedium"
></a>
`MEDIUM`
| |
|
<a
id=
"vulnerabilityconfidencemedium"
></a>
`MEDIUM`
|
Medium confidence.
|
|
<a
id=
"vulnerabilityconfidenceunknown"
></a>
`UNKNOWN`
| |
|
<a
id=
"vulnerabilityconfidenceunknown"
></a>
`UNKNOWN`
|
Unknown confidence.
|
### `VulnerabilityDismissalReason`
### `VulnerabilityDismissalReason`
...
@@ -16323,11 +16323,11 @@ The grade of the vulnerable project.
...
@@ -16323,11 +16323,11 @@ The grade of the vulnerable project.
| Value | Description |
| Value | Description |
| ----- | ----------- |
| ----- | ----------- |
|
<a
id=
"vulnerabilitygradea"
></a>
`A`
| |
|
<a
id=
"vulnerabilitygradea"
></a>
`A`
|
A grade.
|
|
<a
id=
"vulnerabilitygradeb"
></a>
`B`
| |
|
<a
id=
"vulnerabilitygradeb"
></a>
`B`
|
B grade.
|
|
<a
id=
"vulnerabilitygradec"
></a>
`C`
| |
|
<a
id=
"vulnerabilitygradec"
></a>
`C`
|
C grade.
|
|
<a
id=
"vulnerabilitygraded"
></a>
`D`
| |
|
<a
id=
"vulnerabilitygraded"
></a>
`D`
|
D grade.
|
|
<a
id=
"vulnerabilitygradef"
></a>
`F`
| |
|
<a
id=
"vulnerabilitygradef"
></a>
`F`
|
F grade.
|
### `VulnerabilityIssueLinkType`
### `VulnerabilityIssueLinkType`
...
@@ -16335,8 +16335,8 @@ The type of the issue link related to a vulnerability.
...
@@ -16335,8 +16335,8 @@ The type of the issue link related to a vulnerability.
| Value | Description |
| Value | Description |
| ----- | ----------- |
| ----- | ----------- |
|
<a
id=
"vulnerabilityissuelinktypecreated"
></a>
`CREATED`
| |
|
<a
id=
"vulnerabilityissuelinktypecreated"
></a>
`CREATED`
|
Issue is created for the vulnerability.
|
|
<a
id=
"vulnerabilityissuelinktyperelated"
></a>
`RELATED`
| |
|
<a
id=
"vulnerabilityissuelinktyperelated"
></a>
`RELATED`
|
Has a related issue.
|
### `VulnerabilityReportType`
### `VulnerabilityReportType`
...
@@ -16344,15 +16344,15 @@ The type of the security scan that found the vulnerability.
...
@@ -16344,15 +16344,15 @@ The type of the security scan that found the vulnerability.
| Value | Description |
| Value | Description |
| ----- | ----------- |
| ----- | ----------- |
|
<a
id=
"vulnerabilityreporttypeapi_fuzzing"
></a>
`API_FUZZING`
| |
|
<a
id=
"vulnerabilityreporttypeapi_fuzzing"
></a>
`API_FUZZING`
|
API Fuzzing report.
|
|
<a
id=
"vulnerabilityreporttypecluster_image_scanning"
></a>
`CLUSTER_IMAGE_SCANNING`
| |
|
<a
id=
"vulnerabilityreporttypecluster_image_scanning"
></a>
`CLUSTER_IMAGE_SCANNING`
|
Cluster Image Scanning report.
|
|
<a
id=
"vulnerabilityreporttypecontainer_scanning"
></a>
`CONTAINER_SCANNING`
| |
|
<a
id=
"vulnerabilityreporttypecontainer_scanning"
></a>
`CONTAINER_SCANNING`
|
Container Scanning report.
|
|
<a
id=
"vulnerabilityreporttypecoverage_fuzzing"
></a>
`COVERAGE_FUZZING`
| |
|
<a
id=
"vulnerabilityreporttypecoverage_fuzzing"
></a>
`COVERAGE_FUZZING`
|
Coverage Fuzzing report.
|
|
<a
id=
"vulnerabilityreporttypedast"
></a>
`DAST`
| |
|
<a
id=
"vulnerabilityreporttypedast"
></a>
`DAST`
|
DAST report.
|
|
<a
id=
"vulnerabilityreporttypedependency_scanning"
></a>
`DEPENDENCY_SCANNING`
| |
|
<a
id=
"vulnerabilityreporttypedependency_scanning"
></a>
`DEPENDENCY_SCANNING`
|
Dependency Scanning report.
|
|
<a
id=
"vulnerabilityreporttypegeneric"
></a>
`GENERIC`
| |
|
<a
id=
"vulnerabilityreporttypegeneric"
></a>
`GENERIC`
|
Generic report.
|
|
<a
id=
"vulnerabilityreporttypesast"
></a>
`SAST`
| |
|
<a
id=
"vulnerabilityreporttypesast"
></a>
`SAST`
|
SAST report.
|
|
<a
id=
"vulnerabilityreporttypesecret_detection"
></a>
`SECRET_DETECTION`
| |
|
<a
id=
"vulnerabilityreporttypesecret_detection"
></a>
`SECRET_DETECTION`
|
Secret Detection report.
|
### `VulnerabilitySeverity`
### `VulnerabilitySeverity`
...
@@ -16360,12 +16360,12 @@ The severity of the vulnerability.
...
@@ -16360,12 +16360,12 @@ The severity of the vulnerability.
| Value | Description |
| Value | Description |
| ----- | ----------- |
| ----- | ----------- |
|
<a
id=
"vulnerabilityseveritycritical"
></a>
`CRITICAL`
| |
|
<a
id=
"vulnerabilityseveritycritical"
></a>
`CRITICAL`
|
Critical severity.
|
|
<a
id=
"vulnerabilityseverityhigh"
></a>
`HIGH`
| |
|
<a
id=
"vulnerabilityseverityhigh"
></a>
`HIGH`
|
High severity.
|
|
<a
id=
"vulnerabilityseverityinfo"
></a>
`INFO`
| |
|
<a
id=
"vulnerabilityseverityinfo"
></a>
`INFO`
|
Info severity.
|
|
<a
id=
"vulnerabilityseveritylow"
></a>
`LOW`
| |
|
<a
id=
"vulnerabilityseveritylow"
></a>
`LOW`
|
Low severity.
|
|
<a
id=
"vulnerabilityseveritymedium"
></a>
`MEDIUM`
| |
|
<a
id=
"vulnerabilityseveritymedium"
></a>
`MEDIUM`
|
Medium severity.
|
|
<a
id=
"vulnerabilityseverityunknown"
></a>
`UNKNOWN`
| |
|
<a
id=
"vulnerabilityseverityunknown"
></a>
`UNKNOWN`
|
Unknown severity.
|
### `VulnerabilitySort`
### `VulnerabilitySort`
...
@@ -16390,10 +16390,10 @@ The state of the vulnerability.
...
@@ -16390,10 +16390,10 @@ The state of the vulnerability.
| Value | Description |
| Value | Description |
| ----- | ----------- |
| ----- | ----------- |
|
<a
id=
"vulnerabilitystateconfirmed"
></a>
`CONFIRMED`
| |
|
<a
id=
"vulnerabilitystateconfirmed"
></a>
`CONFIRMED`
|
Confirmed vulnerability.
|
|
<a
id=
"vulnerabilitystatedetected"
></a>
`DETECTED`
| |
|
<a
id=
"vulnerabilitystatedetected"
></a>
`DETECTED`
|
Detected vulnerability.
|
|
<a
id=
"vulnerabilitystatedismissed"
></a>
`DISMISSED`
| |
|
<a
id=
"vulnerabilitystatedismissed"
></a>
`DISMISSED`
|
Dismissed vulnerability.
|
|
<a
id=
"vulnerabilitystateresolved"
></a>
`RESOLVED`
| |
|
<a
id=
"vulnerabilitystateresolved"
></a>
`RESOLVED`
|
Resolved vulnerability.
|
### `WeightWildcardId`
### `WeightWildcardId`
...
...
ee/app/graphql/types/iteration_state_enum.rb
View file @
5a3c5987
...
@@ -5,14 +5,14 @@ module Types
...
@@ -5,14 +5,14 @@ module Types
graphql_name
'IterationState'
graphql_name
'IterationState'
description
'State of a GitLab iteration'
description
'State of a GitLab iteration'
value
'upcoming'
value
'upcoming'
,
description:
'Upcoming iteration.'
value
'started'
,
deprecated:
{
value
'started'
,
de
scription:
'Started iteration.'
,
de
precated:
{
reason:
"Use current instead"
,
reason:
"Use current instead"
,
milestone:
'14.1'
milestone:
'14.1'
}
}
value
'current'
value
'current'
,
description:
'Current iteration.'
value
'opened'
value
'opened'
,
description:
'Open iteration.'
value
'closed'
value
'closed'
,
description:
'Closed iteration.'
value
'all'
value
'all'
,
description:
'Any iteration.'
end
end
end
end
ee/app/graphql/types/requirements_management/requirement_state_enum.rb
View file @
5a3c5987
...
@@ -6,8 +6,8 @@ module Types
...
@@ -6,8 +6,8 @@ module Types
graphql_name
'RequirementState'
graphql_name
'RequirementState'
description
'State of a requirement'
description
'State of a requirement'
value
'OPENED'
,
value:
'opened'
value
'OPENED'
,
value:
'opened'
,
description:
'Open requirement.'
value
'ARCHIVED'
,
value:
'archived'
value
'ARCHIVED'
,
value:
'archived'
,
description:
'Archived requirement.'
end
end
end
end
end
end
ee/app/graphql/types/requirements_management/test_report_state_enum.rb
View file @
5a3c5987
...
@@ -6,8 +6,8 @@ module Types
...
@@ -6,8 +6,8 @@ module Types
graphql_name
'TestReportState'
graphql_name
'TestReportState'
description
'State of a test report'
description
'State of a test report'
value
'PASSED'
,
value:
'passed'
value
'PASSED'
,
value:
'passed'
,
description:
'Passed test report.'
value
'FAILED'
,
value:
'failed'
value
'FAILED'
,
value:
'failed'
,
description:
'Failed test report.'
end
end
end
end
end
end
ee/app/graphql/types/security_scanner_type_enum.rb
View file @
5a3c5987
...
@@ -6,7 +6,14 @@ module Types
...
@@ -6,7 +6,14 @@ module Types
description
'The type of the security scanner'
description
'The type of the security scanner'
::
Security
::
SecurityJobsFinder
.
allowed_job_types
.
each
do
|
scanner
|
::
Security
::
SecurityJobsFinder
.
allowed_job_types
.
each
do
|
scanner
|
value
scanner
.
upcase
.
to_s
upcase_type
=
scanner
.
upcase
.
to_s
human_type
=
case
scanner
when
:dast
,
:sast
then
upcase_type
when
:api_fuzzing
then
'API Fuzzing'
else
scanner
.
to_s
.
titleize
end
value
upcase_type
,
description:
"
#{
human_type
}
scanner"
end
end
end
end
end
end
ee/app/graphql/types/vulnerability/issue_link_type_enum.rb
View file @
5a3c5987
...
@@ -7,7 +7,14 @@ module Types
...
@@ -7,7 +7,14 @@ module Types
description
'The type of the issue link related to a vulnerability'
description
'The type of the issue link related to a vulnerability'
::
Vulnerabilities
::
IssueLink
.
link_types
.
keys
.
each
do
|
link_type
|
::
Vulnerabilities
::
IssueLink
.
link_types
.
keys
.
each
do
|
link_type
|
value
link_type
.
to_s
.
upcase
,
value:
link_type
.
to_s
description
=
case
link_type
.
to_sym
when
:created
then
'Issue is created for the vulnerability'
when
:related
then
'Has a related issue'
else
link_type
.
to_s
.
titleize
end
value
link_type
.
to_s
.
upcase
,
value:
link_type
.
to_s
,
description:
description
end
end
end
end
end
end
...
...
ee/app/graphql/types/vulnerability_confidence_enum.rb
View file @
5a3c5987
...
@@ -6,7 +6,7 @@ module Types
...
@@ -6,7 +6,7 @@ module Types
description
'Confidence that a given vulnerability is present in the codebase.'
description
'Confidence that a given vulnerability is present in the codebase.'
::
Enums
::
Vulnerability
.
confidence_levels
.
keys
.
each
do
|
confidence_level
|
::
Enums
::
Vulnerability
.
confidence_levels
.
keys
.
each
do
|
confidence_level
|
value
confidence_level
.
to_s
.
upcase
,
value:
confidence_level
.
to_s
value
confidence_level
.
to_s
.
upcase
,
value:
confidence_level
.
to_s
,
description:
"
#{
confidence_level
.
to_s
.
titleize
}
confidence"
end
end
end
end
end
end
ee/app/graphql/types/vulnerability_grade_enum.rb
View file @
5a3c5987
...
@@ -6,7 +6,7 @@ module Types
...
@@ -6,7 +6,7 @@ module Types
description
'The grade of the vulnerable project'
description
'The grade of the vulnerable project'
::
Vulnerabilities
::
Statistic
.
letter_grades
.
keys
.
each
do
|
grade
|
::
Vulnerabilities
::
Statistic
.
letter_grades
.
keys
.
each
do
|
grade
|
value
grade
.
to_s
.
upcase
,
value:
grade
.
to_s
value
grade
.
to_s
.
upcase
,
value:
grade
.
to_s
,
description:
"
#{
grade
.
to_s
.
titleize
}
grade"
end
end
end
end
end
end
ee/app/graphql/types/vulnerability_report_type_enum.rb
View file @
5a3c5987
...
@@ -6,7 +6,14 @@ module Types
...
@@ -6,7 +6,14 @@ module Types
description
'The type of the security scan that found the vulnerability'
description
'The type of the security scan that found the vulnerability'
::
Enums
::
Vulnerability
.
report_types
.
keys
.
each
do
|
report_type
|
::
Enums
::
Vulnerability
.
report_types
.
keys
.
each
do
|
report_type
|
value
report_type
.
to_s
.
upcase
,
value:
report_type
.
to_s
upcase_type
=
report_type
.
to_s
.
upcase
human_type
=
case
report_type
.
to_sym
when
:dast
,
:sast
then
upcase_type
when
:api_fuzzing
then
'API Fuzzing'
else
report_type
.
to_s
.
titleize
end
value
upcase_type
,
value:
report_type
.
to_s
,
description:
"
#{
human_type
}
report"
end
end
end
end
end
end
ee/app/graphql/types/vulnerability_severity_enum.rb
View file @
5a3c5987
...
@@ -6,7 +6,7 @@ module Types
...
@@ -6,7 +6,7 @@ module Types
description
'The severity of the vulnerability'
description
'The severity of the vulnerability'
::
Enums
::
Vulnerability
.
severity_levels
.
keys
.
each
do
|
severity
|
::
Enums
::
Vulnerability
.
severity_levels
.
keys
.
each
do
|
severity
|
value
severity
.
to_s
.
upcase
,
value:
severity
.
to_s
value
severity
.
to_s
.
upcase
,
value:
severity
.
to_s
,
description:
"
#{
severity
.
to_s
.
titleize
}
severity"
end
end
end
end
end
end
ee/app/graphql/types/vulnerability_state_enum.rb
View file @
5a3c5987
...
@@ -6,7 +6,7 @@ module Types
...
@@ -6,7 +6,7 @@ module Types
description
'The state of the vulnerability'
description
'The state of the vulnerability'
::
Vulnerability
.
states
.
keys
.
each
do
|
state
|
::
Vulnerability
.
states
.
keys
.
each
do
|
state
|
value
state
.
to_s
.
upcase
,
value:
state
.
to_s
value
state
.
to_s
.
upcase
,
value:
state
.
to_s
,
description:
"
#{
state
.
to_s
.
titleize
}
vulnerability"
end
end
end
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