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

(Possible) Memory Leaks #248

Open
MichaelDarkMostIo opened this issue May 7, 2024 · 2 comments
Open

(Possible) Memory Leaks #248

MichaelDarkMostIo opened this issue May 7, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@MichaelDarkMostIo
Copy link

It looks like custom_lint_client process is consuming more RAM than the whole analysis_server.

Screenshot 2024-05-07 at 13 58 51

Not sure what kind of related info I should provide for the issue, but it must be either a lack of optimization or memory leaks problem.

@MichaelDarkMostIo MichaelDarkMostIo added the bug Something isn't working label May 7, 2024
@EArminjon
Copy link

EArminjon commented May 17, 2024

Got same observation, didn't know why but when enabling this plugin i got a lot heavy CPU usage.

include: package:lint/analysis_options.yaml

custom_lint:
  enable_all_lint_rules: false
  rules:
    - use_design_system_item:
      AppExpansionPanel:
        - instead_of: ExpansionPanelList
          from_package: flutter

analyzer:
  plugins:
    - custom_lint
  errors:
    missing_required_param: error
    missing_return: error
    todo: ignore
    parameter_assignments: warning
    invalid_annotation_target: ignore
    unnecessary_constructor_name: true
  exclude:
    - lib/**/generated/**
    - test/**/generated/**
    - forked/
    - test/tmp/**

linter:
  rules:
    always_put_control_body_on_new_line: false
    always_put_required_named_parameters_first: true
    always_specify_types: true
    always_use_package_imports: false
    avoid_equals_and_hash_code_on_mutable_classes: true
    avoid_redundant_argument_values: false
    avoid_relative_lib_imports: false
    avoid_renaming_method_parameters: true
    avoid_returning_this: true
    constant_identifier_names: false
    flutter_style_todos: true
    no_default_cases: true
    no_wildcard_variable_uses: false
    overridden_fields: false
    prefer_asserts_with_message: true
    prefer_const_constructors: true
    prefer_const_constructors_in_immutables: true
    prefer_const_declarations: true
    prefer_const_literals_to_create_immutables: true
    prefer_constructors_over_static_methods: true
    prefer_relative_imports: true
    prefer_spread_collections: true
    prefer_single_quotes: true
    sort_child_properties_last: true
    sort_pub_dependencies: false
    sized_box_for_whitespace: true
    sized_box_shrink_expand: true
    unawaited_futures: true
    unnecessary_const: true
    use_colored_box: true
    use_decorated_box: true
    use_enums: true
    use_key_in_widget_constructors: true
    use_named_constants: true
    use_super_parameters: true
    use_to_and_as_if_applicable: true

@victor-tinoco
Copy link

I'm running the same as well. This consumes the CPU and slows my laptop down in a way I'm kinda obligated to open the Activity Monitor and just kill it all the time.

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
Development

No branches or pull requests

4 participants