Skip to content

Commit

Permalink
Renamed interface Rule to IRule
Browse files Browse the repository at this point in the history
  • Loading branch information
DickvdBrink committed Jun 25, 2014
1 parent 177c30c commit 6225449
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions lib/tslint.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6483,7 +6483,7 @@ declare module Lint {
startPosition: number;
endPosition: number;
}
interface Rule {
interface IRule {
getOptions(): IOptions;
isEnabled(): boolean;
apply(syntaxTree: TypeScript.SyntaxTree): RuleFailure[];
Expand Down Expand Up @@ -6547,7 +6547,7 @@ declare module Lint {
[name: string]: any;
}, enableDisableRuleMap: {
[rulename: string]: IEnableDisablePosition[];
}, rulesDirectory?: string): Rule[];
}, rulesDirectory?: string): IRule[];
function findRule(name: string, rulesDirectory?: string): any;
}
declare module Lint.Configuration {
Expand Down Expand Up @@ -10805,7 +10805,7 @@ declare module Lint.Formatters {
}
}
declare module Lint.Rules {
class AbstractRule implements Lint.Rule {
class AbstractRule implements Lint.IRule {
private value;
private options;
constructor(ruleName: string, value: any, disabledIntervals: Lint.IDisabledInterval[]);
Expand Down
2 changes: 1 addition & 1 deletion src/language/rule/abstractRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
/// <reference path='rule.ts'/>

module Lint.Rules {
export class AbstractRule implements Lint.Rule {
export class AbstractRule implements Lint.IRule {
private value: any;
private options: Lint.IOptions;

Expand Down
2 changes: 1 addition & 1 deletion src/language/rule/rule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module Lint {
endPosition: number;
}

export interface Rule {
export interface IRule {
getOptions(): IOptions;

isEnabled(): boolean;
Expand Down
4 changes: 2 additions & 2 deletions src/ruleLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ module Lint {

export function loadRules(ruleConfiguration: {[name: string]: any},
enableDisableRuleMap: {[rulename: string]: Lint.IEnableDisablePosition[]},
rulesDirectory?: string): Rule[] {
var rules: Rule[] = [];
rulesDirectory?: string): IRule[] {
var rules: IRule[] = [];
for (var ruleName in ruleConfiguration) {
if (ruleConfiguration.hasOwnProperty(ruleName)) {
var ruleValue = ruleConfiguration[ruleName];
Expand Down

0 comments on commit 6225449

Please sign in to comment.