• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pantsbuild / pants / 24145062409

08 Apr 2026 03:56PM UTC coverage: 52.369% (-40.5%) from 92.91%
24145062409

Pull #23233

github

web-flow
Merge 7a7652ebe into 9036734c9
Pull Request #23233: Introduce a LockfileFormat enum.

7 of 10 new or added lines in 3 files covered. (70.0%)

23048 existing lines in 605 files now uncovered.

31656 of 60448 relevant lines covered (52.37%)

0.52 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/python/pants/jvm/shading/jarjar.py
1
# Copyright 2022 Pants project contributors (see CONTRIBUTORS.md).
2
# Licensed under the Apache License, Version 2.0 (see LICENSE).
3

UNCOV
4
from enum import Enum, unique
×
5

UNCOV
6
from pants.core.goals.resolves import ExportableTool
×
UNCOV
7
from pants.engine.rules import collect_rules
×
UNCOV
8
from pants.engine.unions import UnionRule
×
UNCOV
9
from pants.jvm.resolve.jvm_tool import JvmToolBase
×
UNCOV
10
from pants.option.option_types import BoolOption, EnumOption
×
11

12

UNCOV
13
@unique
×
UNCOV
14
class MisplacedClassStrategy(Enum):
×
UNCOV
15
    FATAL = "fatal"
×
UNCOV
16
    SKIP = "skip"
×
UNCOV
17
    OMIT = "omit"
×
UNCOV
18
    MOVE = "move"
×
19

20

UNCOV
21
class JarJar(JvmToolBase):
×
UNCOV
22
    options_scope = "jarjar"
×
UNCOV
23
    help = "The Jar Jar Abrams tool (https://github.com/eed3si9n/jarjar-abrams)"
×
24

UNCOV
25
    default_version = "1.8.1"
×
UNCOV
26
    default_artifacts = ("com.eed3si9n.jarjar:jarjar-assembly:{version}",)
×
UNCOV
27
    default_lockfile_resource = (
×
28
        "pants.jvm.shading",
29
        "jarjar.default.lockfile.txt",
30
    )
31

UNCOV
32
    skip_manifest = BoolOption(default=False, help="Skip the processing of the JAR manifest.")
×
UNCOV
33
    misplaced_class_strategy = EnumOption(
×
34
        default=None,
35
        enum_type=MisplacedClassStrategy,
36
        help="The strategy to use when processing class files that are in the wrong package.",
37
    )
38

39

UNCOV
40
def rules():
×
UNCOV
41
    return [
×
42
        *collect_rules(),
43
        UnionRule(ExportableTool, JarJar),
44
    ]
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc