Skip to content

Excluding files from static analysis doesn't appear to stop errors from being generated in those files #28754

@DanTup

Description

@DanTup

I don't know if this is expected; but I'm trying out the built_value package hoping to get JSON support. I found the generated code didn't seem to "compile" in strong mode (@davidmorgan - is this expected? I can see commits suggesting strong mode should work; there is generated code like var key;).

I tried adding the generated file to the exclude list in analysis_options.yaml but even after restarting the Analyzer it still reports errors on in those files.

Excluded files

I don't know if this is expected (nor do I know if the generated code is intended to be strong-mode compliant) but I figured I should ask!

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2A bug or feature request we're likely to work onlegacy-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