when ($OPENSOURCE == "yes") {
    PEERDIRS_RULES_PATH=
}
otherwise {
    PEERDIRS_RULES_PATH=\
        build/rules/junk.policy \
        build/rules/go/contrib.policy \
        build/rules/go/vendor.policy \
        build/rules/base_layers.policy \
        build/rules/contrib_deprecated.policy \
        build/rules/contrib_java.policy \
        build/rules/contrib_python.policy \
        build/rules/contrib_restricted.policy \
        build/rules/contrib_deps.policy \
        build/rules/library_deps.policy \
        build/rules/library_deprecated.policy \
        build/rules/passport.policy \
        build/rules/yt.policy \
        build/rules/catboost.policy \
        build/rules/maps/maps.policy \
        build/rules/yp.policy \
        build/rules/alice.policy \
        build/rules/kikimr.policy \
        build/rules/market.policy \
        build/rules/yadi.policy
}

CHECK_INTERNAL=yes
INTERNAL_EXCEPTIONS=\
    contrib \
    search/begemot/rules/internal \
    mssngr/router/lib/protos/internal \
    mssngr/router/lib/registry/method/internal \
    cv/imageproc/ocr/api/mobile_c/internal \
    kernel/ugc/security/lib/internal \
    maps/mobile/libs/mapkit/internal

_BLACKLISTS=
when ($DISABLE_BLACKLIST == "yes" || $OPENSOURCE == "yes") {
    _BLACKLISTS=
}
elsewhen ($CUSTOM_BLACKLIST != "") {
    _BLACKLISTS=$CUSTOM_BLACKLIST
}
elsewhen ($AUTOCHECK == "yes" || $TEST_BLACKLIST_AUTOCHECK == "yes") {
    _BLACKLISTS+=build/rules/autocheck.blacklist
}
otherwise {
    _BLACKLISTS+=build/rules/local.blacklist
}

_ISOLATED_PROJECTS=
when ($DISABLE_ISOLATED_PROJECTS == "yes" || $OPENSOURCE == "yes") {
    _ISOLATED_PROJECTS=
}
elsewhen ($CUSTOM_ISOLATED_PROJECTS != "") {
    _ISOLATED_PROJECTS=$CUSTOM_ISOLATED_PROJECTS
}
elsewhen ($AUTOCHECK == "yes" || $TEST_ISOLATED_PROJECTS_AUTOCHECK == "yes") {
## The block below is parsed by CI machinery to limit CI checks
## Please contact CI on any modification! Do not alter the block structure!
## - Keep one file per line with first line without file
## - Keep comments text and layout intact
## - Do not move or rename this file without CI team aggreement
## BEGIN AUTOCHECK ISOLATED PROJECTS -- DO NOT EDIT COMMENT AND KEEP THE CODE STRUCTURE!
    _ISOLATED_PROJECTS=\
        build/rules/autocheck.isolated_projects \
        build/rules/taxi_backend_py3/taxi_backend_py3.isolated_projects \
        build/rules/taxi_uservices/taxi_uservices.isolated_projects
## END AUTOCHECK ISOLATED PROJECTS -- DO NOT EDIT COMMENT AND KEEP THE CODE STRUCTURE!
}
otherwise {
    _ISOLATED_PROJECTS+=build/rules/local.isolated_projects
}