Browse Source

feat(neon_lints): Enable new available rules

Signed-off-by: jld3103 <jld3103yt@gmail.com>
pull/579/head
jld3103 1 year ago
parent
commit
1c576a6005
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 5
      packages/neon_lints/bin/neon_lints.dart
  2. 2
      packages/neon_lints/lib/dart.yaml

5
packages/neon_lints/bin/neon_lints.dart

@ -27,10 +27,7 @@ const disabledRules = [
/// Rules that won't be added to the list. /// Rules that won't be added to the list.
/// ///
/// This is needed for rules not yet available in the current dart version. /// This is needed for rules not yet available in the current dart version.
const excludedRules = [ const excludedRules = [];
'no_self_assignments',
'no_wildcard_variable_uses',
];
/// Commit hash to use to fetch the rules from upstream /// Commit hash to use to fetch the rules from upstream
const commitHash = '7f40f11'; const commitHash = '7f40f11';

2
packages/neon_lints/lib/dart.yaml

@ -105,6 +105,8 @@ linter:
no_literal_bool_comparisons: true no_literal_bool_comparisons: true
no_logic_in_create_state: true no_logic_in_create_state: true
no_runtimeType_toString: true no_runtimeType_toString: true
no_self_assignments: true
no_wildcard_variable_uses: true
non_constant_identifier_names: true non_constant_identifier_names: true
noop_primitive_operations: true noop_primitive_operations: true
null_check_on_nullable_type_parameter: true null_check_on_nullable_type_parameter: true

Loading…
Cancel
Save