blob: 743aeaa17ead0bbad987aae08bb7afd9e0db3327 [file] [log] [blame] [edit]
# Copyright 2023 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
version: "2"
# https://golangci-lint.run/usage/configuration/#linters-configuration
linters:
enable:
- copyloopvar
- errorlint
- gomodguard
- intrange
- unparam
disable:
# There are also many unchecked errors.
- errcheck
# This is blocking https://chromium-review.googlesource.com/c/infra/infra/+/6799576, re-enable it later.
- noctx
settings:
# TODO(gregorynisbet): Use default config here.
errorlint:
# Moving %v or %s to %w is a breaking API change.
errorf: false
# type switches on errors are okay (for now)
asserts: false
# == is okay on errors (for now)
comparison: false
# prevent direct dependencies on bad modules.
# Write this stanza in JSON syntax, it's more readable anyway.
gomodguard: {
"blocked": {
"modules": [
{
"github.com/smartystreets/goconvey": {
"reason": "see go/noconvey-psa for more information",
"recommendations": ["go.chromium.org/luci/common/testing/ftt"]
},
"github.com/stretchr/testify/assert": {
"reason": "use go.chromium.com/luci/common/testing/truth/assert",
"recommendations": ["go.chromium.org/luci/common/testing/truth/assert"]
}
}
]
}
}
staticcheck:
checks:
- all
- "-ST1000"
- "-ST1003"
- "-ST1016"
- "-ST1020"
- "-ST1021"
- "-ST1022"
# Aboves are default set of checks in golangci-lint.
# Belows are additional checks we currently need to disable in infra repo.
# https://staticcheck.dev/docs/checks#QF1003
# Convert if/else-if chain to tagged switch
- "-QF1003"
# https://staticcheck.dev/docs/checks#QF1008
# Omit embedded fields from selector expression
- "-QF1008"
# https://staticcheck.dev/docs/checks#SA1019
# Using a deprecated function, variable, constant or field
- "-SA1019"
# https://staticcheck.dev/docs/checks#SA4006
# A value assigned to a variable is never read before being overwritten. Forgotten error check or dead code?
- "-SA4006"
# https://staticcheck.dev/docs/checks#ST1005
# Incorrectly formatted error string
- "-ST1005"
exclusions:
# Independently from option `exclude` we use default exclude patterns,
# it can be disabled by this option. To list all
# excluded by default patterns execute `golangci-lint run --help`.
# The old `exclude-use-default: false` setting implied manual control, reflected here.
rules:
- path: (.+)\.go$
# Exclude specific error checking patterns
text: Error return value of .((os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*printf?|os\.(Un)?Setenv). is not checked
# https://staticcheck.dev/docs/checks#QF1001
# could apply De Morgan's law
- path: "^(cros/cmd/ctpv2-filters/cros-ddd-filter/ttcp/libs/bitarray/bitarray.go|cros/cmd/kron/subcommands/configs.go)$"
text: "^QF1001: "
linters:
- staticcheck
# https://staticcheck.dev/docs/checks#QF1006
# Lift if + break into loop condition
- path: "^(\
cros/cmd/cft/dut/cros-servod/servod/proxy.go|\
cros/cmd/labpack/main.go|\
)$"
text: "^QF1006: "
linters:
- staticcheck
# https://staticcheck.dev/docs/checks#QF1007
# Merge conditional assignment into variable declaration
- path: "^(\
appengine/tree-status/main.go|\
cros/cmd/cft/dut/cros-dut/cli/dutserver.go|\
cros/cmd/common_lib/commonbuilders/ctp2_builder_helper.go|\
cros/cmd/ctpv2/internal/commands/generate_trv2_requests_helper.go|\
cros/cmd/provision/cros-fw-provision/service/firmwareservice.go|\
)$"
text: "^QF1007: "
linters:
- staticcheck
# https://staticcheck.dev/docs/checks#QF1012
# Use fmt.Fprintf(x, ...) instead of x.Write(fmt.Sprintf(...))
- path: "^(\
appengine/sheriff-o-matic/som/client/test/fakeserver.go|\
cros/cmd/caching-backend/downloader/main_test.go|\
cros/cmd/cft/common/portdiscovery/portdiscovery.go|\
cros/cmd/cft/execution/cros-test/cli/testexecserver_rpc.go|\
cros/cmd/common_lib/common/file.go|\
cros/cmd/cros_test_runner/internal/commands/parse_env_info_cmd.go|\
cros/cmd/ctpv2-filters/common/streaming/server.go|\
cros/cmd/ctpv2-filters/cros-ddd-filter/ttcp/libs/pprinter/json/json.go|\
cros/cmd/ctpv2/internal/commands/summarize_cmd.go|\
cros/recovery/internal/execs/cros/cros_logs_execs.go|\
cros/satlab/satlabrpcserver/models/ccd_session.go|\
cros/satlab/satlabrpcserver/utils/utils_test.go|\
experimental/buildwheel/build_wheels.go|\
unifiedfleet/app/controller/helper.go|\
)$"
text: "^QF1012: "
linters:
- staticcheck
# https://staticcheck.dev/docs/checks#S1000
# Use plain channel send or receive instead of single-case select
- path: "^(\
cmd/cros_test_platform/luciexe/execute/execute_test.go|\
cros/cmd/cft/dut/cros-dut/dutssh/unix_socket_bridge.go|\
)$"
text: "^S1000: "
# https://staticcheck.dev/docs/checks#S1038
# Unnecessarily complex way of printing formatted string
- path: "^(\
cmd/crosfleet/internal/meta/version.go|\
cmd/skylab/internal/cmd/meta/version.go|\
cros/cmd/caching-backend/downloader/main.go|\
cros/cmd/ctpv2-filters/cros-ddd-filter/main.go|\
cros/cmd/ctpv2-filters/cros-ddd-filter/ttcp/libs/solver/solver.go|\
cros/cmd/ctpv2-filters/provision-filter/main.go|\
cros/internal/chromeosversion/chromeosversion.go|\
cros/satlab/common/satlabcommands/satlab_commands_test.go|\
cros/satlab/common/utils/expect/expect.go|\
cros/satlab/satlabrpcserver/services/rpc_services/rpc_services_test.go|\
)$"
text: "^S1038: "
linters:
- staticcheck
# https://staticcheck.dev/docs/checks#SA1006
# Printf with dynamic first argument and no further arguments
- path: "^(\
cros/cmd/cft/common/portdiscovery/portdiscovery_test.go|\
cros/cmd/cft/common/portdiscovery/portdiscovery_unix_test.go|\
cros/cmd/cft/publish/commonutils/libs/rdblib/rdb_lib.go|\
cros/cmd/ctpv2-filters/common/streaming/auth.go|\
cros/satlab/common/dut/initiate_support.go|\
)$"
text: "^SA1006: "
linters:
- staticcheck
# https://staticcheck.dev/docs/checks#SA1029
# Inappropriate key in call to context.WithValue
- path: "^(\
appengine/cr-rev/backend/pubsub/receiver.go|\
chromium/compilator_watcher/main_test.go|\
cmd/crosfleet/internal/run/testcommon_test.go|\
cros/karte/internal/identifiers/idstrategy_test.go|\
isolation/nsjail_wrapper/nsjail_test.go|\
)$"
text: "^SA1029: "
linters:
- staticcheck
# https://staticcheck.dev/docs/checks#SA4010
# The result of append will never be observed anywhere
- path: "^(\
appengine/sheriff-o-matic/som/model/model.go|\
chromeperf/pinpoint/cli/diff.go|\
cmd/package_index/proto.go|\
cros/cmd/ctpv2-filters/test-finder/service/service.go|\
cros/cmd/k8s-management/liveness-checker/main_test.go|\
tools/relnotes/relnotes.go|\
)$"
text: "^SA4010: "
linters:
- staticcheck
# https://staticcheck.dev/docs/checks#SA5001
# Deferring Close before checking for a possible error
- path: "^(\
cros/cmd/caching-backend/downloader/main_test.go|\
cros/cmd/common_lib/common/server.go|\
cros/cmd/container_uprev/internal/config.go|\
cros/cmd/upload_debug_symbols/builder.go|\
tools/vpython/cmd/vpython3/main_test.go|\
)$"
text: "^SA5001: "
linters:
- staticcheck
# https://staticcheck.dev/docs/checks#SA9001
# defers in this range loop won't run unless the channel gets closed
- path: "^(cros/internal/branch/helper.go|qscheduler/service/app/state/batchrunner.go)$"
text: "^SA9001: "
linters:
- staticcheck
# https://staticcheck.dev/docs/checks#SA9003
# Empty body in an if or else branch
- path: "^(\
chromeperf/pinpoint/cli/config.go|\
cmd/vmlab/internal/cmd/leasecmd.go|\
cros/cmd/phosphorus/internal/autotest/atutil/hostinfo_test.go|\
cros/cmd/phosphorus/internal/tls/background.go|\
cros/internal/buildplan/buildplan.go|\
cros/satlab/common/dut/add.go|\
cros/satlab/common/dut/update.go|\
cros/cmd/ctpv2-filters/cros-ddd-filter/ttcp/libs/inventory/croslab/fleetInventory.go|\
experimental/golangbuild/buildspec.go|\
)$"
text: "^SA9003: "
linters:
- staticcheck
# https://staticcheck.dev/docs/checks#ST1011
# Poorly chosen name for variable of type time.Duration
- path: "^(\
appengine/test-results/frontend/handlers.go|\
chromium/compilator_watcher/main.go|\
)$"
text: "^ST1011: "
linters:
- staticcheck
# https://staticcheck.dev/docs/checks#ST1012
# Error var should have name of the form ErrFoo
- path: "^(\
cros/satlab/common/utils/errors/errors.go|\
cros/satlab/satlabrpcserver/utils/errors.go|\
)$"
text: "^ST1012: "
linters:
- staticcheck
- linters:
- unused
# Ignore `_kind` field in struct for datastore.
text: "field _kind is unused"
# See https://chromium-review.googlesource.com/c/infra/infra/+/6490573 and https://chromium-review.googlesource.com/c/infra/infra/+/6284947 for details.
# golangbuild intentionally does not wrap certain errors.
# TODO(gregorynisbet): Drop this stanza when go1.23 support is dropped + 1 month-ish.
- linters:
- errorlint
path: ^experimental/golangbuild
# TODO(gregorynisbet): Reduce this exclude by cleaning up instances where the context should be passed.
- linters:
- noctx
path: "^(\
appengine/sheriff-o-matic/som/client/client.go|\
appengine/sheriff-o-matic/som/client/crrev.go|\
appengine/sheriff-o-matic/som/client/gitiles.go|\
appengine/test-results/frontend/revision.go|\
appengine/test-results/frontend/revision_test.go|\
chromeperf/pinpoint/server/server.go|\
cmd/cloudbuildhelper/registry/auth.go|\
cmd/cloudbuildhelper/registry/registry.go|\
cmd/drone-agent/internal/bot/bot.go|\
cmd/ninja_log_trace_viewer/ninja_log_trace_viewer.go|\
cros/cmd/caching-backend/downloader/main_test.go|\
cros/cmd/cft/dut/cros-servod/xmlrpc/xmlrpc.go|\
cros/cmd/cft/execution/cros-test/internal/common/ab_dynamic_downloader.go|\
cros/cmd/common_lib/android_api/android_builds.go|\
cros/cmd/common_lib/ants/gensupport/resumable.go|\
cros/cmd/common_lib/common/file.go|\
cros/cmd/common_lib/common/scheduke_client.go|\
cros/cmd/cros-tool-runner/internal/libsserver/running_lib.go|\
cros/cmd/k8s-management/app-roller/main.go|\
cros/cmd/kron/common/util.go|\
cros/cmd/phosphorus/internal/cmd/fetch-crashes.go|\
cros/cmd/provision/common-utils/cache/client.go|\
cros/cmd/upload_debug_symbols/builder.go|\
cros/hwid/hwid.go|\
cros/internal/gerrit/client.go|\
cros/karte/cli/checkserver.go|\
cros/recovery/internal/components/cros/amt/client.go|\
cros/recovery/internal/localtlw/xmlrpc/xmlrpc.go|\
cros/servo/xmlrpc/xmlrpc.go|\
cros/tlslib/internal/nebraska/nebraska.go|\
fleetconsole/internal/commands/ping-ui.go|\
monorail/endpoints.go|\
tools/vpython/legacy/vpython2.7/luci/venv/venv_resources_test.go|\
tricium/functions/metrics/histograms_check.go|\
)$"
- linters:
- govet
path: "^(\
appengine/rotation-proxy/rotation_proxy_server.go|\
cmd/bqexport/test_data/main.go|\
cros/cmd/ctpv2/internal/commands/middle_out_cmd.go|\
cros/lib/buildbucket/properties_test.go|\
libs/fleet/boxster/swarming/convert_test.go|\
monorail/endpoints_test.go|\
)$"
- linters:
- ineffassign
path: "^(\
chromeperf/pinpoint/cli/analyze.go|\
chromeperf/pinpoint/cli/generate_batch_summary.go|\
cmd/cros_test_platform/internal/execution/testrunner/service/client.go|\
cmd/gaedeploy/module/module.go|\
cmd/mac_toolchain/package.go|\
cmd/package_index/proto.go|\
cmd/shivas/internal/experimental/verify_bot_status.go|\
cmd/shivas/internal/queen/cmds/queen-push-duts.go|\
cmd/shivas/internal/ufs/subcmds/peripherals/wifi.go|\
cmd/shivas/internal/ufs/subcmds/vm/get_vm.go|\
cr_builder_health/src_config.go|\
cros/cmd/cft/dut/cros-servod/xmlrpc/xmlrpc.go|\
cros/cmd/common_lib/common/filters.go|\
cros/cmd/common_lib/commonexecutors/container_manager_executor.go|\
cros/cmd/common_lib/secretmanager/secretmanager.go|\
cros/cmd/conductor/collect_state.go|\
cros/cmd/container_uprev/executions/build_execution.go|\
cros/cmd/container_uprev/executions/manual_execution.go|\
cros/cmd/container_uprev/internal/docker.go|\
cros/cmd/cros_test_runner/analytics/bigquery.go|\
cros/cmd/cros_test_runner/internal/commands/build_input_validation_cmd.go|\
cros/cmd/cros_test_runner/internal/commands/parse_args_cmd.go|\
cros/cmd/cros_test_runner/internal/commands/parse_dut_topology_cmd.go|\
cros/cmd/cros_test_runner/internal/commands/process_results_cmd.go|\
cros/cmd/cros_test_runner/internal/executors/inv_service_executor.go|\
cros/cmd/cros-tool-runner/internal/docker/docker.go|\
cros/cmd/ctpv2-filters/cros-ddd-filter/ttcp/libs/datasets/hwid/db/descriptor_parser.go|\
cros/cmd/ctpv2-filters/cros-ddd-filter/ttcp/libs/solver/categoryFlattener.go|\
cros/cmd/ctpv2-filters/cros-ddd-filter/ttcp/ttcp_classes_category_generator/main.go|\
cros/cmd/lucifer/internal/abortsock/abortsock_test.go|\
cros/cmd/provision/cros-fw-provision/service/firmwareservice.go|\
cros/cmd/upload_debug_symbols/builder.go|\
cros/internal/branch/helper.go|\
cros/internal/branch/parser_test.go|\
cros/internal/gs/gs.go|\
cros/internal/repo/manifest_test.go|\
cros/internal/repoharness/repoharness_test.go|\
cros/recovery/karte/karte.go|\
cros/satlab/common/services/build_service/build_service_impl.go|\
cros/satlab/satlabrpcserver/client/main.go|\
cros/satlab/satlabrpcserver/platform/cpu_temperature/cpu_temperature_test.go|\
cros/satlab/satlabrpcserver/services/rpc_services/rpc_services.go|\
cros/satlab/satlabrpcserver/utils/sized_queue/sized_queue_test.go|\
cros/satlab/satlabrpcserver/utils/utils_test.go|\
cros/support/bq-insert/main.go|\
experimental/crderiveinputs/main.go|\
experimental/crderiveinputs/oracle_pin.go|\
experimental/crderiveinputs/vpython.go|\
experimental/golangbuild/fetch.go|\
experimental/golangbuild/steps.go|\
experimental/golangbuild/testmode.go|\
qscheduler/service/app/state/nodestore/nodestore_test.go|\
rts/cmd/rts-chromium/select.go|\
rts/cmd/rts-ml-chromium/select.go|\
rts/internal/chromium/test_files_test.go|\
tools/cloudtail/chan.go|\
tools/kitchen/cook.go|\
tools/recipe_bundler/cmd_bundle.go|\
tools/vpython/legacy/vpython2.7/luci/application/probe.go|\
unifiedfleet/app/dumper/nlyte_bq_sync.go|\
)$"
- linters:
- unparam
path: "^(\
appengine/chromefleetanalytics/cmd/eventdumper.go|\
appengine/crosskylabadmin/gaev2/adminclient/cmds/deletestableversion.go|\
appengine/crosskylabadmin/gaev2/adminclient/cmds/getdevice.go|\
appengine/crosskylabadmin/gaev2/adminclient/cmds/getmachinelse.go|\
appengine/crosskylabadmin/gaev2/adminclient/cmds/setstableversion.go|\
appengine/crosskylabadmin/internal/app/frontend/push_bots_for_admin_tasks.go|\
appengine/poros/api/service/assetHandler_test.go|\
appengine/rietveld-static/gentasks/cursor.go|\
appengine/rietveld-static/gentasks/issue_private_cache.go|\
appengine/sheriff-o-matic/som/analyzer/bigquery_analyzer.go|\
appengine/sheriff-o-matic/som/client/simpleclient.go|\
appengine/sheriff-o-matic/som/handler/admin.go|\
appengine/sheriff-o-matic/som/handler/analyze.go|\
chromeperf/pinpoint/cli/analyze.go|\
chromeperf/pinpoint/cli/artifacts.go|\
chromeperf/pinpoint/cli/experiment_telemetry.go|\
chromeperf/pinpoint/cli/job_commands.go|\
chromeperf/pinpoint/cli/presets.go|\
chromium/bootstrapper/clients/fakes/gerrit/gerrit_test.go|\
chromium/bootstrapper/clients/fakes/gitiles/gitiles_test.go|\
chromium/compilator_watcher/main.go|\
cmd/bqupload/main.go|\
cmd/cloudbuildhelper/builder/step_gogaebundle.go|\
cmd/cloudbuildhelper/registry/registry.go|\
cmd/cros_test_platform/internal/autotest/testspec/parser.go|\
cmd/cros_test_platform/internal/cmd/enumerate.go|\
cmd/cros_test_platform/internal/cmd/skylab-execute.go|\
cmd/cros_test_platform/internal/execution/args/helpers_test.go|\
cmd/cros_test_platform/internal/execution/build_test.go|\
cmd/cros_test_platform/internal/execution/execution_test.go|\
cmd/cros_test_platform/internal/execution/suite_limits.go|\
cmd/cros_test_platform/internal/execution/testrunner/service/client_test.go|\
cmd/crosfleet/internal/dut/lease.go|\
cmd/crosfleet/internal/meta/update.go|\
cmd/crosfleet/internal/meta/version.go|\
cmd/crosfleet/internal/run/backfill.go|\
cmd/crosfleet/internal/run/suite.go|\
cmd/crosfleet/internal/vm/abandon.go|\
cmd/drone-agent/internal/agent/agent_test.go|\
cmd/drone-agent/main.go|\
cmd/drone-prober/main.go|\
cmd/gaedeploy/cache/untar.go|\
cmd/mac_toolchain/install.go|\
cmd/mac_toolchain/package_test.go|\
cmd/mallet/internal/cmd/meta/update.go|\
cmd/mallet/internal/cmd/meta/version.go|\
cmd/package_index/compdb.go|\
cmd/package_index/torque.go|\
cmd/package_index/utils.go|\
cmd/shivas/internal/experimental/analysis_model.go|\
cmd/shivas/internal/experimental/changelog.go|\
cmd/shivas/internal/experimental/check_dut_availability_difference.go|\
cmd/shivas/internal/experimental/import_os_nics.go|\
cmd/shivas/internal/experimental/nlyte.go|\
cmd/shivas/internal/experimental/repair_profile.go|\
cmd/shivas/internal/experimental/verify_bot_status.go|\
cmd/shivas/internal/meta/namespace.go|\
cmd/shivas/internal/meta/update.go|\
cmd/shivas/internal/meta/version.go|\
cmd/shivas/internal/queen/cmds/queen-inspect-drones.go|\
cmd/shivas/internal/queen/cmds/queen-inspect-duts.go|\
cmd/shivas/internal/queen/cmds/queen-push-duts.go|\
cmd/shivas/internal/ufs/subcmds/asset/add_asset.go|\
cmd/shivas/internal/ufs/subcmds/asset/update_asset.go|\
cmd/shivas/internal/ufs/subcmds/attacheddevicehost/add_attached_device_host.go|\
cmd/shivas/internal/ufs/subcmds/attacheddevicehost/update_attached_device_host.go|\
cmd/shivas/internal/ufs/subcmds/attacheddevicemachine/add_attached_device_machine.go|\
cmd/shivas/internal/ufs/subcmds/attacheddevicemachine/update_attached_device_machine.go|\
cmd/shivas/internal/ufs/subcmds/cachingservice/add_caching_service.go|\
cmd/shivas/internal/ufs/subcmds/cachingservice/update_caching_service.go|\
cmd/shivas/internal/ufs/subcmds/chromeplatform/add_chrome_platform.go|\
cmd/shivas/internal/ufs/subcmds/chromeplatform/update_chrome_platform.go|\
cmd/shivas/internal/ufs/subcmds/defaultwifi/add_default_wifi.go|\
cmd/shivas/internal/ufs/subcmds/defaultwifi/update_default_wifi.go|\
cmd/shivas/internal/ufs/subcmds/devboard/add_devboard_lse.go|\
cmd/shivas/internal/ufs/subcmds/devboard/add_devboard_machine.go|\
cmd/shivas/internal/ufs/subcmds/devboard/update_devboard_lse.go|\
cmd/shivas/internal/ufs/subcmds/devboard/update_devboard_machine.go|\
cmd/shivas/internal/ufs/subcmds/drac/add_drac.go|\
cmd/shivas/internal/ufs/subcmds/drac/update_drac.go|\
cmd/shivas/internal/ufs/subcmds/dut/add_dut.go|\
cmd/shivas/internal/ufs/subcmds/dut/update_dut_batch.go|\
cmd/shivas/internal/ufs/subcmds/dut/update_dut_state.go|\
cmd/shivas/internal/ufs/subcmds/host/add_host.go|\
cmd/shivas/internal/ufs/subcmds/host/update_host.go|\
cmd/shivas/internal/ufs/subcmds/kvm/add_kvm.go|\
cmd/shivas/internal/ufs/subcmds/kvm/update_kvm.go|\
cmd/shivas/internal/ufs/subcmds/labstation/add_labstation.go|\
cmd/shivas/internal/ufs/subcmds/labstation/update_labstation.go|\
cmd/shivas/internal/ufs/subcmds/lsedeployment/update_lse_deployment.go|\
cmd/shivas/internal/ufs/subcmds/machine/add_machine.go|\
cmd/shivas/internal/ufs/subcmds/machine/rename_machine.go|\
cmd/shivas/internal/ufs/subcmds/machine/update_machine.go|\
cmd/shivas/internal/ufs/subcmds/machineprototype/add_machine_prototype.go|\
cmd/shivas/internal/ufs/subcmds/machineprototype/update_machine_prototype.go|\
cmd/shivas/internal/ufs/subcmds/nic/add_nic.go|\
cmd/shivas/internal/ufs/subcmds/nic/rename_nic.go|\
cmd/shivas/internal/ufs/subcmds/nic/update_nic.go|\
cmd/shivas/internal/ufs/subcmds/peripherals/amt_manager.go|\
cmd/shivas/internal/ufs/subcmds/peripherals/audio_latency_toolkit.go|\
cmd/shivas/internal/ufs/subcmds/peripherals/bluetoothpeers.go|\
cmd/shivas/internal/ufs/subcmds/peripherals/chameleon.go|\
cmd/shivas/internal/ufs/subcmds/peripherals/hmr.go|\
cmd/shivas/internal/ufs/subcmds/peripherals/pasit_host.go|\
cmd/shivas/internal/ufs/subcmds/peripherals/wifi.go|\
cmd/shivas/internal/ufs/subcmds/rack/add_rack.go|\
cmd/shivas/internal/ufs/subcmds/rack/rename_rack.go|\
cmd/shivas/internal/ufs/subcmds/rack/update_rack.go|\
cmd/shivas/internal/ufs/subcmds/rackprototype/add_rack_prototype.go|\
cmd/shivas/internal/ufs/subcmds/rackprototype/update_rack_prototype.go|\
cmd/shivas/internal/ufs/subcmds/rpm/add_rpm.go|\
cmd/shivas/internal/ufs/subcmds/rpm/update_rpm.go|\
cmd/shivas/internal/ufs/subcmds/schedulingunit/update_scheduling_unit.go|\
cmd/shivas/internal/ufs/subcmds/static/get_states.go|\
cmd/shivas/internal/ufs/subcmds/static/get_zones.go|\
cmd/shivas/internal/ufs/subcmds/switches/add_switch.go|\
cmd/shivas/internal/ufs/subcmds/switches/rename_switch.go|\
cmd/shivas/internal/ufs/subcmds/switches/update_switch.go|\
cmd/shivas/internal/ufs/subcmds/vlan/add_vlan.go|\
cmd/shivas/internal/ufs/subcmds/vlan/update_vlan.go|\
cmd/shivas/internal/ufs/subcmds/vm/add_vm.go|\
cmd/shivas/internal/ufs/subcmds/vm/get_free_vm_slot.go|\
cmd/shivas/internal/ufs/subcmds/vm/update_vm.go|\
cmd/shivas/utils/output.go|\
cmd/shivas/utils/rename/generic_rename_cmd.go|\
cmd/shivas/utils/userinput.go|\
cmd/skylab/internal/cmd/internalcmds/stable-version.go|\
cmd/skylab/internal/cmd/meta/update.go|\
cmd/skylab/internal/cmd/meta/version.go|\
cmd/skylab/internal/cmd/tasks/audit.go|\
cmd/skylab/internal/cmd/tasks/backfill-request.go|\
cmd/skylab/internal/cmd/tasks/create-suite.go|\
cmd/skylab/internal/cmd/tasks/create-testplan.go|\
cmd/skylab/internal/cmd/tasks/release-duts.go|\
cmd/skylab/internal/cmd/tasks/repair.go|\
cmd/skylab/internal/cmd/tasks/verify.go|\
cmd/stable_version2/internal/cmd/meta/update.go|\
cmd/stable_version2/internal/cmd/meta/version.go|\
cmd/stable_version2/internal/cmd/validateconfig/querygs/querygs.go|\
cmd/stable_version2/internal/cmd/validateconfig/querygs/validate_fw_path.go|\
cmd/stable_version2/internal/cmd/validateconfig/validateconfig.go|\
cr_builder_health/main.go|\
cr_builder_health/src_config.go|\
cros/botsregulator/internal/regulator/regulator.go|\
cros/cmd/branch_util/branch_util_test.go|\
cros/cmd/branch_util/cli.go|\
cros/cmd/btpeer_manager/cmd/chameleond/preverification/cancel.go|\
cros/cmd/btpeer_manager/cmd/chameleond/preverification/start.go|\
cros/cmd/caching-backend/downloader/filesystem.go|\
cros/cmd/caching-backend/downloader/main.go|\
cros/cmd/cft/base-adb/internal/parser/cli_parse.go|\
cros/cmd/cft/bols_labstation/internal/parser/parser.go|\
cros/cmd/cft/bols_satlab/internal/parser/parser.go|\
cros/cmd/cft/common/portdiscovery/portdiscovery.go|\
cros/cmd/cft/cros-test-finder/test_finder/test_finder.go|\
cros/cmd/cft/dut/cros-dut/cli/dutserver.go|\
cros/cmd/cft/dut/cros-servod/cli/cli.go|\
cros/cmd/cft/dut/cros-servod/mock_servod_client/mock_servod_client.go|\
cros/cmd/cft/dut/cros-servod/servodserver/servodserver_cli.go|\
cros/cmd/cft/dut/cros-servod/servodserver/servolog.go|\
cros/cmd/cft/execution/cros-test/cli/cli.go|\
cros/cmd/cft/execution/cros-test/internal/common/ab_dynamic_downloader_test.go|\
cros/cmd/cft/execution/cros-test/internal/common/helpers.go|\
cros/cmd/cft/execution/cros-test/internal/common/tko_results.go|\
cros/cmd/cft/execution/cros-test/internal/driver/mobly_driver.go|\
cros/cmd/cft/execution/cros-test/internal/driver/tradefed_driver.go|\
cros/cmd/cft/execution/cros-test/internal/driver/tradefed_driver_test.go|\
cros/cmd/cft/execution/cros-test/internal/driver/tradefed_results.go|\
cros/cmd/cft/lsnexus/internal/server/service_test.go|\
cros/cmd/cft/post-test/post-process/main.go|\
cros/cmd/cft/provision/vm-provision/main.go|\
cros/cmd/cft/testing/lsnexus_testing/exec/servod.go|\
cros/cmd/common_lib/android_api/android_client.go|\
cros/cmd/common_lib/common/server.go|\
cros/cmd/common_lib/commonbuilders/ctp2_builder_test.go|\
cros/cmd/common_lib/commoncommands/container_manager_start_cmd.go|\
cros/cmd/common_lib/commoncommands/container_manager_stop_cmd.go|\
cros/cmd/common_lib/commoncommands/container_read_logs_cmd.go|\
cros/cmd/common_lib/commoncommands/container_start_cmd.go|\
cros/cmd/common_lib/commoncommands/gcloud_auth_cmd.go|\
cros/cmd/common_lib/commonexecutors/ctr_executor.go|\
cros/cmd/common_lib/containers/templated_container.go|\
cros/cmd/cros-tool-runner/internal/common/common.go|\
cros/cmd/cros-tool-runner/internal/docker/docker.go|\
cros/cmd/cros-tool-runner/internal/libsserver/running_lib.go|\
cros/cmd/cros-tool-runner/internal/tasks/postprocess.go|\
cros/cmd/cros-tool-runner/internal/tasks/preprocess.go|\
cros/cmd/cros-tool-runner/internal/tasks/provision.go|\
cros/cmd/cros-tool-runner/internal/tasks/testexec.go|\
cros/cmd/cros-tool-runner/internal/tasks/testfinder.go|\
cros/cmd/cros-tool-runner/internal/tasks/utils.go|\
cros/cmd/cros-tool-runner/internal/testexec/testexec.go|\
cros/cmd/cros-tool-runner/internal/v2/server/server.go|\
cros/cmd/cros_test_runner/internal/commands/android_companion_dut_service_start_cmd.go|\
cros/cmd/cros_test_runner/internal/commands/android_provision_install_cmd.go|\
cros/cmd/cros_test_runner/internal/commands/build_dut_topology_cmd.go|\
cros/cmd/cros_test_runner/internal/commands/cache_server_start_cmd.go|\
cros/cmd/cros_test_runner/internal/commands/cpcon_publish_service_start_cmd.go|\
cros/cmd/cros_test_runner/internal/commands/dut_service_start_cmd.go|\
cros/cmd/cros_test_runner/internal/commands/dutvm_cache_server_start_cmd.go|\
cros/cmd/cros_test_runner/internal/commands/fetch_container_metadata.go|\
cros/cmd/cros_test_runner/internal/commands/gcs_publish_service_start_cmd.go|\
cros/cmd/cros_test_runner/internal/commands/gcs_publish_upload_cmd.go|\
cros/cmd/cros_test_runner/internal/commands/generic_post_process_cmd.go|\
cros/cmd/cros_test_runner/internal/commands/generic_provision_cmd.go|\
cros/cmd/cros_test_runner/internal/commands/generic_publish_cmd.go|\
cros/cmd/cros_test_runner/internal/commands/generic_service_cmd.go|\
cros/cmd/cros_test_runner/internal/commands/generic_tests_cmd.go|\
cros/cmd/cros_test_runner/internal/commands/load_duttopology_cmd.go|\
cros/cmd/cros_test_runner/internal/commands/parse_args_cmd.go|\
cros/cmd/cros_test_runner/internal/commands/parse_dut_topology_cmd.go|\
cros/cmd/cros_test_runner/internal/commands/parse_env_info_cmd.go|\
cros/cmd/cros_test_runner/internal/commands/process_results_cmd.go|\
cros/cmd/cros_test_runner/internal/commands/provision_install_cmd.go|\
cros/cmd/cros_test_runner/internal/commands/rdb_publish_service_start_cmd.go|\
cros/cmd/cros_test_runner/internal/commands/rdb_publish_upload_cmd.go|\
cros/cmd/cros_test_runner/internal/commands/ssh_start_reverse_tunnel_cmd.go|\
cros/cmd/cros_test_runner/internal/commands/ssh_start_tunnel_cmd.go|\
cros/cmd/cros_test_runner/internal/commands/test_finder_execution_cmd.go|\
cros/cmd/cros_test_runner/internal/commands/tests_execution_cmd.go|\
cros/cmd/cros_test_runner/internal/commands/tko_publish_service_start_cmd.go|\
cros/cmd/cros_test_runner/internal/commands/tko_publish_upload_cmd.go|\
cros/cmd/cros_test_runner/internal/commands/update_container_images_locally_cmd.go|\
cros/cmd/cros_test_runner/internal/commands/update_dut_state_cmd.go|\
cros/cmd/cros_test_runner/internal/commands/vm_provision_lease_cmd.go|\
cros/cmd/cros_test_runner/internal/executors/android_provision_executor.go|\
cros/cmd/cros_test_runner/internal/executors/cros_test_executor.go|\
cros/cmd/cros_test_runner/internal/executors/cros_test_finder_executor.go|\
cros/cmd/cros_test_runner/internal/executors/cros_vm_provision_executor.go|\
cros/cmd/cros_test_runner/internal/executors/inv_service_executor.go|\
cros/cmd/cros_test_runner/internal/executors/ssh_tunnel_executor.go|\
cros/cmd/ctpv2-filters/al-provision-filter/dynamic.go|\
cros/cmd/ctpv2-filters/ash-chrome-provision-filter/dynamic.go|\
cros/cmd/ctpv2-filters/ash-chrome-provision-filter/dynamic_helper.go|\
cros/cmd/ctpv2-filters/autovm_test_shifter_filter/main.go|\
cros/cmd/ctpv2-filters/cros-ddd-filter/devscripts/devhelpers/prepare.go|\
cros/cmd/ctpv2-filters/cros-ddd-filter/ttcp/libs/solver/categoryFlattener.go|\
cros/cmd/ctpv2-filters/firmware-filter/dynamic.go|\
cros/cmd/ctpv2-filters/firmware-filter/dynamic_helper.go|\
cros/cmd/ctpv2-filters/foil-filter/dynamic.go|\
cros/cmd/ctpv2-filters/pre_process_filter/main.go|\
cros/cmd/ctpv2-filters/pre_process_filter/policies/passratepolicy.go|\
cros/cmd/ctpv2-filters/pre_process_filter/utils.go|\
cros/cmd/ctpv2-filters/test_finder_filter/main.go|\
cros/cmd/ctpv2-filters/use_flag_filter/main.go|\
cros/cmd/ctpv2/internal/commands/al_status_cleanup.go|\
cros/cmd/ctpv2/internal/commands/al_status_update_cmd.go|\
cros/cmd/ctpv2/internal/commands/filter_execution_cmd.go|\
cros/cmd/ctpv2/internal/commands/generate_trv2_requests_cmd.go|\
cros/cmd/ctpv2/internal/commands/generate_trv2_requests_helper.go|\
cros/cmd/ctpv2/internal/commands/middle_out_cmd.go|\
cros/cmd/ctpv2/internal/commands/middle_out_test.go|\
cros/cmd/ctpv2/internal/commands/prepare_filter_containers.go|\
cros/cmd/ctpv2/internal/commands/schedule_tasks.go|\
cros/cmd/ctpv2/internal/commands/summarize_cmd.go|\
cros/cmd/ctpv2/internal/commands/translate_request_cmd.go|\
cros/cmd/ctpv2/internal/commands/translate_v1_to_v2_cmd.go|\
cros/cmd/fleet-tlw/session_test.go|\
cros/cmd/fleet-tlw/tlw.go|\
cros/cmd/ipcpubsub/internal/cmd/setup.go|\
cros/cmd/ipcpubsub/internal/cmd/subscribe.go|\
cros/cmd/k8s-management/app-roller/main.go|\
cros/cmd/k8s-management/liveness-checker/main.go|\
cros/cmd/labpack/logger/logger_test.go|\
cros/cmd/labservice/internal/ufs/ufs.go|\
cros/cmd/lucifer/admintaskcmd.go|\
cros/cmd/lucifer/audittask.go|\
cros/cmd/lucifer/deploytask.go|\
cros/cmd/lucifer/metrics.go|\
cros/cmd/lucifer/testcmd_steps.go|\
cros/cmd/manifest_doctor/branch_local_manifest.go|\
cros/cmd/manifest_doctor/main.go|\
cros/cmd/paris-uploader/internal/cmds/upload.go|\
cros/cmd/paris/internal/tasks/print_config.go|\
cros/cmd/phosphorus/internal/autotest_status_parser/cmd/parse.go|\
cros/cmd/phosphorus/internal/cmd/fetch-crashes.go|\
cros/cmd/phosphorus/internal/cmd/prejob.go|\
cros/cmd/phosphorus/internal/cmd/run-test.go|\
cros/cmd/phosphorus/internal/cmd/upload-to-gs.go|\
cros/cmd/phosphorus/internal/cmd/upload-to-tko.go|\
cros/cmd/phosphorus/internal/parallels/provision.go|\
cros/cmd/phosphorus/internal/parallels/save.go|\
cros/cmd/phosphorus/internal/skylab_local_state/cmd/load.go|\
cros/cmd/prototype-tlw/cache.go|\
cros/cmd/provision/adb-logcat/main.go|\
cros/cmd/provision/ash-chrome-provision/service/ashchromeservice.go|\
cros/cmd/provision/common-utils/cross-over/setup_usb_state.go|\
cros/cmd/provision/common-utils/cross-over/utils.go|\
cros/cmd/provision/cros-fw-provision/service/common.go|\
cros/cmd/provision/cros-provision/state-machine/commands/check_install_needed.go|\
cros/cmd/provision/cros-provision/state-machine/commands/clear_tpm_command.go|\
cros/cmd/provision/foil-provision/executor/foil_service_executor.go|\
cros/cmd/provision/foil-provision/state-machine/commands/install.go|\
cros/cmd/provision/foil-provision/state-machine/install_state.go|\
cros/cmd/result_flow/internal/cmd/ctp.go|\
cros/cmd/result_flow/internal/cmd/publish.go|\
cros/cmd/result_flow/internal/cmd/test_runner.go|\
cros/cmd/result_flow/internal/transform/test_plan_run.go|\
cros/cmd/setup_project/setup_project.go|\
cros/cmd/try/try/chromiumos_sdk.go|\
cros/cmd/try/try/create_accessory_keys.go|\
cros/cmd/try/try/create_premp_keys.go|\
cros/cmd/try/try/retry.go|\
cros/cmd/upload_debug_symbols/builder.go|\
cros/cmd/upload_debug_symbols/main.go|\
cros/fleetcost/cmd/fleetcostserver/serverlib/serverlib.go|\
cros/fleetcost/internal/commands/batch_create_ci.go|\
cros/fleetcost/internal/commands/common.go|\
cros/fleetcost/internal/commands/create_cost_indicator.go|\
cros/fleetcost/internal/commands/get_cost_indicator.go|\
cros/fleetcost/internal/commands/ping_command.go|\
cros/fleetcost/internal/commands/ping_ufs_command.go|\
cros/fleetcost/internal/commands/update_cost_indicator.go|\
cros/fleetcost/internal/costserver/controller/cost_indicator.go|\
cros/internal/branch/manifest_repo.go|\
cros/internal/buildplan/buildplan.go|\
cros/internal/generator/generator.go|\
cros/internal/gerrit/client_fake.go|\
cros/internal/testplan/cli/coverage_rules_update.go|\
cros/internal/testplan/cli/dirmd_update.go|\
cros/karte/cli/checkserver.go|\
cros/karte/cli/createaction.go|\
cros/karte/cli/createobservation.go|\
cros/karte/cli/cron_persist_to_bigquery.go|\
cros/karte/cli/listactions.go|\
cros/karte/cli/listswarmingtasks.go|\
cros/karte/cli/persist_action_range.go|\
cros/karte/cli/persist_single_action.go|\
cros/karte/internal/filterexp/expression.go|\
cros/karte/internal/frontend/action_range_persister.go|\
cros/lab_inventory/datastore/repair_record_test.go|\
cros/recovery/internal/components/cros/cellular/modem.go|\
cros/recovery/internal/components/cros/cellular/sim.go|\
cros/recovery/internal/dutinfo/dutinfo.go|\
cros/recovery/internal/execs/amt/amt_execs.go|\
cros/recovery/internal/execs/cros/cros_execs.go|\
cros/recovery/internal/execs/cros/flex_execs.go|\
cros/recovery/internal/execs/human_motion_robot/human_motion_robot_execs_test.go|\
cros/recovery/internal/execs/servo/servo_logs_execs.go|\
cros/recovery/internal/execs/servo/servo_usbkey_execs.go|\
cros/recovery/internal/localtlw/io/io.go|\
cros/recovery/internal/localtlw/localinfo/local_dut_info.go|\
cros/recovery/internal/localtlw/ssh/config.go|\
cros/recovery/internal/tls/provision.go|\
cros/recovery/internal/tls/provision_state.go|\
cros/recovery/recovery.go|\
cros/recovery/version/ctx.go|\
cros/recovery/version/localfiles.go|\
cros/satlab/common/dut/initiate_support.go|\
cros/satlab/common/setup/setup.go|\
cros/satlab/common/utils/expect/expect.go|\
cros/satlab/satlab/internal/commands/box/update_satlab_cmd.go|\
cros/satlab/satlab/internal/commands/dns/get_dns_cmd.go|\
cros/satlab/satlab/internal/components/dut/add_dut_cmd.go|\
cros/satlab/satlab/internal/components/dut/update_dut_cmd.go|\
cros/satlab/satlab/internal/components/dut/update_dutstate_cmd.go|\
cros/satlab/satlab/internal/components/run/run_suite_cmd.go|\
cros/satlab/satlab/internal/meta/update.go|\
cros/satlab/satlab/internal/meta/version.go|\
cros/satlab/satlab/internal/servod/servod_container.go|\
cros/satlab/satlab/internal/servod/start_servod_cmd.go|\
cros/satlab/satlab/internal/settings/get_settings.go|\
cros/satlab/satlab/internal/settings/set_setting.go|\
cros/satlab/satlab/internal/stableversion/delete_stable_version.go|\
cros/satlab/satlab/internal/stableversion/get_stable_version.go|\
cros/satlab/satlab/internal/stableversion/set_stable_version.go|\
cros/satlab/satlab/internal/subcmds/setup.go|\
cros/satlab/satlab/internal/topology/add_topology_cmd.go|\
cros/satlab/satlab/internal/topology/delete_topology_cmd.go|\
cros/satlab/satlab/internal/topology/get_topology_cmd.go|\
cros/satlab/satlabrpcserver/services/bucket_services/bucket_services_test.go|\
cros/satlab/satlabrpcserver/services/dut_services/dut_services_impl.go|\
cros/satlab/satlabrpcserver/services/dut_services/dut_services_test.go|\
cros/satlab/satlabrpcserver/services/rpc_services/rpc_services.go|\
cros/servo/methods.go|\
cros/servo/servo_pd_console_commands.go|\
cros/servo/ssh/conn.go|\
cros/support/repo-log-trace/main.go|\
cros/tlslib/provision.go|\
cros/tlslib/provision_state.go|\
cros/tlslib/provision_state_lacros.go|\
device_manager/internal/controller/device.go|\
experimental/buildwheel/build_wheels.go|\
experimental/buildwheel/build_wheels_test.go|\
experimental/cipd_manifest_experiments/main.go|\
experimental/golangbuild/coordmode.go|\
experimental/golangbuild/fetch.go|\
experimental/golangbuild/main.go|\
experimental/pubsublistener/pubsublistener.go|\
fleet_automation_governor/main.go|\
fleetconsole/internal/commands/compare_devices.go|\
fleetconsole/internal/commands/get_device.go|\
fleetconsole/internal/commands/list_devices.go|\
fleetconsole/internal/commands/mock_update_android_devices.go|\
fleetconsole/internal/commands/ping-ui.go|\
fleetconsole/internal/commands/ping.go|\
fleetconsole/internal/commands/ping_autorepair.go|\
fleetconsole/internal/commands/ping_bigquery.go|\
fleetconsole/internal/commands/ping_device_manager.go|\
fleetconsole/internal/database/devicesdb/queries.go|\
isolation/nsjail_wrapper/nsjail_test.go|\
libs/fleet/buildbucket/buildbucket.go|\
libs/git/git.go|\
libs/lro/manager_test.go|\
libs/skylab/autotest/hostinfo/hostinfo_test.go|\
libs/skylab/swarming/swarming.go|\
monitoring/sysmon/cipd/cipd.go|\
monitoring/sysmon/system/system.go|\
monitoring/sysmon/system/temperature.go|\
qscheduler/qslib/scheduler/state.go|\
rts/cmd/rts-chromium/create_model.go|\
rts/cmd/rts-ml-chromium/create_filegraph.go|\
rts/cmd/rts-ml-chromium/create_model.go|\
rts/cmd/rts-ml-chromium/gen_training_data.go|\
tools/cloudtail/buffer.go|\
tools/dirmd/cli/cmd_migrate.go|\
tools/git/git_test.go|\
tools/kitchen/cook_test.go|\
tools/kitchen/update_build_test.go|\
tools/migrator/cmd/migrator/util.go|\
tools/migrator/internal/plugsupport/repo.go|\
tools/migrator/internal/plugsupport/scan.go|\
tools/pkgbuild/cmd/edge/application.go|\
tools/pkgbuild/pkg/stdenv/darwin.go|\
tools/relnotes/relnotes.go|\
tools/result_adapter/gtest.go|\
tools/result_adapter/gtest_json.go|\
tools/result_adapter/single.go|\
tools/vpython/legacy/vpython2.7/luci/application/application.go|\
tools/vpython/legacy/vpython2.7/luci/cipd/cipd.go|\
tools/vpython/legacy/vpython2.7/luci/python/interpreter.go|\
tools/vpython/legacy/vpython2.7/luci/venv/venv.go|\
tools/vpython/legacy/vpython2.7/luci/venv/venv_resources_test.go|\
tricium/functions/metrics/field_trial_check_test.go|\
tricium/functions/metrics/histograms_check.go|\
unifiedfleet/app/controller/bot_config_reader.go|\
unifiedfleet/app/controller/bot_config_reader_test.go|\
unifiedfleet/app/controller/caching_service.go|\
unifiedfleet/app/controller/defaultwifi.go|\
unifiedfleet/app/controller/device_labels.go|\
unifiedfleet/app/controller/dut.go|\
unifiedfleet/app/controller/fleet_tests_policy.go|\
unifiedfleet/app/controller/helper.go|\
unifiedfleet/app/controller/hwid_test.go|\
unifiedfleet/app/controller/labstation.go|\
unifiedfleet/app/controller/machine_lse.go|\
unifiedfleet/app/controller/machine_lse_deployment.go|\
unifiedfleet/app/controller/network_updater.go|\
unifiedfleet/app/controller/rack.go|\
unifiedfleet/app/controller/scheduling_unit.go|\
unifiedfleet/app/controller/state_updater.go|\
unifiedfleet/app/controller/tle_converter_test.go|\
unifiedfleet/app/controller/vlan.go|\
unifiedfleet/app/dumper/queen_test.go|\
unifiedfleet/app/dumper/utilization.go|\
unifiedfleet/app/external/device_config_test.go|\
unifiedfleet/app/frontend/registration_test.go|\
unifiedfleet/app/model/configuration/config_bundle.go|\
unifiedfleet/app/model/configuration/device_config.go|\
unifiedfleet/app/model/inventory/bot_maintenance_config.go|\
unifiedfleet/app/model/inventory/machine_lse.go|\
unifiedfleet/app/model/inventory/ownership.go|\
unifiedfleet/app/model/inventory/testing.go|\
unifiedfleet/app/model/inventory/vm.go|\
unifiedfleet/app/model/registration/machine.go|\
unifiedfleet/app/model/registration/machine_test.go|\
unifiedfleet/app/util/osutil/exporting_adapter.go|\
vm_leaser/internal/controller/controller.go|\
vm_leaser/internal/cron/cron.go|\
vm_leaser/internal/frontend/frontend.go|\
)$"
- linters:
- unused
path: "^(\
chromeperf/pinpoint/cli/analyze.go|\
chromeperf/pinpoint/cli/diff.go|\
chromium/bootstrapper/clients/fakes/gerrit/gerrit_test.go|\
cmd/cros_test_platform/internal/cmd/compute-backfill.go|\
cmd/cros_test_platform/internal/cmd/enumerate.go|\
cmd/cros_test_platform/internal/execution/args/generator.go|\
cmd/cros_test_platform/internal/execution/response/invocation.go|\
cmd/crosfleet/internal/run/testcommon_test.go|\
cmd/crosfleet/internal/run/testcommon.go|\
cmd/crosfleet/internal/vm/tunnel.go|\
cmd/drone-agent/main.go|\
cmd/mac_toolchain/install.go|\
cmd/mac_toolchain/package.go|\
cmd/mac_toolchain/plist.go|\
cmd/shivas/internal/experimental/check_dut_availability_difference.go|\
cmd/shivas/internal/ufs/subcmds/attacheddevicehost/update_attached_device_host.go|\
cmd/shivas/internal/ufs/subcmds/attacheddevicemachine/add_attached_device_machine.go|\
cmd/shivas/internal/ufs/subcmds/attacheddevicemachine/update_attached_device_machine.go|\
cmd/shivas/internal/ufs/subcmds/devboard/add_devboard_lse.go|\
cmd/shivas/internal/ufs/subcmds/devboard/add_devboard_machine.go|\
cmd/shivas/internal/ufs/subcmds/devboard/update_devboard_machine.go|\
cmd/shivas/internal/ufs/subcmds/dut/add_dut.go|\
cmd/shivas/internal/ufs/subcmds/host/update_host.go|\
cmd/shivas/internal/ufs/subcmds/labstation/add_labstation.go|\
cmd/shivas/utils/helper.go|\
cmd/shivas/utils/location.go|\
cmd/shivas/utils/userinput.go|\
cmd/skylab/internal/bb/bb.go|\
cmd/skylab/internal/cmd/internalcmds/wait-task.go|\
cmd/skylab/internal/cmd/meta/version_cipd.go|\
cmd/stable_version2/internal/cmd/validateconfig/querygs/querygs_test.go|\
cr_builder_health/main.go|\
cros/cmd/branch_util/branch_util_test.go|\
cros/cmd/branch_util/create.go|\
cros/cmd/caching-backend/conf-creator/build_configs.go|\
cros/cmd/cft/dut/cros-servod/ssh/config.go|\
cros/cmd/cft/dut/cros-servod/xmlrpc/xmlrpc.go|\
cros/cmd/cft/execution/cros-test/internal/common/ab_dynamic_downloader.go|\
cros/cmd/cft/generic/servertemplate/template.go|\
cros/cmd/cft/publish/servertemplate/template.go|\
cros/cmd/common_lib/commoncommands/container_start_cmd.go|\
cros/cmd/common-tls/main.go|\
cros/cmd/conductor/collect_test.go|\
cros/cmd/cros_test_runner/internal/configs/test_execution_configs.go|\
cros/cmd/cros_test_runner/internal/executors/cros_dutvm_executor_test.go|\
cros/cmd/cros-tool-runner/internal/docker/docker.go|\
cros/cmd/cros-tool-runner/internal/services/services.go|\
cros/cmd/cros-tool-runner/internal/services/utils.go|\
cros/cmd/cros-tool-runner/internal/tasks/provision.go|\
cros/cmd/cros-tool-runner/internal/tasks/testexec.go|\
cros/cmd/cros-tool-runner/internal/v2/commands/command.go|\
cros/cmd/cros-tool-runner/internal/v2/server/util_test.go|\
cros/cmd/ctpv2-filters/al-provision-filter/main.go|\
cros/cmd/ctpv2-filters/cros-ddd-filter/ttcp/advisor/main.go|\
cros/cmd/ctpv2-filters/cros-ddd-filter/ttcp/libs/datasets/hwid/db/descriptor.go|\
cros/cmd/ctpv2-filters/cros-ddd-filter/ttcp/libs/datasets/hwid/db/deviceproperties.go|\
cros/cmd/ctpv2-filters/cros-ddd-filter/ttcp/libs/datasets/hwid/decoder/decoder.go|\
cros/cmd/ctpv2-filters/cros-ddd-filter/ttcp/libs/solver/eqcNameGenerator.go|\
cros/cmd/ctpv2-filters/cros-ddd-filter/ttcp/libs/solver/validation.go|\
cros/cmd/ctpv2-filters/cros-ddd-filter/ttcp/test_client/main.go|\
cros/cmd/ctpv2-filters/cros-ddd-filter/ttcp/ttcp_classes_category_generator/main.go|\
cros/cmd/ctpv2/executions/build_execution.go|\
cros/cmd/ctpv2/internal/commands/middle_out_cmd.go|\
cros/cmd/fleet-tlw/ufs_test.go|\
cros/cmd/ipcpubsub/internal/cmd/common.go|\
cros/cmd/k8s-management/app-roller/main_test.go|\
cros/cmd/lucifer/audittask.go|\
cros/cmd/paris/internal/tasks/local_recovery.go|\
cros/cmd/phosphorus/internal/cmd/upload-to-gs.go|\
cros/cmd/phosphorus/internal/skylab_local_state/cmd/save.go|\
cros/cmd/provision/ash-chrome-provision/cli/cft-service-connect.go|\
cros/cmd/try/try/release.go|\
cros/internal/branch/helper.go|\
cros/internal/branch/manifest_repo.go|\
cros/internal/branch/parser.go|\
cros/internal/buildplan/buildplan.go|\
cros/internal/chromeosversion/chromeosversion.go|\
cros/internal/generator/test_pruner.go|\
cros/internal/repo/manifest.go|\
cros/internal/repoharness/repoharness_test.go|\
cros/internal/repoharness/repoharness.go|\
cros/internal/testutil/testutil_test.go|\
cros/karte/internal/frontend/frontend_test.go|\
cros/karte/internal/site/site.go|\
cros/lab_inventory/datastore/devices.go|\
cros/lab_inventory/deviceconfig/deviceconfig_test.go|\
cros/lab_inventory/deviceconfig/parser.go|\
cros/lab_inventory/utilization/utilization_test.go|\
cros/recovery/internal/components/mh/mh_env.go|\
cros/satlab/common/services/ufs/ufs_client.go|\
cros/satlab/satlab/internal/components/dut/utils.go|\
cros/satlab/satlab/internal/servod/start_servod_cmd_test.go|\
cros/satlab/satlab/internal/servod/start_servod_cmd.go|\
cros/satlab/satlab/internal/subcmds/is_satlab_remote_access.go|\
cros/satlab/satlabrpcserver/services/bucket_services/bucket_services_impl.go|\
device_manager/internal/frontend/frontend.go|\
experimental/crderiveinputs/args.go|\
experimental/importcounter/main.go|\
fleetconsole/internal/commands/ping_db.go|\
fleetconsole/internal/database/devicesdb/deviceDAO.go|\
libs/fleet/devicelabel/device_label_registration.go|\
libs/skylab/inventory/autotest/labels/basic.go|\
libs/skylab/inventory/autotest/labels/pools.go|\
libs/skylab/request/request.go|\
libs/skylab/worker/worker_test.go|\
libs/swarming/task_creator.go|\
qscheduler/cmd/qscheduler/internal/cmd/common.go|\
qscheduler/qslib/reconciler/reconciler_test.go|\
qscheduler/qslib/scheduler/scheduler_run.go|\
qscheduler/qslib/scheduler/state.go|\
qscheduler/service/app/state/metrics/metrics.go|\
rts/cmd/rts-ml-chromium/gen_training_data.go|\
rts/cmd/stable-test-exclusion/gen_ste_filters.go|\
tools/backuptogs/job.go|\
tools/cloudtail/parser.go|\
tools/kitchen/update_build_test.go|\
tools/kitchen/util.go|\
tools/relnotes/relnotes.go|\
tools/result_adapter/json.go|\
)$"
paths:
# Ignore files under third_party dir.
- ^third_party/.*\.go$
# https://golangci-lint.run/usage/configuration/#issues-configuration
issues:
# Maximum issues count per one linter. Set to 0 to disable. Default is 50.
max-issues-per-linter: 0
# Maximum count of issues with the same text. Set to 0 to disable. Default is 3.
max-same-issues: 0
# Make issues output unique by line.
# Default: true
uniq-by-line: false
formatters:
enable:
- gci
settings:
# https://golangci-lint.run/usage/formatters/#gci
gci:
# Section configuration to compare against.
# Section names are case-insensitive and may contain parameters in ().
# The default order of sections is `standard > default > custom > blank > dot`,
# If `custom-order` is `true`, it follows the order of `sections` option.
# Default: ["standard", "default"]
sections:
# Standard section: captures all standard packages.
- standard
# Default section: contains all imports that could not be matched to another section type.
- default
# Custom section: groups all imports with the specified Prefix.
- prefix(go.chromium.org)
# Custom section: groups all imports with the specified Prefix (local modules).
- localmodule
# Enable custom order of sections.
# If `true`, make the section order the same as the order of `sections`.
# Default: false
custom-order: true