You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is this feature request related to a new rule or cfn-lint capabilities?
New capability
Describe the feature you'd like to request
I am writing a custom rule in python.
My requirement includes to lint the warning on value part of key-value pair. Let's take the following snippet to understand.
My usecase includes getting the exact position of "value" in a key-value pair. Considering the above case, let's assume that I have written some custom rule which will check the bucket name should only start with letter - "a". Now in cfn-lint custom ruleset, when I give the path value in return to match function Link, I give value as path=[S3Bucket,Properties,Name] which when run, will give the output warning as to change on (start: Line 7, col: 17 to end: Line 7, col 23), but my usecase is a little different.
I want to get the warning as start: Line 7, col 24 to end: Line 7, col 40. Which means in Key-Value as "Name":"temp-s3-bucket", i want the recommednation to be shown on "temp-s3-bucket" instead of "Name".
Describe the solution you'd like
Add an optional argument, lintOnKey defaults to true, if false then this lints the value for this key
The text was updated successfully, but these errors were encountered:
Always more advanced possibilities for power users, but I tend to err on the side of simple interfaces / abstractions. Findings are generally understood by users regardless if the key or value is highlighted
Is this feature request related to a new rule or cfn-lint capabilities?
New capability
Describe the feature you'd like to request
I am writing a custom rule in python.
My requirement includes to lint the warning on value part of key-value pair. Let's take the following snippet to understand.
My usecase includes getting the exact position of "value" in a key-value pair. Considering the above case, let's assume that I have written some custom rule which will check the bucket name should only start with letter - "a". Now in cfn-lint custom ruleset, when I give the path value in return to match function Link, I give value as path=[S3Bucket,Properties,Name] which when run, will give the output warning as to change on (start: Line 7, col: 17 to end: Line 7, col 23), but my usecase is a little different.
I want to get the warning as start: Line 7, col 24 to end: Line 7, col 40. Which means in Key-Value as "Name":"temp-s3-bucket", i want the recommednation to be shown on "temp-s3-bucket" instead of "Name".
Describe the solution you'd like
Add an optional argument,
lintOnKey
defaults to true, if false then this lints the value for this keyThe text was updated successfully, but these errors were encountered: