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

Resolve warnings pointed out by dart analyzer #49

Closed
noriHanda opened this issue Mar 8, 2023 · 9 comments
Closed

Resolve warnings pointed out by dart analyzer #49

noriHanda opened this issue Mar 8, 2023 · 9 comments

Comments

@noriHanda
Copy link

Issue

Warnings are shown on pub.dev and points on this package are reduced because some easy-to-fix problems are yet to be fixed.

image

Resolving these problems would raise the score and fame of this package as deserved.

@RandalSchwartz
Copy link

I'm a bit concerned that this is the tip of the iceberg, seeing this:

include: package:lint/analysis_options.yaml

linter:
  rules:
    curly_braces_in_flow_control_structures: false
    omit_local_variable_types: false
    prefer_single_quotes: false
    prefer_double_quotes: false
    no_leading_underscores_for_local_identifiers: false
    no_runtimeType_toString: false
    avoid_multiple_declarations_per_line: false
    parameter_assignments: false
    avoid_dynamic_calls: false
    avoid_redundant_argument_values: false
    avoid_print: false
    always_use_package_imports: false
    avoid_positional_boolean_parameters: false
    prefer_const_literals_to_create_immutables: false
    prefer_interpolation_to_compose_strings: false
    avoid_function_literals_in_foreach_calls: false
    cast_nullable_to_non_nullable: false
    require_trailing_commas: false
    join_return_with_assignment: false
    unnecessary_parenthesis: false
    use_is_even_rather_than_modulo: false
    use_string_buffers: false

I'd strongly recommend looking at package:very_good_analysis, and turn off nothing, and see how close one can get to superclean.

@noriHanda
Copy link
Author

noriHanda commented Mar 8, 2023

Removing disabled lint rules uncovers 18 errors, 5 warnings, and 177 infos even after running dart fix --apply. I think this problem is critical.

@RandalSchwartz
Copy link

Has this had any movement. I just hesitantly recommended FIC again, and I'd like to have more confidence in this codebase.

If someone fixes this and gives you a PR, will you look at it?

@noriHanda
Copy link
Author

I have not made any progress on this one.

@RandalSchwartz
Copy link

Is there any interest by @marcglasberg in supporting a third party to fix up this package? Or is there a secret new branch somewhere that solves the issues?

@RandalSchwartz
Copy link

At this point, I have half a mind to fork the project and call it fast_immutable_collections_plus and put it under the Flutter Community care. Seems @marcglasberg has gone silent.

@spydon
Copy link

spydon commented Apr 24, 2023

As I wrote in Slack too, it would be much better to transfer the ownership instead of forking, if @marcglasberg isn't interested in maintaining it anymore (and otherwise just create a PR with the fixes).
Since he is active on GitHub I don't think he is completely gone, but most likely just busy with other things.

@marcglasberg
Copy link
Owner

Hey guys, thanks for the report. But don't worry, I am actually still maintaining this package and about a dozen others, and will do so for the foreseeable future. I have my own analysis_options.yaml file that contains the rules I care about. I don't like the default linter, and I don't want to follow it. I use 100 char lines instead of 80 char lines, and then pub.dev doesn't like it because they are authoritarian and think that everyone should follow their preferred code style, which I don't like and won't follow. The code is well tested and it follows my conventions. So, yes, not following their exact code style rules reduces the pub points, but that's unimportant, and will have no impact whatsoever on the users of the package. It's also well documented to great detail, as far as I know. If you miss any documentation let me know and I will provide it. I am closing this issue because I don't intend on making changes to try and get more pub points. Thank you.

@marcglasberg
Copy link
Owner

I have, however, added an example, to get an extra 10 pub points, and turned some http links into https, to get some extra pub points. Now we're at 130 out of 140 points.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants