Skip to content

Add ignore_definition_args param to MaxLineLength check#1253

Open
Nezteb wants to merge 1 commit intorrrene:masterfrom
Nezteb:line-length-ignore-definition-args
Open

Add ignore_definition_args param to MaxLineLength check#1253
Nezteb wants to merge 1 commit intorrrene:masterfrom
Nezteb:line-length-ignore-definition-args

Conversation

@Nezteb
Copy link
Copy Markdown
Contributor

@Nezteb Nezteb commented Jan 29, 2026

Even with ignore_definitions being set to true, there are some cases where the Elixir formatter won't split a long line if it's one of the arguments of a function definition. This will cause the MaxLineLength Credo check to fail when it maybe shouldn't. To address this, I figured a new default-false flag would be an easier addition. 🙏

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.

1 participant