Skip to content

Bots are not analyzing code in strong mode. #28013

Closed
@stereotype441

Description

@stereotype441

test.py currently runs all analyzer tests from the root directory of the SDK repo. Analyzer CLI looks for the .analysis_options file in the directory analyzer was run from (not in the directory of the file being analyzed). Since there is no .analysis_options file at the root of the SDK repo, this means that all analyzer tests run by the analyzer bot are run in spec mode, even when analyzing a package whose .analysis_options file indicates that it should be analyzed in strong mode.

Note: a clumsy workaround is to put the string // SharedOptions=--strong at the top of the test file. This is not a great workaround, though, since we would have to remember to do it every time a test file is added.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2A bug or feature request we're likely to work onarea-testCross-cutting test issues (use area- labels for specific failures; not used for package:test).legacy-area-analyzerUse area-devexp instead.type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions