Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
MartinAKovachev opened this issue Jan 22, 2025 · 1 comment · Fixed by #304
Closed

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

MartinAKovachev opened this issue Jan 22, 2025 · 1 comment · Fixed by #304
Assignees
Labels
bug Something isn't working

Comments

@MartinAKovachev
Copy link

MartinAKovachev commented Jan 22, 2025

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

@MartinAKovachev MartinAKovachev added the bug Something isn't working label Jan 22, 2025
@MartinAKovachev
Copy link
Author

There is a similar bug reported some time ago #191, but the issue still persists.

@MartinAKovachev MartinAKovachev changed the title IntelliJ doesn't detect custom_lint IntelliJ and Android Studio don't detect custom_lint in analysis_options.yaml Jan 22, 2025
@MartinAKovachev MartinAKovachev changed the title IntelliJ and Android Studio don't detect custom_lint in analysis_options.yaml IntelliJ and Android Studio don't detect custom_lint Jan 22, 2025
@MartinAKovachev MartinAKovachev changed the title IntelliJ and Android Studio don't detect custom_lint IntelliJ and Android Studio don't show custom_lint Jan 22, 2025
@MartinAKovachev MartinAKovachev changed the title IntelliJ and Android Studio don't show custom_lint IntelliJ and Android Studio don't show custom lints Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants