Skip to content

Commit

Permalink
bugfix/newlinesrule(#748)
Browse files Browse the repository at this point in the history
### What's done:
  * Fixed bugs
  • Loading branch information
aktsay6 committed Feb 9, 2021
1 parent 443ce08 commit 10bfb94
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ typealias ListOfPairs = MutableList<Pair<ASTNode, String>>
"ForbiddenComment",
"MagicNumber",
"WRONG_DECLARATIONS_ORDER",
"MaxLineLength"
"MaxLineLength",
"WRONG_NEWLINES"
)
enum class Warnings(
val canBeAutoCorrected: Boolean,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ class KdocMethodsTest : LintTestBase(::KdocMethods) {
""".trimIndent()

@Test
@Tags(Tag(WarningNames.KDOC_WITHOUT_PARAM_TAG), Tag(WarningNames.KDOC_WITHOUT_RETURN_TAG), Tag(WarningNames.KDOC_WITHOUT_THROWS_TAG))
@Tags(
Tag(WarningNames.KDOC_WITHOUT_PARAM_TAG),
Tag(WarningNames.KDOC_WITHOUT_RETURN_TAG),
Tag(WarningNames.KDOC_WITHOUT_THROWS_TAG)
)
fun `Accessible methods with parameters, return type and throws should have proper KDoc (positive example)`() {
val validCode = """
/**
Expand Down

0 comments on commit 10bfb94

Please sign in to comment.