peerlibrary/coffeelint-forbidden-keywords

Name: coffeelint-forbidden-keywords

Owner: PeerLibrary

Description: A CoffeeLint rule that forbids specified keywords.

Created: 2015-05-26 03:31:31.0

Updated: 2015-05-26 03:31:32.0

Pushed: 2015-05-18 08:08:56.0

Homepage: null

Size: 158

Language: CoffeeScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

coffeelint-forbidden-tokens

A CoffeeLint rule that forbids specified keywords.

Description

This CoffeeLint rule forbids the usage of a specified subset of the following keywords: this, if, unless, while, loop, until, true, yes, on, false, no, off, is, ==, isnt, !=, !, not, &&, and, ||, or, ++, --, .., and ...

By default, yes, no, on, and off are forbidden.

Installation
install coffeelint-forbidden-keywords
Usage

Add the following configuration to coffeelint.json:

bidden_keywords": {
odule": "coffeelint-forbidden-keywords"

Configuration

forbidden: a hash that maps forbidden keywords to suggested replacements. To forbid a keyword with no suggestion, map the keyword to null.

For example:

bidden_keywords": {
odule": "coffeelint-forbidden-keywords",
orbidden": {
"yes": "true",
"no": "false",
"on": "true",
"off": "false",
"is": "==",
"isnt": "!="



This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.