Skip to content

Linter rules not working #37106

@ghost

Description

analysis_options.yaml:

linter:
  rules:
    - empty_statements
    - avoid_empty_else

example.dart:

void main(){
  if(1+2==3){}else{}
}

This shows no warnings or errors.

I did not test other rules but above rules are the ones that are not working.

Dart sdk: Dart VM version: 2.3.0 (Fri May 3 10:32:31 2019 +0200) on "linux_x64"

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