Skip to content

chore: Fix max-len warnings#137

Closed
daogrady wants to merge 2 commits intomainfrom
chore/max-len
Closed

chore: Fix max-len warnings#137
daogrady wants to merge 2 commits intomainfrom
chore/max-len

Conversation

@daogrady
Copy link
Copy Markdown
Contributor

@daogrady daogrady commented Jan 29, 2026

This PR primarily targets max-len eslint warnings, which polluted the PR review view.
We can considerably cut back on these warnings by introducing line breaks between sub-expressions, and introducing a few // eslint-ignore-next-lines for long strings.

A few changes are somewhat questionable, like breaking long boolean expressions. We can revert those, if they appear to be too erratic.
I also did not touch conditions inside if statements, that looked very unclean. But we should look into them at some point.

assert.strictEqual(openAPI.paths["/F1"].get["x-sap-deprecated-operation"].notValidKey, undefined);
});

test('emits *:cds.compile.to.openapi events', async () => {
Copy link
Copy Markdown
Contributor Author

@daogrady daogrady Jan 29, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These triggered

Async arrow function has no 'await' expression.eslintrequire-await

@daogrady daogrady requested a review from tim-sh January 29, 2026 12:48
@daogrady daogrady changed the title Fix max-len warnings chore: Fix max-len warnings Jan 29, 2026
@daogrady daogrady marked this pull request as ready for review January 29, 2026 12:50
@tim-sh
Copy link
Copy Markdown
Member

tim-sh commented Jan 29, 2026

@daogrady I'm wondering whether we should even drop the max-len. To me, this is kind of arbitrary and introduces line breaks in places you wouldn't semantically expect them.
PS. A config base you once quoted also has it switched off.

@daogrady
Copy link
Copy Markdown
Contributor Author

I am perfectly fine with increasing the limit or switching off this rule completely.

@daogrady
Copy link
Copy Markdown
Contributor Author

Superseded by #138

@daogrady daogrady closed this Jan 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants