Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
anssari1 committed Oct 13, 2024
1 parent f7820bd commit 9415753
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {RuleFunction} from './shared.types';

export class CarCancellationPolicyProcessor extends Processor {
rules: RuleFunction[];
id: 'car-cancellation-policy';

constructor() {
super();
Expand All @@ -13,10 +14,6 @@ export class CarCancellationPolicyProcessor extends Processor {
].map(rule => rule.bind(this));
}

readRule(ruleName: string): NapiConfig {
return super.readRule('car-cancellation-policy', ruleName);
}

changeClassParamType(root: SgNode): Edit[] {
const config = this.readRule('change-class-param-type');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {RuleFunction} from './shared.types';

export class GetLodgingListingsOperationParamsProcessor extends Processor {
rules: RuleFunction[];
id: 'get-lodging-listings-operation-params';

constructor() {
super();
Expand All @@ -15,10 +16,6 @@ export class GetLodgingListingsOperationParamsProcessor extends Processor {
].map(rule => rule.bind(this));
}

readRule(ruleName: string): NapiConfig {
return super.readRule('get-lodging-listings-operation-params', ruleName);
}

removeRoomBuilderMethods(root: SgNode): Edit[] {
const config = this.readRule('remove-room-builder-methods');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {RuleFunction} from './shared.types';

export class GetLodgingQuotesOperationParamsProcessor extends Processor {
rules: RuleFunction[];
id: 'get-lodging-quotes-operation-params';

constructor() {
super();
Expand All @@ -15,10 +16,6 @@ export class GetLodgingQuotesOperationParamsProcessor extends Processor {
].map(rule => rule.bind(this));
}

readRule(ruleName: string): NapiConfig {
return super.readRule('get-lodging-quotes-operation-params', ruleName);
}

removeRoomBuilderMethods(root: SgNode): Edit[] {
const config = this.readRule('remove-room-builder-methods');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {RuleFunction} from './shared.types';

export class NonCancellableDateTimeRangeProcessor extends Processor {
rules: RuleFunction[];
id: 'non-cancellable-date-time-range';

constructor() {
super();
Expand All @@ -13,10 +14,6 @@ export class NonCancellableDateTimeRangeProcessor extends Processor {
].map(rule => rule.bind(this));
}

readRule(ruleName: string): NapiConfig {
return super.readRule('non-cancellable-date-time-range', ruleName);
}

changeClassParamType(root: SgNode): Edit[] {
const config = this.readRule('change-class-params-type');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {RuleFunction} from './shared.types';

export class PenaltyRuleProcessor extends Processor {
rules: RuleFunction[];
id: 'penalty-rule';

constructor() {
super();
Expand All @@ -13,10 +14,6 @@ export class PenaltyRuleProcessor extends Processor {
].map(rule => rule.bind(this));
}

readRule(ruleName: string): NapiConfig {
return super.readRule('penalty-rule', ruleName);
}

changeClassParamType(root: SgNode): Edit[] {
const config = this.readRule('change-class-params-type');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {RuleFunction} from './shared.types';

export class VendorLocationDetailsProcessor extends Processor {
rules: RuleFunction[];
id: 'vendor-location-details';

constructor() {
super();
Expand All @@ -13,10 +14,6 @@ export class VendorLocationDetailsProcessor extends Processor {
].map(rule => rule.bind(this));
}

readRule(ruleName: string): NapiConfig {
return super.readRule('vendor-location-details', ruleName);
}

changeClassParamType(root: SgNode): Edit[] {
const config = this.readRule('change-class-param-type');

Expand Down

0 comments on commit 9415753

Please sign in to comment.