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

pantsbuild / pants / 24637157883

19 Apr 2026 07:23PM UTC coverage: 52.377% (-40.5%) from 92.924%
24637157883

Pull #23274

github

web-flow
Merge b54f275c2 into 0283af69e
Pull Request #23274: rust: upgrade to v1.95.0

31658 of 60443 relevant lines covered (52.38%)

1.05 hits per line

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

0.0
/src/python/pants/backend/kotlin/subsystems/kotlinc.py
1
# Copyright 2022 Pants project contributors (see CONTRIBUTORS.md).
2
# Licensed under the Apache License, Version 2.0 (see LICENSE).
3
from __future__ import annotations
×
4

5
from pants.option.option_types import ArgsListOption, DictOption
×
6
from pants.option.subsystem import Subsystem
×
7
from pants.util.strutil import softwrap
×
8

9

10
class KotlincSubsystem(Subsystem):
×
11
    options_scope = "kotlinc"
×
12
    name = "kotlinc"
×
13
    help = "The Kotlin programming language (https://kotlinlang.org/)."
×
14

15
    args = ArgsListOption(
×
16
        example="-Werror",
17
        extra_help="See https://kotlinlang.org/docs/compiler-reference.html for supported arguments.",
18
    )
19

20
    # TODO: see if we can use an actual list mechanism? If not, this seems like an OK option
21
    plugins_for_resolve = DictOption[str](
×
22
        help=softwrap(
23
            """
24
            A dictionary, whose keys are the names of each JVM resolve that requires default
25
            `kotlinc` plugins, and the value is a comma-separated string consisting of kotlinc plugin
26
            names. Each specified plugin must have a corresponding `kotlinc_plugin` target that specifies
27
            that name in either its `plugin_name` field or is the same as its target name.
28
            """
29
        ),
30
    )
31

32
    def parsed_default_plugins(self) -> dict[str, list[str]]:
×
33
        return {
×
34
            key: [i.strip() for i in value.split(",")]
35
            for key, value in self.plugins_for_resolve.items()
36
        }
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