Run a proper linter on the entire template
See original GitHub issueI’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:
- Created 3 years ago
- Reactions:3
- Comments:9 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@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
, selectutil
for the plugin type and selectPrePush
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/authoringFYI, I’m actually using the AWS cfn-lint.