Skip to content

Commit

Permalink
chore: explicity disable no-html-link-for-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
zieka committed Oct 10, 2024
1 parent 1ca388e commit 265c7ff
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/java/org/openrewrite/codemods/Putout.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,16 @@ protected List<String> getNpmCommand(Accumulator acc, ExecutionContext ctx) {
String executable = "${nodeModules}/.bin/putout";

if (rules != null) {
commands.add(executable + " ${repoDir} --disable-all || true"); // hacky because disable-all throws
commands.add(executable + " ${repoDir} --disable-all || true"); // hacky because putout throws

// enable only rules that are provided
for (String rule : rules) {
commands.add(executable + " ${repoDir} --enable " + rule);
commands.add(executable + " ${repoDir} --enable " + rule + " || true");
}
}

commands.add(executable + " ${repoDir}" + " --fix");
commands.add(executable + " ${repoDir}" + " --disable no-html-link-for-pages || true");
commands.add(executable + " ${repoDir}" + " --fix || true");
return commands;
}

Expand Down

0 comments on commit 265c7ff

Please sign in to comment.