Skip to content

Bug 2074093 - Update detekt's LongParameterList rule to allow up to 9 constructor parameters - #369

Closed
segunfamisa wants to merge 1 commit into
mozilla-firefox:autolandfrom
segunfamisa:sf/bug-2074093-detekt-rule-update
Closed

segunfamisa wants to merge 1 commit into
mozilla-firefox:autolandfrom
segunfamisa:sf/bug-2074093-detekt-rule-update

Conversation

@segunfamisa

@segunfamisa segunfamisa commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Note - the behaviour of this rule changed in the next version. For version 1.23.8 we had to set the constructorThreshold to 10, to allow 9 parameters.

In version 1.23.8, the threshold specifies the number from which a violation is reported, and in newer versions, the threshold specifies the number after which, a violation is reported.

We should adjust the rule whenever we bump detekt's version.

See detekt/detekt#3679 for more info


Lando: link
Bugzilla: bug 2074093

⚠️ This pull request has 3 warnings.
🚫 This pull request has 1 blocker.

… constructor parameters

Note - the behaviour of this rule changed in the next version.
For version 1.23.8 we had to set the `constructorThreshold` to 10, to allow 9 parameters.

In version 1.23.8, the threshold specifies the number from which a violation is reported, and in newer versions, the threshold specifies the number *after* which, a violation is reported.

We should adjust the rule whenever we bump detekt's version.

See detekt/detekt#3679 for more info
@lando-web
lando-web Bot requested a review from a team September 25, 2026 15:14
@github-actions

Copy link
Copy Markdown
Contributor

View this pull request in Lando to land it once approved.

@segunfamisa

Copy link
Copy Markdown
Contributor Author

@pollym pollym left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

😍 beautiful.... thank you!

@lando-worker

lando-worker Bot commented Sep 27, 2026

Copy link
Copy Markdown

Pull request closed by commit 04a8b86

lando-worker Bot pushed a commit that referenced this pull request Sep 27, 2026
… constructor parameters r=pollymce

Note - the behaviour of this rule changed in the next version. For version 1.23.8 we had to set the `constructorThreshold` to 10, to allow 9 parameters.

In version 1.23.8, the threshold specifies the number from which a violation is reported, and in newer versions, the threshold specifies the number *after* which, a violation is reported.

We should adjust the rule whenever we bump detekt's version.

See detekt/detekt#3679 for more info

Pull request: #369
@lando-worker lando-worker Bot closed this Sep 27, 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