Skip to content

Commit

Permalink
Update KtLint to latest version which fixes StandardRuleSet package n…
Browse files Browse the repository at this point in the history
…aming.

Addresses #92
  • Loading branch information
kvnxiao authored and nedtwigg committed Mar 19, 2017
1 parent 26fd7cf commit 0b20cd0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class KtLintStep {
// prevent direct instantiation
private KtLintStep() {}

private static final String DEFAULT_VERSION = "0.3.1";
private static final String DEFAULT_VERSION = "0.6.1";
static final String NAME = "ktlint";
static final String MAVEN_COORDINATE = "com.github.shyiko:ktlint:";

Expand Down Expand Up @@ -67,7 +67,7 @@ FormatterFunc createFormat() throws Exception {
// String KtLint::format(String input, Iterable<RuleSet> rules, Function2 errorCallback)

// first, we get the standard rules
Class<?> standardRuleSetProviderClass = classLoader.loadClass("com.gihub.shyiko.ktlint.ruleset.standard.StandardRuleSetProvider");
Class<?> standardRuleSetProviderClass = classLoader.loadClass("com.github.shyiko.ktlint.ruleset.standard.StandardRuleSetProvider");
Object standardRuleSet = standardRuleSetProviderClass.getMethod("get").invoke(standardRuleSetProviderClass.newInstance());
Iterable<?> ruleSets = Collections.singletonList(standardRuleSet);

Expand Down

0 comments on commit 0b20cd0

Please sign in to comment.