Skip to content

Commit

Permalink
Add no-for-in-array to readme (palantir#1436)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkillian authored Jul 27, 2016
1 parent a049830 commit a00915d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ Core rules are included in the `tslint` package.
* `no-duplicate-variable` disallows duplicate variable declarations in the same block scope.
* `no-empty` disallows empty blocks.
* `no-eval` disallows `eval` function invocations.
* `no-for-in-array` disallows iterating over an array with a for-in loop (requires type checking).
* `no-inferrable-types` disallows explicit type declarations for variables or parameters initialized to a number, string, or boolean.
* `ignore-params` allows specifying an inferrable type as a function param
* `no-internal-module` disallows internal `module` (use `namespace` instead).
Expand Down
2 changes: 1 addition & 1 deletion src/rules/noForInArrayRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class Rule extends Lint.Rules.TypedRule {
/* tslint:disable:object-literal-sort-keys */
public static metadata: Lint.IRuleMetadata = {
ruleName: "no-for-in-array",
description: "Disallows for-in loops over array types.",
description: "Disallows iterating over an array with a for-in loop.",
descriptionDetails: Lint.Utils.dedent`
A for-in loop (\`for (var k in o)\`) iterates over the properties of an Object.
Expand Down

0 comments on commit a00915d

Please sign in to comment.