Skip to content

Commit

Permalink
fix filepath
Browse files Browse the repository at this point in the history
  • Loading branch information
daknhh committed Feb 23, 2024
1 parent 6bd7f22 commit a9cf72b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/tools/enumcheck.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async function checkLabelsForRuleGroup(ruleGroupName: any) {
const availableLabels = response.AvailableLabels.map((label: { Name: unknown; }) => label.Name);

// Read labels from enums.ts file
const enumFilePath = "../types/enums.ts";
const enumFilePath = "./lib/types/enums.ts";
const enumLabels = readEnumFile(enumFilePath);

// Check if available labels are present in the enums.ts file
Expand Down Expand Up @@ -75,7 +75,7 @@ async function checkRulesForRuleGroup(ruleGroupName: unknown) {
const availableRules = response.Rules.map((rule: { Name: unknown; }) => rule.Name);

// Read rules from enums.ts file
const enumFilePath = "./types/enums.ts";
const enumFilePath = "./lib/types/enums.ts";
const enumRules = readEnumFile(enumFilePath);

// Check if available rules are present in the enums.ts file
Expand Down

0 comments on commit a9cf72b

Please sign in to comment.