mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-18 16:08:55 +00:00
PHP had no regression coverage. Adds a php-app fixture (Composer + Pest) with language, run and debug smoke cases, and a php entry in the Language smoke workflow: PHP 8.5 with Xdebug via setup-php, Intelephense pinned like the other servers. Other languages' selectors are unchanged. Co-authored-by: lleviathe <95321986+lleviathe@users.noreply.github.com>
30 lines
1.1 KiB
TypeScript
30 lines
1.1 KiB
TypeScript
import type { KnipConfig } from "knip";
|
|
|
|
const config: KnipConfig = {
|
|
// Entries come from the Vite (index.html), Vitest, Playwright and package.json script plugins;
|
|
// standalone browser fixtures are loaded by their own HTML pages.
|
|
entry: ["e2e/*.fixture.{ts,tsx}"],
|
|
project: [
|
|
"src/**/*.{ts,tsx,css}",
|
|
"!src/editor/core/cm/angular/parser.terms.ts",
|
|
"!src/editor/core/cm/jsp/parser.terms.ts",
|
|
"!src/editor/core/cm/astro/parser.terms.ts",
|
|
"scripts/**/*.ts",
|
|
"perf/**/*.ts",
|
|
"e2e/**/*.ts",
|
|
"smoke/**/*.ts",
|
|
],
|
|
// Plugins' web pages are projects of their own (own package.json, checked by plugins/build.sh and CI).
|
|
ignore: ["plugins/**/web-src/**"],
|
|
ignoreExportsUsedInFile: true,
|
|
// lint-staged formats Rust files with the toolchain's rustfmt; the PHP smoke tests install
|
|
// their fixture with Composer.
|
|
ignoreBinaries: ["rustfmt", "composer"],
|
|
compilers: {
|
|
// Fonts come in through `@import` in global.css.
|
|
css: (text: string) => [...text.matchAll(/(?<=@)import[^;]+/g)].join("\n"),
|
|
},
|
|
};
|
|
|
|
export default config;
|