Fix and enable linter rules
Is your feature request related to a problem? Please describe.
Yes, In flutter-lints dependency, there are so many linter rules that I disabled in PR #148
Now here are the checklists of the lint rules that are disabled (enabled rules are marked as checked) :
- [x] always_declare_return_types
- [x] avoid_print
- [x] avoid_unnecessary_containers
- [x] prefer_if_elements_to_conditional_expressions
- [x] prefer_const_constructors
- [x] prefer_const_declarations
- [x] unnecessary_string_interpolations
- [x] sized_box_for_whitespace
- [x] prefer_single_quotes
- [x] prefer_const_constructors_in_immutables
- [x] use_key_in_widget_constructors
- [x] prefer_function_declarations_over_variables
- [x] unnecessary_string_escapes
- [x] avoid_function_literals_in_foreach_calls
- [x] prefer_interpolation_to_compose_strings
- [x] unnecessary_parenthesis
- [x] sort_constructors_first
- [x] always_put_required_named_parameters_first
- [ ] avoid_classes_with_only_static_members
- [x] avoid_redundant_argument_values
- [x] join_return_with_assignment
- [ ] non_constant_identifier_names
- [x] constant_identifier_names
- [ ] no_leading_underscores_for_local_identifiers
- [ ] library_private_types_in_public_api
- [ ] depend_on_referenced_packages
- [ ] use_build_context_synchronously
This rule will be intentionally be disabled since we use
ALL_CAPS_WITH_UNDERSCORESfor constants.
Hey @manjotsidhu, Now I have to create a single PR of one rule at a time, right?
Hey @manjotsidhu, Now I have to create a single PR of one rule at a time, right?
Yes
@manjotsidhu can I work on the remaining ones?
@manjotsidhu can i work on some of the remaining one?
@manjotsidhu can I work on some of the remaining.
@ItsAdityaKSingh is this still open to MR ?
@remote007 I have made a PR for it which hasn't been reviewed yet.