Skip to content

Commit 657c74d

Browse files
authored
fix GN001 (#78)
1 parent c2f98e8 commit 657c74d

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/rpdk/guard_rail/rule_library/core/schema-linter-core-rules.guard

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ rule verify_property_notation
192192

193193

194194
rule ensure_description_is_descriptive {
195-
description != /^Resource Type definition for/
195+
description == /^Resource Type definition for/
196196
<<
197197
{
198198
"result": "WARNING",

tests/integ/runner/test_integ_runner.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,13 @@
147147
path="/taggable",
148148
)
149149
},
150+
"ensure_description_is_descriptive": {
151+
GuardRuleResult(
152+
check_id="GN001",
153+
message="description should start with `Resource Type definition for ...`",
154+
path="/description",
155+
)
156+
},
150157
},
151158
),
152159
(

0 commit comments

Comments
 (0)