Skip to content

Commit

Permalink
Change defaults to be more opinionated
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmook committed Mar 11, 2019
1 parent 1bda406 commit 998706c
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import com.appmattus.markdown.rules.extentions.style
* Based on [MD003](https://github.com/markdownlint/markdownlint/blob/master/lib/mdl/rules.rb)
*/
class ConsistentHeaderStyleRule(
private val style: HeaderStyle = HeaderStyle.Consistent,
private val style: HeaderStyle = HeaderStyle.Atx,
override val config: RuleSetup.Builder.() -> Unit = {}
) : Rule() {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import com.appmattus.markdown.rules.extentions.style
* Based on [MD004](https://github.com/markdownlint/markdownlint/blob/master/lib/mdl/rules.rb)
*/
class ConsistentUlStyleRule(
private val style: UnorderedListStyle = UnorderedListStyle.Consistent,
private val style: UnorderedListStyle = UnorderedListStyle.Dash,
override val config: RuleSetup.Builder.() -> Unit = {}
) : Rule() {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import com.appmattus.markdown.rules.config.HorizontalRuleStyle
* Based on [MD035](https://github.com/markdownlint/markdownlint/blob/master/lib/mdl/rules.rb)
*/
class HrStyleRule(
private val style: HorizontalRuleStyle = HorizontalRuleStyle.Consistent,
private val style: HorizontalRuleStyle = HorizontalRuleStyle.Dash,
override val config: RuleSetup.Builder.() -> Unit = {}
) : Rule() {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ object ConsistentHeaderStyleRuleTest : Spek({
"incorrect_header_setext_with_atx_2.md",
"headers_with_spaces_at_the_beginning.md"
)
) { ConsistentHeaderStyleRule() }
) { ConsistentHeaderStyleRule(HeaderStyle.Consistent) }
}
})
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ object ConsistentUlStyleRuleTest : Spek({
"incorrect_bullet_style_plus.md",
"lists_without_blank_lines.md"
)
) { ConsistentUlStyleRule() }
) { ConsistentUlStyleRule(UnorderedListStyle.Consistent) }
}
})
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ object HrStyleRuleTest : Spek({

FileRuleScenario(exclude = listOf("hr_style_dashes.md", "hr_style_long.md", "hr_style_stars.md",
"hr_style_underscores.md")) {
HrStyleRule()
HrStyleRule(HorizontalRuleStyle.Consistent)
}
}
})

0 comments on commit 998706c

Please sign in to comment.