SWE-Rebench v2 hard task
harbor run -t ibragim-badertdinov/fallow-rs__fallow-821harbor download ibragim-badertdinov/fallow-rs__fallow-821False positive unused file for Vercel vercel.ts config
fallow dead-code reports apps/web/vercel.ts as an unused file, but Vercel treats vercel.ts as a project configuration file that is discovered and executed by convention.
The file is not imported by application source, so it looks unused to a pure import graph. It should be treated as a Vercel config entrypoint.
Vercel docs say:
vercel.ts configures and overrides Vercel project behavior.vercel.json, vercel.ts executes at build time.config.vercel.js, vercel.mjs, vercel.cjs, and vercel.mts.The @vercel/config package also treats vercel.ts as the config input:
packages/config/README.md says to create a vercel.ts file in the project root.packages/config/README.md says vercel.ts is automatically compiled during vercel build, vercel dev, and vercel deploy.packages/config/src/cli.ts resolves process.cwd()/vercel.ts.packages/config/src/cli.ts imports the config module and collects named exports.packages/config/example/vercel.ts shows the expected export const config shape.Because Vercel discovers this file by convention, Fallow should not report it as unused.
Create an app/workspace with a package.json like:
{
"name": "@example/web",
"private": true,
"type": "module",
"scripts": {
"build": "next build",
"env-pull": "vercel env pull"
},
"devDependencies": {
"@vercel/config": "latest",
"vercel": "latest"
}
}
Create vercel.ts at the app root:
import type { VercelConfig } from '@vercel/config/v1';
export const config = {
regions: ['dub1'],
fluid: true,
installCommand: 'pnpm install --filter @example/web...',
devCommand: 'next dev --port 3000',
crons: [
{
path: '/api/jobs/run',
schedule: '*/5 * * * *',
},
],
} satisfies VercelConfig;
Run:
fallow dead-code
vercel.ts is reported as an unused file.
Fallow should treat Vercel programmatic config files as used config entrypoints when Vercel is active.
At minimum, the Vercel plugin/config detection should mark these app-root files as always used:
vercel.tsvercel.jsvercel.mjsvercel.cjsvercel.mtsA fix could add these to the relevant Vercel plugin config/always-used patterns, similar to how other framework config files are protected from unused-file reporting.
2.85.0
macOS
No new interfaces are introduced.