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.

Run a proper linter on the entire template

See original GitHub issue

I’m wasting a lot of time debugging errors in CloudFormation templates. They take minutes to process when I debug with the push -y method.

What amplify push -y should do is run an extremely accurate linter. The linter should be run over every template, or simply process the root + nested as a single file.

Integrating cfn-lint would be a good start.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:3
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
edwardfoylecommented, Aug 17, 2020

@berenddeboer If you want to run some custom logic before push, you can create a plugin that runs on the “PrePush” event. Run amplify plugin init, select util for the plugin type and select PrePush as the event to handle. This will create a boilerplate plugin for you that you can amend to your needs. You can read the docs on custom plugins here: https://docs.amplify.aws/cli/plugins/authoring

1reaction
berenddeboercommented, Aug 13, 2020

FYI, I’m actually using the AWS cfn-lint.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is linting and how can it save you time? - freeCodeCamp
In the above, we're running our linter on the entire project directory on any file that has an extension of .js . If...
Read more >
Best practices for Linting - Webapp.io
Linters are programs that look at a program's source code and find problems automatically. They are a common feature of pull request ...
Read more >
How To Lint and Format Code with ESLint in Visual Studio Code
You can use a linter to do this. Linters check your code for syntax errors and highlight errors to make sure you can...
Read more >
How to write better code with linting, formatting, and analysis ...
The most effective combination and usage of them is to: Lint as you type, Format in pre-commit hook and run SonarQube in CI/CD...
Read more >
The EASIEST Way to Lint Your Code: GitHub Super Linter ...
GitHub Super Linter is among the best linters, if not the best linter for GitHub. It allows you to lint any code!In this...
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