Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ember-cli-detergent

Package Overview
Dependencies
Maintainers
3
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-cli-detergent

detect and block blacklisted javascript methods from your code.

  • 0.0.8
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

ember-cli-detergent

Ember linting tools such as ember-cli-eslint are a great way of enforcing coding standards and preventing bad practices from entering your Ember applications. The rules that they enforce are all or nothing, if your app already contains these bad practices you are forced to either remove all occurrences before enabling the rule, or simply not use the rule.

ember-cli-detergent allows you to specify rules and an allowed count of rule failures, eg:

methods: {
  'htmlSafe': {
    allowedCount: 5,
    message: 'Please avoid using Em.String.htmlSafe. Please see: https://foo.bar/'
  }
}

This configuration specifies that your app has 5 uses of htmlSafe. An incremental build time error is displayed if a sixth occurrence is added:

Please avoid using Em.String.htmlSafe. Please see: https://foo.bar/
Current count: 6, maximum allowed: 5

Addon Installation

ember install ember-cli-detergent

Create a .detergentrc.js configuration file in the root of your app.

Development Instructions

Installation

  • git clone <repository-url> this repository
  • cd ember-cli-detergent
  • npm install
  • bower install

Running

Running Tests

  • npm test (Runs ember try:each to test your addon against multiple Ember versions)
  • ember test
  • ember test --server

Building

  • ember build

For more information on using ember-cli, visit https://ember-cli.com/.

Keywords

FAQs

Package last updated on 19 Dec 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc