Skip to content

Commit

Permalink
add pragma no cover to the format_palantir function
Browse files Browse the repository at this point in the history
Palantir doesn't run on Java >=21
  • Loading branch information
eirnym committed Jul 3, 2024
1 parent ad857a0 commit 4ca55b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion language_formatters_pre_commit_hooks/pretty_format_java.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def format_google(args):
return 0 if status == 0 else 1


def format_palantir(args):
def format_palantir(args): # pragma: no cover
# Palantir Java Formatter starting from 2.0.0 does not support Java 1.8,
# before that version the tool can only be executed on Java up to version 20.
# Context: https://github.com/palantir/palantir-java-format/releases/tag/v2.0.0
Expand Down

0 comments on commit 4ca55b7

Please sign in to comment.