Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data RecommendationSummary = RecommendationSummary' {}
- newRecommendationSummary :: RecommendationSummary
- recommendationSummary_recommendationId :: Lens' RecommendationSummary (Maybe Text)
- recommendationSummary_filePath :: Lens' RecommendationSummary (Maybe Text)
- recommendationSummary_severity :: Lens' RecommendationSummary (Maybe Severity)
- recommendationSummary_ruleMetadata :: Lens' RecommendationSummary (Maybe RuleMetadata)
- recommendationSummary_startLine :: Lens' RecommendationSummary (Maybe Int)
- recommendationSummary_endLine :: Lens' RecommendationSummary (Maybe Int)
- recommendationSummary_description :: Lens' RecommendationSummary (Maybe Text)
- recommendationSummary_recommendationCategory :: Lens' RecommendationSummary (Maybe RecommendationCategory)
Documentation
data RecommendationSummary Source #
Information about recommendations.
See: newRecommendationSummary
smart constructor.
RecommendationSummary' | |
|
Instances
newRecommendationSummary :: RecommendationSummary Source #
Create a value of RecommendationSummary
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:recommendationId:RecommendationSummary'
, recommendationSummary_recommendationId
- The recommendation ID that can be used to track the provided
recommendations. Later on it can be used to collect the feedback.
$sel:filePath:RecommendationSummary'
, recommendationSummary_filePath
- Name of the file on which a recommendation is provided.
$sel:severity:RecommendationSummary'
, recommendationSummary_severity
- The severity of the issue in the code that generated this
recommendation.
$sel:ruleMetadata:RecommendationSummary'
, recommendationSummary_ruleMetadata
- Metadata about a rule. Rule metadata includes an ID, a name, a list of
tags, and a short and long description. CodeGuru Reviewer uses rules to
analyze code. A rule's recommendation is included in analysis results
if code is detected that violates the rule.
$sel:startLine:RecommendationSummary'
, recommendationSummary_startLine
- Start line from where the recommendation is applicable in the source
commit or source branch.
$sel:endLine:RecommendationSummary'
, recommendationSummary_endLine
- Last line where the recommendation is applicable in the source commit or
source branch. For a single line comment the start line and end line
values are the same.
$sel:description:RecommendationSummary'
, recommendationSummary_description
- A description of the recommendation generated by CodeGuru Reviewer for
the lines of code between the start line and the end line.
$sel:recommendationCategory:RecommendationSummary'
, recommendationSummary_recommendationCategory
- The type of a recommendation.
recommendationSummary_recommendationId :: Lens' RecommendationSummary (Maybe Text) Source #
The recommendation ID that can be used to track the provided recommendations. Later on it can be used to collect the feedback.
recommendationSummary_filePath :: Lens' RecommendationSummary (Maybe Text) Source #
Name of the file on which a recommendation is provided.
recommendationSummary_severity :: Lens' RecommendationSummary (Maybe Severity) Source #
The severity of the issue in the code that generated this recommendation.
recommendationSummary_ruleMetadata :: Lens' RecommendationSummary (Maybe RuleMetadata) Source #
Metadata about a rule. Rule metadata includes an ID, a name, a list of tags, and a short and long description. CodeGuru Reviewer uses rules to analyze code. A rule's recommendation is included in analysis results if code is detected that violates the rule.
recommendationSummary_startLine :: Lens' RecommendationSummary (Maybe Int) Source #
Start line from where the recommendation is applicable in the source commit or source branch.
recommendationSummary_endLine :: Lens' RecommendationSummary (Maybe Int) Source #
Last line where the recommendation is applicable in the source commit or source branch. For a single line comment the start line and end line values are the same.
recommendationSummary_description :: Lens' RecommendationSummary (Maybe Text) Source #
A description of the recommendation generated by CodeGuru Reviewer for the lines of code between the start line and the end line.
recommendationSummary_recommendationCategory :: Lens' RecommendationSummary (Maybe RecommendationCategory) Source #
The type of a recommendation.