bazel-contrib / bazel-contrib/buildtools

Is it possible to combine warnings="all" with - directive

Open
#1,187 3 comments 1 reaction 0 assignees View on GitHub
P2
Dominant language
Go
Stars
1.2k
Forks
471
Avg merge
2d 22h
Merged PRs (30d)
13

Description

I would like to enable almost all the warnings, except for native-cc and native-java (it's unclear that those warnings are valid given https://github.com/bazelbuild/bazel/issues/8746#issuecomment-704209400)

It looks like it's not possible to start with the `all` list and then add plus/minus operators, only from the `default` list (by _only_ supplying +/- directives). Is there an easy way to accomplish what I'm trying to do, or any appetite to make this possible?

Contributor guide

Open the contributing guide

Research direction

Start by tracing how the warnings="all" setting and +/- directives are parsed and combined. Confirm whether exclusions for native-cc and native-java can be represented, and consider the issue complete when the requested combination is supported and its behavior is covered by the project’s existing validation or warning tests.

Written by the indexing model from the issue text.

Assessment

Domain
build-system, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.