Skip to content

IntelliJ and Android Studio don't show custom lints #307

Closed
@MartinAKovachev

Description

@MartinAKovachev

Describe the bug
When importing a - custom_lint in the analysis_options.yaml file, IntelliJ doesn't show any INFO, WARNING or ERROR message from custom_lint in Dart Analysis tab nor in the file, in which the issue occurs.

After running dart run custom_lint it shows the ERROR in the terminal, but it's really hard to spot an issue during development.

!The same project is being opened in Visual Studio Code and it shows the ERROR in the file. !

include: package:flutter_lints/flutter.yaml

analyzer:
  plugins:
    - custom_lint

custom_lint:
  rules:
    - layer_dependency_rule: true

linter:
  rules:
    avoid_print: true
    prefer_single_quotes: true
    always_use_package_imports: true
    annotate_overrides: true
    use_super_parameters: true
    always_declare_return_types: true

# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options

flutter: 3.27.2
dart: 3.6.1
custom_lint: ^0.7.1
analyzer: ^7.1.0
analyzer_plugin: ^0.12.0
custom_lint_builder: ^0.7.1

To Reproduce

Open a Flutter project in IntelliJ and check if any custom_lints are detected.

Expected behavior
custom_lints are shown in the IntelliJ Dart Analysis tab and in the file, in which the issue occurs.

@rrousselGit @Rexios80 @matthiasn

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions