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 RuleMetadata = RuleMetadata' {}
- newRuleMetadata :: RuleMetadata
- ruleMetadata_longDescription :: Lens' RuleMetadata (Maybe Text)
- ruleMetadata_ruleTags :: Lens' RuleMetadata (Maybe (NonEmpty Text))
- ruleMetadata_ruleId :: Lens' RuleMetadata (Maybe Text)
- ruleMetadata_ruleName :: Lens' RuleMetadata (Maybe Text)
- ruleMetadata_shortDescription :: Lens' RuleMetadata (Maybe Text)
Documentation
data 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.
See: newRuleMetadata
smart constructor.
Instances
newRuleMetadata :: RuleMetadata Source #
Create a value of RuleMetadata
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:longDescription:RuleMetadata'
, ruleMetadata_longDescription
- A long description of the rule.
$sel:ruleTags:RuleMetadata'
, ruleMetadata_ruleTags
- Tags that are associated with the rule.
$sel:ruleId:RuleMetadata'
, ruleMetadata_ruleId
- The ID of the rule.
$sel:ruleName:RuleMetadata'
, ruleMetadata_ruleName
- The name of the rule.
$sel:shortDescription:RuleMetadata'
, ruleMetadata_shortDescription
- A short description of the rule.
ruleMetadata_longDescription :: Lens' RuleMetadata (Maybe Text) Source #
A long description of the rule.
ruleMetadata_ruleTags :: Lens' RuleMetadata (Maybe (NonEmpty Text)) Source #
Tags that are associated with the rule.
ruleMetadata_ruleId :: Lens' RuleMetadata (Maybe Text) Source #
The ID of the rule.
ruleMetadata_ruleName :: Lens' RuleMetadata (Maybe Text) Source #
The name of the rule.
ruleMetadata_shortDescription :: Lens' RuleMetadata (Maybe Text) Source #
A short description of the rule.