Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

Commit

Permalink
Add rationale field to prefer-while rule metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
rwaskiewicz committed Apr 22, 2018
1 parent cc218a2 commit 84c6d8e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rules/preferWhileRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ export class Rule extends Lint.Rules.AbstractRule {
/* tslint:disable:object-literal-sort-keys */
public static metadata: Lint.IRuleMetadata = {
ruleName: "prefer-while",
description: "Prefer while loops when instead of a for loop without an initializer and incrementor",
description: "Prefer while loops when instead of a for loop without an initializer and incrementor.",
rationale: "Simplifies the readability of the loop statement, while maintaining the same functionality.",
optionsDescription: "Not configurable.",
options: null,
optionExamples: [true],
Expand Down

0 comments on commit 84c6d8e

Please sign in to comment.