# Copyright 2022 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from pants.option.option_types import BoolOption
from pants.option.subsystem import Subsystem


class KotlinInferSubsystem(Subsystem):
    options_scope = "kotlin-infer"
    help = "Options controlling which dependencies will be inferred for Kotlin targets."

    imports = BoolOption(
        default=True,
        help="Infer a target's dependencies by parsing import statements from sources.",
    )

    consumed_types = BoolOption(
        default=True,
        help="Infer a target's dependencies by parsing consumed types from sources.",
    )
