Skip to content
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

Forbid constructors with ForbiddenMethodCall #5195

Merged
merged 3 commits into from Aug 8, 2022
Merged

Forbid constructors with ForbiddenMethodCall #5195

merged 3 commits into from Aug 8, 2022

Conversation

BraisGabin
Copy link
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
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
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
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
3 participants