Skip to content

Forbid constructors with ForbiddenMethodCall#5195

Merged
schalkms merged 3 commits intomainfrom
fix-5185
Aug 8, 2022
Merged

Forbid constructors with ForbiddenMethodCall#5195
schalkms merged 3 commits intomainfrom
fix-5185

Conversation

@BraisGabin
Copy link
Copy Markdown
Member

Fix #5185


I have no idea what's the real difference between fqNameOrNull and fqNameSafe but with the former all works as expected so 🤷

@schalkms
Copy link
Copy Markdown
Member

schalkms commented Aug 8, 2022

Interesting question...
Hmm, maybe you might want to ask this in the Kotlin Slack channel.

I have no idea what's the real difference between fqNameOrNull and fqNameSafe but with the former all works as expected so 🤷

@schalkms
Copy link
Copy Markdown
Member

schalkms commented Aug 8, 2022

Maybe, a hint should be given in the description of this rule that constructors are also supported.

BraisGabin and others added 2 commits August 8, 2022 15:07
…/rules/style/ForbiddenMethodCall.kt

Co-authored-by: schalkms <30376729+schalkms@users.noreply.github.com>
@BraisGabin
Copy link
Copy Markdown
Member Author

Maybe, a hint should be given in the description of this rule that constructors are also supported.

Agree, what do you think about it now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Forbid constructor calls

4 participants