Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tim-evans/codeclimate-ember-template-lint
Linting for Ember templates in CodeClimate
https://github.com/tim-evans/codeclimate-ember-template-lint
Last synced: 10 days ago
JSON representation
Linting for Ember templates in CodeClimate
- Host: GitHub
- URL: https://github.com/tim-evans/codeclimate-ember-template-lint
- Owner: tim-evans
- Created: 2016-09-12T15:14:38.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-22T21:12:59.000Z (over 6 years ago)
- Last Synced: 2024-10-18T08:28:43.027Z (19 days ago)
- Language: JavaScript
- Homepage:
- Size: 51.8 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Code Climate ember-template-lint Engine
`codeclimate-ember-template-lint` is a Code Climate engine that wraps [ember-template-lint](https://github.com/rwjblue/ember-template-lint). You can run it on your command line using the Code Climate CLI, or on our hosted analysis platform.
### Installation & Usage
1. If you haven't already, [install the Code Climate CLI](https://github.com/codeclimate/codeclimate).
2. Run `codeclimate engines:enable ember-template-lint`. This command both installs the engine and enables it in your `.codeclimate.yml` file.
3. You're ready to analyze! Browse into your project's folder and run `codeclimate analyze`.### Need help?
For help with ember-template-lint, [check out their documentation](https://github.com/rwjblue/ember-template-lint).
### Developing
To generate the engine, you'll need to build it as a docker image:
```bash
docker build . -t codeclimate/codeclimate-ember-template-lint
```You can then run this in an Ember app to test your changes:
```bash
codeclimate analyze --dev
```To do this successfully, you may have to change the `channel` so it pulls the correct docker image.
You can start debugging your outbut by adding `debug: true` to your engine config. Your `.codeclimate.yml` should look like:
```yaml
ember-template-lint:
enabled: true
config:
debug: true
```Then, you can run the analyzer in debug mode via the following command:
```bash
CODECLIMATE_DEBUG=1 codeclimate analyze --dev
```