question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Per Template Ignore Checks

See original GitHub issue

cfn-lint version: (cfn-lint --version) cfn-lint 0.22.3 Description of issue. On a given template it would be nice to either inline, or per file ignore certain checks.

Please provide as much information as possible:

  • Feature request: Sometimes particular files we’d like to ignore certain linting violations, but not cross cut. Allow for per template ignores.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
kddejongcommented, Oct 24, 2019

The Metadata configuration in a file will only ignore that rule for that template.

file test1.yaml

AWSTemplateFormatVersion: "2010-09-09"
Metadata:
  cfn-lint:
    config:
      ignore_checks:
        - E3001
Resources:
  ExampleResource:
    Type: AWS::Bad::Resource
    Properties: {}

file test2.yaml

AWSTemplateFormatVersion: "2010-09-09"
Resources:
  ExampleResource:
    Type: AWS::Bad::Resource
    Properties: {}

if you run

cfn-lint test1.yaml test2.yaml
E3001 Invalid or unsupported Type AWS::Bad::Resource for resource ExampleResource in us-east-1
test2.yaml:4:5

0reactions
kddejongcommented, Oct 24, 2019

You’re welcome

Read more comments on GitHub >

github_iconTop Results From Across the Web

Per Template Ignore Checks · Issue #1157 - GitHub
Sometimes particular files we'd like to ignore certain linting violations, but not cross cut. Allow for per template ignores.
Read more >
How to disable all checks on the angular component template?
All I want is to just disable all template checks. ... Therefore, I have more than one tsconfig now, i.e. per library.
Read more >
Suppressing and Skipping Policies - checkov
There are two main ways to skip or suppress checks: Suppress individual checks on a per-resource basis; Explicitly run or skip certain checks...
Read more >
Angular 9's Best Hidden Feature: Strict Template Checking
The new feature is known as strict template checking. Angular has been checking expressions and bindings within the templates of our ...
Read more >
Template type checking - Angular
Just as TypeScript catches type errors in your code, Angular checks the expressions and bindings within the templates of your application and can...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found