Skip to content

Commit

Permalink
cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
TibboddiT committed Apr 7, 2023
1 parent cf76984 commit 88ab062
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/commands/loadPHPStanConfig.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import { Ext } from "../extension";
import { parsePHPStanConfigFile } from "../utils/phpstan";
import { normalize } from "path";

export default async function loadPHPStanConfig(ext: Ext) {
if (!ext.store.phpstan.configPath) throw new Error("Config path is required");
const config = await parsePHPStanConfigFile(ext.store.phpstan.configPath, {
currentWorkingDirectory: ext.cwd,
rootDir: normalize(ext.settings.path),
});
ext.log({ tag: "config", message: JSON.stringify(config, null, 2) });
return config;
Expand Down
1 change: 0 additions & 1 deletion src/utils/phpstan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ export type PHPStanConfig = {
};

export type PHPStanConfigEnv = {
rootDir: string;
currentWorkingDirectory: string;
};

Expand Down

0 comments on commit 88ab062

Please sign in to comment.