coffeelint-no-operation-expression
Coffeelint rule that detects code that doesn't do anything
Last updated 4 years ago by srgraham .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install coffeelint-no-operation-expression 
SYNC missed versions from official npm registry.

coffeelint-no-operation-expression

CoffeeLint rule that finds instances where there's some code that doesn't do anything. This could mean a variable, string, or number on a line with no assignment or calls happening to it.

Ex: Any of these statements on a line by itself:

5
'stuff'
obj

By themselves, they don't do anything at all. They're likely a development oversight The chai variables "expect", "assert", and "should" bypass this rule since they have __getter__ magic happening in them.

Installation

npm install coffeelint-no-operation-expression

Usage

Add the following configuration to coffeelint.json:

"no_operation_expression": {
  "module": "coffeelint-no-operation-expression"
}

Configuration

There are currently no configuration options.

Current Tags

  • 0.0.3                                ...           latest (4 years ago)

3 Versions

  • 0.0.3                                ...           4 years ago
  • 0.0.2                                ...           4 years ago
  • 0.0.1                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2016 © taobao.org |