From 84c6d8e70482d98bdc9a27c124c2ea2802aa0e05 Mon Sep 17 00:00:00 2001 From: "ryan.waskiewicz" Date: Sun, 22 Apr 2018 11:14:47 -0400 Subject: [PATCH] Add rationale field to prefer-while rule metadata --- src/rules/preferWhileRule.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rules/preferWhileRule.ts b/src/rules/preferWhileRule.ts index 3666e2ac168..370ff9a5ef8 100644 --- a/src/rules/preferWhileRule.ts +++ b/src/rules/preferWhileRule.ts @@ -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],