Skip to content

Files

Latest commit

 

History

History
29 lines (18 loc) · 492 Bytes

RedundantVisibilityModifierRule.md

File metadata and controls

29 lines (18 loc) · 492 Bytes

Pattern: Use of redundant visibility modifier

Issue: -

Description

Redundant visibility modifiers can be safely removed.

Example of incorrect code:

public interface Foo { // public per default

    public fun bar() // public per default
}

Example of correct code:

interface Foo {

    fun bar()
}

Further Reading