-
-
Notifications
You must be signed in to change notification settings - Fork 486
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
-D pedantic
throws File is too long to fit on the screen
(even if max-lines
is disabled)
#4322
Comments
For context, it throws this if column number exceeds 400. oxc/crates/oxc_diagnostics/src/service.rs Lines 154 to 159 in 3df9e69
|
An improvement should be print out the error message but don't print the code frame. |
Just to add / clarify, as I'm unsure whether the change you proposed would address it: The invocation currently also fails with a non-zero status code, blocking CI from passing. This to me feels undesired. I lack experience to say whether this is actually undesired or correct. |
Further info: I identified the line that is causing the error. It's the export const getTasks = async (
user: { email: string, role: UserRole },
prisma: ExtendedPrismaClient,
input: z.infer<typeof getTasksInputSchema> = { assignedToUsers: { in: [] }, assignedToRole: { in: [] }, isRelatedToOffer: 'is-related-or-unrelated', relatedOfferId: [], createdByEmail: { in: [] } },
) => {
} Breaking this line as follows stops the export const getTasks = async (
user: { email: string, role: UserRole },
prisma: ExtendedPrismaClient,
input: z.infer<typeof getTasksInputSchema> =
{ assignedToUsers:
{ in: [] }, assignedToRole: { in: [] }, isRelatedToOffer: 'is-related-or-unrelated', relatedOfferId: [], createdByEmail: { in: [] } },
) => {
} And instead reveals the "true" error:
|
closes #4322 Setting the threshold to 1200 because graphical output may contain ansi escape codes and other decorations.
) closes #4322 Setting the threshold to 1200 because graphical output may contain ansi escape codes and other decorations.
Made some improvements in #5120 |
) closes #4322 Setting the threshold to 1200 because graphical output may contain ansi escape codes and other decorations.
Description
We are on
oxlint@0.6.0
. With the following.oxlintrc.json
:And the following oxlint invocation:
The following invocation succeeds (note how I dropped
-D pedantic
):pnpm oxlint -c .oxlintrc.json --deny-warnings -D correctness -D perf -D suspicious Finished in 40ms on 766 files with 101 rules using 10 threads. Found 0 warnings and 0 errors.
server/trpc/routers/userTask/index.ts
is not a minified file. It's a tRPC router file with 556 LoC.Expected behavior
Given the same
.oxlintrc.json
the invocation including-D pedantic
returns:The text was updated successfully, but these errors were encountered: