-
Notifications
You must be signed in to change notification settings - Fork 598
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ignore-checks doesn't work for E000* #1133
Comments
Agreed some of the E0000-E0005 checks may not be properly skipped when being configured to ignore them. We'll have to add some logic in for some of these generic rules. |
Is this still an issue? I'm trying to ignore a check on a specific resource which uses a Transform function. But it is not getting ignore when i use the following;
|
Seeing the same issue with |
Idem here. |
@kddejong can you expand a bit on why it's failing for that particular subset of rules? |
They aren't standard rules. The are errors throw when a rule has an exception, or when the template is malformed, or has a null value, or the template can't be found, etc. I don't think there is any reason they can't be ignored. I think we would need to build in a little bit better logic for those types of errors. Additional I think there may be a few exceptions we have to figure out how to handle.
|
@miparnisari let me take a swing at this one. I'll want your opinions on some of this as we go but I think I have an idea or two. |
This still does not work for me running cfn-lint version cfn-lint --ignore-checks=E0000 -t template.yaml
E0000 Duplicate resource found "TaskType" (line 200)
template.yaml:200:11
E0000 Duplicate resource found "TaskType" (line 203)
template.yaml:203:11 |
@mrpatrick can you try a space instead of |
@PatMyron yes, I tried that too - also tried cfn-lint --ignore-checks E0000 -t template.yaml
E0000 Duplicate resource found "TaskType" (line 200)
template.yaml:200:11
E0000 Duplicate resource found "TaskType" (line 203)
template.yaml:203:11
cfn-lint --ignore-bad-template --ignore-checks E0000 -t template.yaml
E0000 Duplicate resource found "TaskType" (line 200)
template.yaml:200:11
E0000 Duplicate resource found "TaskType" (line 203)
template.yaml:203:11 |
@mrpatrick comfortable sharing the template as well? |
@PatMyron Here is the relevant code snippet (redacted much of the resource which isn't relevant): AppFlow:
DependsOn: "SomeBucketPolicy"
Type: AWS::AppFlow::Flow
Properties:
Tasks:
- TaskType: Filter
SourceFields:
- Email
ConnectorOperator:
Salesforce: PROJECTION
- TaskType: Map
SourceFields:
- Email
TaskProperties:
- Key: SOURCE_DATA_TYPE
Value: string
- Key: DESTINATION_DATA_TYPE
Value: string
DestinationField: Email
ConnectorOperator:
Salesforce: NO_OP
- TaskType: Map
SourceFields:
- Some_Thing__c
TaskType: Map
TaskProperties:
- Key: SOURCE_DATA_TYPE
Value: string
- Key: DESTINATION_DATA_TYPE
Value: string
DestinationField: Some_Thing__c
ConnectorOperator:
Salesforce: NO_OP
- TaskType: Map
SourceFields:
- Role__c
TaskType: Map
TaskProperties:
- Key: SOURCE_DATA_TYPE
Value: string
- Key: DESTINATION_DATA_TYPE
Value: string
DestinationField: Role__c
ConnectorOperator:
Salesforce: NO_OP
TriggerConfig:
TriggerType: Event The issue is the the |
Hello :) It seems like this issue is still happening, right? Is there some sort of fix that maybe I missed that would allow ignoring E0000 for example? |
*cfn-lint version: 0.22.3
Ignore Checks isn't working
Template: https://gist.github.com/jeffmacdonald/cbbdd8cc3a049f89dfb4a17991ca1afa
I am getting the following error:
When I run
pipenv run cfn-lint --ignore-checks=E0000 templates/ssh-jump-host.yaml
The fun part is, I have I have errors in other templates (E2521) and I am able to ignore those just fine... it seems it's specifically E0000 that doesn't get ignored.
The text was updated successfully, but these errors were encountered: