Last updated:
0 purchases
codeclusive lints
Codeclusive Lints #
This package provides a list of Dart and Flutter rules used everyday by the Codeclusive team. It integrates a set of flutter-lints with a custom, opinionated set of rules based on Dart linter rules.
Usage #
To use this package add following line to your pubspec.yaml and analysis_options.yaml:
pubspec.yaml:
dependencies:
codeclusive_lints: ^0.0.4
copied to clipboard
analysis_options.yaml:
include: package:codeclusive_lints/analysis_options.yaml
copied to clipboard
Rules: #
Changed the severity of rules: #
prefer_const_constructors: info
missing_required_param: error
missing_return: error
must_be_immutable: error
unnecessary_const: error
New Lints #
unnecessary_await_in_return
unnecessary_null_checks
unnecessary_overrides
unnecessary_parenthesis
unnecessary_raw_strings
unnecessary_statements
unrelated_type_equality_checks
tighten_type_of_initializing_formals
always_declare_return_types
avoid_catching_errors
avoid_empty_else
empty_catches
iterable_contains_unrelated_type
list_remove_unrelated_type
missing_whitespace_between_adjacent_strings
camel_case_extensions
camel_case_types
file_names
leading_newlines_in_multiline_strings
prefer_final_in_for_each
prefer_final_locals
sized_box_shrink_expand
prefer_is_empty
prefer_is_not_empty
prefer_iterable_whereType
prefer_null_aware_method_calls
sort_constructors_first
sort_pub_dependencies
always_use_package_imports
avoid_redundant_argument_values
avoid_relative_lib_imports
avoid_returning_this
avoid_shadowing_type_parameters
avoid_slow_async_io
avoid_types_as_parameter_names
avoid_unused_constructor_parameters
avoid_void_async
await_only_futures
cancel_subscriptions
comment_references
curly_braces_in_flow_control_structures
directives_ordering
flutter_style_todos
join_return_with_assignment
no_adjacent_strings_in_list
no_default_cases
no_duplicate_case_values
no_runtimeType_toString
noop_primitive_operations
null_check_on_nullable_type_parameter
one_member_abstracts
only_throw_errors
package_prefixed_library_names
parameter_assignments
prefer_asserts_in_initializer_lists
prefer_asserts_with_message
prefer_constructors_over_static_methods
prefer_generic_function_type_aliases
prefer_if_elements_to_conditional_expressions
prefer_int_literals
prefer_single_quotes
prefer_typing_uninitialized_variables
require_trailing_commas
sort_unnamed_constructors_first
test_types_in_equals
throw_in_finally
type_annotate_public_apis
use_is_even_rather_than_modulo
use_late_for_private_fields_and_variables
use_named_constants
use_string_buffers
use_to_and_as_if_applicable
valid_regexps
void_checks
use_colored_box
use_super_parameters
unawaited_futures
cast_nullable_to_non_nullable
unnecessary_lambdas
License #
Copyright (c) 2023, Codeclusive. Use of this source code is governed by a MIT license that can be found in the LICENSE file.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.