Skip to content

Ban certain library functions #3896

Answered by marschwar
alamothe asked this question in Q&A
Discussion options

You must be logged in to vote

As mentioned by @BraisGabin you can use ForbiddenMethodCall:

  ForbiddenMethodCall:
    active: true
    methods: ['kotlin.io.println', 'kotlin.io.print', 'your.library.function']

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by cortinico
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
3 participants
Converted from issue

This discussion was converted from issue #3888 on June 24, 2021 08:57.