diff --git a/CHANGELOG.md b/CHANGELOG.md index 166f72f3..5933f96e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,6 @@ # Changelog +## 1.1.1 +- Rename common rules to dart rules ## 1.1.0 - Added new presets - Removed Angular framework rules diff --git a/lib/src/analyzers/lint_analyzer/anti_patterns/pattern_utils.dart b/lib/src/analyzers/lint_analyzer/anti_patterns/pattern_utils.dart index 550de7f8..39428aec 100644 --- a/lib/src/analyzers/lint_analyzer/anti_patterns/pattern_utils.dart +++ b/lib/src/analyzers/lint_analyzer/anti_patterns/pattern_utils.dart @@ -21,10 +21,9 @@ Issue createIssue({ /// Returns a url of a page containing documentation associated with [pattern] Uri documentation(Pattern pattern) => Uri( scheme: 'https', - host: 'localhost', + host: 'dcl.apps.bancolombia.com', pathSegments: [ 'docs', - 'individuals', 'anti-patterns', pattern.id, ], diff --git a/lib/src/analyzers/lint_analyzer/lint_analysis_options_validator.dart b/lib/src/analyzers/lint_analyzer/lint_analysis_options_validator.dart index 5bcdb3b0..dd65999b 100644 --- a/lib/src/analyzers/lint_analyzer/lint_analysis_options_validator.dart +++ b/lib/src/analyzers/lint_analyzer/lint_analysis_options_validator.dart @@ -118,7 +118,8 @@ class LintAnalysisOptionsValidator { severity: Severity.warning, message: "'${rule.ruleName}' is not recognized as a valid rule name.", - documentation: Uri.parse('https://localhost/rules'), + documentation: + Uri.parse('https://dcl.apps.bancolombia.com/docs/rules'), location: _copySpanWithOffset(rule.span), ), ); @@ -132,7 +133,8 @@ class LintAnalysisOptionsValidator { severity: Severity.warning, message: "'${rule.ruleName}' requires a config to produce any diagnostics.", - documentation: Uri.parse('https://localhost/rules'), + documentation: + Uri.parse('https://dcl.apps.bancolombia.com/docs/rules'), location: _copySpanWithOffset(rule.span), ), ); diff --git a/lib/src/analyzers/lint_analyzer/metrics/metric_utils.dart b/lib/src/analyzers/lint_analyzer/metrics/metric_utils.dart index e0d9dd73..d9a760d0 100644 --- a/lib/src/analyzers/lint_analyzer/metrics/metric_utils.dart +++ b/lib/src/analyzers/lint_analyzer/metrics/metric_utils.dart @@ -3,10 +3,9 @@ import 'models/metric_value_level.dart'; /// Returns the url of a page containing documentation associated with [metricId] Uri documentation(String metricId) => Uri( scheme: 'https', - host: 'localhost', + host: 'dcl.apps.bancolombia.com', pathSegments: [ 'docs', - 'individuals', 'metrics', metricId, ], diff --git a/lib/src/analyzers/lint_analyzer/rules/models/angular_rule.dart b/lib/src/analyzers/lint_analyzer/rules/models/angular_rule.dart deleted file mode 100644 index ce0d74cc..00000000 --- a/lib/src/analyzers/lint_analyzer/rules/models/angular_rule.dart +++ /dev/null @@ -1,14 +0,0 @@ -import 'rule.dart'; -import 'rule_type.dart'; - -/// Represents a base class for angular-specific rules. -abstract class AngularRule extends Rule { - const AngularRule({ - required super.id, - required super.severity, - required super.excludes, - required super.includes, - }) : super( - type: RuleType.angular, - ); -} diff --git a/lib/src/analyzers/lint_analyzer/rules/models/common_rule.dart b/lib/src/analyzers/lint_analyzer/rules/models/dart_rule.dart similarity index 70% rename from lib/src/analyzers/lint_analyzer/rules/models/common_rule.dart rename to lib/src/analyzers/lint_analyzer/rules/models/dart_rule.dart index 19512851..de718118 100644 --- a/lib/src/analyzers/lint_analyzer/rules/models/common_rule.dart +++ b/lib/src/analyzers/lint_analyzer/rules/models/dart_rule.dart @@ -2,13 +2,13 @@ import 'rule.dart'; import 'rule_type.dart'; /// Represents a base class for common rules. -abstract class CommonRule extends Rule { - const CommonRule({ +abstract class DartRule extends Rule { + const DartRule({ required super.id, required super.severity, required super.excludes, required super.includes, }) : super( - type: RuleType.common, + type: RuleType.dart, ); } diff --git a/lib/src/analyzers/lint_analyzer/rules/models/rule_type.dart b/lib/src/analyzers/lint_analyzer/rules/models/rule_type.dart index 3fe3840a..678b4de7 100644 --- a/lib/src/analyzers/lint_analyzer/rules/models/rule_type.dart +++ b/lib/src/analyzers/lint_analyzer/rules/models/rule_type.dart @@ -4,7 +4,7 @@ class RuleType { const RuleType._(this.value); - static const common = RuleType._('common'); + static const dart = RuleType._('dart'); static const flutter = RuleType._('flutter'); static const intl = RuleType._('intl'); static const angular = RuleType._('angular'); diff --git a/lib/src/analyzers/lint_analyzer/rules/rule_utils.dart b/lib/src/analyzers/lint_analyzer/rules/rule_utils.dart index 66eaf8bf..4f4b0d74 100644 --- a/lib/src/analyzers/lint_analyzer/rules/rule_utils.dart +++ b/lib/src/analyzers/lint_analyzer/rules/rule_utils.dart @@ -27,10 +27,9 @@ Issue createIssue({ /// Returns a url of a page containing documentation associated with [rule] Uri documentation(Rule rule) => Uri( scheme: 'https', - host: 'localhost', + host: 'dcl.apps.bancolombia.com', pathSegments: [ 'docs', - 'individuals', 'rules', rule.type.value, rule.id, diff --git a/lib/src/analyzers/lint_analyzer/rules/rules_list/arguments_ordering/arguments_ordering_rule.dart b/lib/src/analyzers/lint_analyzer/rules/rules_list/arguments_ordering/arguments_ordering_rule.dart index 4b43836a..cc02247b 100644 --- a/lib/src/analyzers/lint_analyzer/rules/rules_list/arguments_ordering/arguments_ordering_rule.dart +++ b/lib/src/analyzers/lint_analyzer/rules/rules_list/arguments_ordering/arguments_ordering_rule.dart @@ -11,13 +11,13 @@ import '../../../models/internal_resolved_unit_result.dart'; import '../../../models/issue.dart'; import '../../../models/replacement.dart'; import '../../../models/severity.dart'; -import '../../models/common_rule.dart'; +import '../../models/dart_rule.dart'; import '../../rule_utils.dart'; part 'config_parser.dart'; part 'visitor.dart'; -class ArgumentsOrderingRule extends CommonRule { +class ArgumentsOrderingRule extends DartRule { static const String ruleId = 'arguments-ordering'; static const _warningMessage = diff --git a/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_banned_imports/avoid_banned_imports_rule.dart b/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_banned_imports/avoid_banned_imports_rule.dart index 53c9e05c..cb78b141 100644 --- a/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_banned_imports/avoid_banned_imports_rule.dart +++ b/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_banned_imports/avoid_banned_imports_rule.dart @@ -8,13 +8,13 @@ import '../../../lint_utils.dart'; import '../../../models/internal_resolved_unit_result.dart'; import '../../../models/issue.dart'; import '../../../models/severity.dart'; -import '../../models/common_rule.dart'; +import '../../models/dart_rule.dart'; import '../../rule_utils.dart'; part 'utils/config_parser.dart'; part 'visitor.dart'; -class AvoidBannedImportsRule extends CommonRule { +class AvoidBannedImportsRule extends DartRule { static const String ruleId = 'avoid-banned-imports'; final List<_AvoidBannedImportsConfigEntry> _entries; diff --git a/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_cascade_after_if_null/avoid_cascade_after_if_null_rule.dart b/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_cascade_after_if_null/avoid_cascade_after_if_null_rule.dart index 594c07cc..1161d0b0 100644 --- a/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_cascade_after_if_null/avoid_cascade_after_if_null_rule.dart +++ b/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_cascade_after_if_null/avoid_cascade_after_if_null_rule.dart @@ -9,12 +9,12 @@ import '../../../lint_utils.dart'; import '../../../models/internal_resolved_unit_result.dart'; import '../../../models/issue.dart'; import '../../../models/severity.dart'; -import '../../models/common_rule.dart'; +import '../../models/dart_rule.dart'; import '../../rule_utils.dart'; part 'visitor.dart'; -class AvoidCascadeAfterIfNullRule extends CommonRule { +class AvoidCascadeAfterIfNullRule extends DartRule { static const String ruleId = 'avoid-cascade-after-if-null'; static const _warning = diff --git a/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_collection_methods_with_unrelated_types/avoid_collection_methods_with_unrelated_types_rule.dart b/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_collection_methods_with_unrelated_types/avoid_collection_methods_with_unrelated_types_rule.dart index 0fbc4d23..ec09680c 100644 --- a/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_collection_methods_with_unrelated_types/avoid_collection_methods_with_unrelated_types_rule.dart +++ b/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_collection_methods_with_unrelated_types/avoid_collection_methods_with_unrelated_types_rule.dart @@ -12,13 +12,13 @@ import '../../../lint_utils.dart'; import '../../../models/internal_resolved_unit_result.dart'; import '../../../models/issue.dart'; import '../../../models/severity.dart'; -import '../../models/common_rule.dart'; +import '../../models/dart_rule.dart'; import '../../rule_utils.dart'; part 'config_parser.dart'; part 'visitor.dart'; -class AvoidCollectionMethodsWithUnrelatedTypesRule extends CommonRule { +class AvoidCollectionMethodsWithUnrelatedTypesRule extends DartRule { static const String ruleId = 'avoid-collection-methods-with-unrelated-types'; static const _warning = 'Avoid collection methods with unrelated types.'; diff --git a/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_double_slash_imports/avoid_double_slash_imports_rule.dart b/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_double_slash_imports/avoid_double_slash_imports_rule.dart index 961b43cc..5f610912 100644 --- a/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_double_slash_imports/avoid_double_slash_imports_rule.dart +++ b/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_double_slash_imports/avoid_double_slash_imports_rule.dart @@ -9,12 +9,12 @@ import '../../../models/internal_resolved_unit_result.dart'; import '../../../models/issue.dart'; import '../../../models/replacement.dart'; import '../../../models/severity.dart'; -import '../../models/common_rule.dart'; +import '../../models/dart_rule.dart'; import '../../rule_utils.dart'; part 'visitor.dart'; -class AvoidDoubleSlashImportsRule extends CommonRule { +class AvoidDoubleSlashImportsRule extends DartRule { static const String ruleId = 'avoid-double-slash-imports'; static const _warning = 'Avoid double slash import/export directives.'; diff --git a/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_duplicate_exports/avoid_duplicate_exports_rule.dart b/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_duplicate_exports/avoid_duplicate_exports_rule.dart index 835c5518..2c21285d 100644 --- a/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_duplicate_exports/avoid_duplicate_exports_rule.dart +++ b/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_duplicate_exports/avoid_duplicate_exports_rule.dart @@ -8,12 +8,12 @@ import '../../../lint_utils.dart'; import '../../../models/internal_resolved_unit_result.dart'; import '../../../models/issue.dart'; import '../../../models/severity.dart'; -import '../../models/common_rule.dart'; +import '../../models/dart_rule.dart'; import '../../rule_utils.dart'; part 'visitor.dart'; -class AvoidDuplicateExportsRule extends CommonRule { +class AvoidDuplicateExportsRule extends DartRule { static const ruleId = 'avoid-duplicate-exports'; static const _issueMessage = 'Avoid declaring duplicate exports.'; diff --git a/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_dynamic/avoid_dynamic_rule.dart b/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_dynamic/avoid_dynamic_rule.dart index 6bd81bc8..6915b9f0 100644 --- a/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_dynamic/avoid_dynamic_rule.dart +++ b/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_dynamic/avoid_dynamic_rule.dart @@ -8,12 +8,12 @@ import '../../../lint_utils.dart'; import '../../../models/internal_resolved_unit_result.dart'; import '../../../models/issue.dart'; import '../../../models/severity.dart'; -import '../../models/common_rule.dart'; +import '../../models/dart_rule.dart'; import '../../rule_utils.dart'; part 'visitor.dart'; -class AvoidDynamicRule extends CommonRule { +class AvoidDynamicRule extends DartRule { static const String ruleId = 'avoid-dynamic'; static const _warning = 'Avoid using dynamic type.'; diff --git a/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_global_state/avoid_global_state_rule.dart b/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_global_state/avoid_global_state_rule.dart index 4ef02d3b..901f2fa3 100644 --- a/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_global_state/avoid_global_state_rule.dart +++ b/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_global_state/avoid_global_state_rule.dart @@ -9,12 +9,12 @@ import '../../../lint_utils.dart'; import '../../../models/internal_resolved_unit_result.dart'; import '../../../models/issue.dart'; import '../../../models/severity.dart'; -import '../../models/common_rule.dart'; +import '../../models/dart_rule.dart'; import '../../rule_utils.dart'; part 'visitor.dart'; -class AvoidGlobalStateRule extends CommonRule { +class AvoidGlobalStateRule extends DartRule { static const String ruleId = 'avoid-global-state'; static const _warning = diff --git a/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_ignoring_return_values/avoid_ignoring_return_values_rule.dart b/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_ignoring_return_values/avoid_ignoring_return_values_rule.dart index 9423487a..e643a519 100644 --- a/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_ignoring_return_values/avoid_ignoring_return_values_rule.dart +++ b/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_ignoring_return_values/avoid_ignoring_return_values_rule.dart @@ -10,12 +10,12 @@ import '../../../lint_utils.dart'; import '../../../models/internal_resolved_unit_result.dart'; import '../../../models/issue.dart'; import '../../../models/severity.dart'; -import '../../models/common_rule.dart'; +import '../../models/dart_rule.dart'; import '../../rule_utils.dart'; part 'visitor.dart'; -class AvoidIgnoringReturnValuesRule extends CommonRule { +class AvoidIgnoringReturnValuesRule extends DartRule { static const String ruleId = 'avoid-ignoring-return-values'; static const _warning = 'Avoid ignoring return values.'; diff --git a/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_late_keyword/avoid_late_keyword_rule.dart b/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_late_keyword/avoid_late_keyword_rule.dart index f2e920ee..dac8d51d 100644 --- a/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_late_keyword/avoid_late_keyword_rule.dart +++ b/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_late_keyword/avoid_late_keyword_rule.dart @@ -8,13 +8,13 @@ import '../../../lint_utils.dart'; import '../../../models/internal_resolved_unit_result.dart'; import '../../../models/issue.dart'; import '../../../models/severity.dart'; -import '../../models/common_rule.dart'; +import '../../models/dart_rule.dart'; import '../../rule_utils.dart'; part 'config_parser.dart'; part 'visitor.dart'; -class AvoidLateKeywordRule extends CommonRule { +class AvoidLateKeywordRule extends DartRule { static const String ruleId = 'avoid-late-keyword'; static const _warning = "Avoid using 'late' keyword."; diff --git a/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_missing_enum_constant_in_map/avoid_missing_enum_constant_in_map_rule.dart b/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_missing_enum_constant_in_map/avoid_missing_enum_constant_in_map_rule.dart index 96c2b7a2..2abda6aa 100644 --- a/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_missing_enum_constant_in_map/avoid_missing_enum_constant_in_map_rule.dart +++ b/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_missing_enum_constant_in_map/avoid_missing_enum_constant_in_map_rule.dart @@ -9,12 +9,12 @@ import '../../../lint_utils.dart'; import '../../../models/internal_resolved_unit_result.dart'; import '../../../models/issue.dart'; import '../../../models/severity.dart'; -import '../../models/common_rule.dart'; +import '../../models/dart_rule.dart'; import '../../rule_utils.dart'; part 'visitor.dart'; -class AvoidMissingEnumConstantInMapRule extends CommonRule { +class AvoidMissingEnumConstantInMapRule extends DartRule { static const String ruleId = 'avoid-missing-enum-constant-in-map'; static const _warning = 'Missing map entry for'; diff --git a/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_nested_conditional_expressions/avoid_nested_conditional_expressions_rule.dart b/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_nested_conditional_expressions/avoid_nested_conditional_expressions_rule.dart index 3ecb8625..ed9e9cd2 100644 --- a/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_nested_conditional_expressions/avoid_nested_conditional_expressions_rule.dart +++ b/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_nested_conditional_expressions/avoid_nested_conditional_expressions_rule.dart @@ -8,13 +8,13 @@ import '../../../lint_utils.dart'; import '../../../models/internal_resolved_unit_result.dart'; import '../../../models/issue.dart'; import '../../../models/severity.dart'; -import '../../models/common_rule.dart'; +import '../../models/dart_rule.dart'; import '../../rule_utils.dart'; part 'config_parser.dart'; part 'visitor.dart'; -class AvoidNestedConditionalExpressionsRule extends CommonRule { +class AvoidNestedConditionalExpressionsRule extends DartRule { static const String ruleId = 'avoid-nested-conditional-expressions'; static const _warning = 'Avoid nested conditional expressions.'; diff --git a/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_non_ascii_symbols/avoid_non_ascii_symbols_rule.dart b/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_non_ascii_symbols/avoid_non_ascii_symbols_rule.dart index bd4733d3..74f77059 100644 --- a/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_non_ascii_symbols/avoid_non_ascii_symbols_rule.dart +++ b/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_non_ascii_symbols/avoid_non_ascii_symbols_rule.dart @@ -8,12 +8,12 @@ import '../../../lint_utils.dart'; import '../../../models/internal_resolved_unit_result.dart'; import '../../../models/issue.dart'; import '../../../models/severity.dart'; -import '../../models/common_rule.dart'; +import '../../models/dart_rule.dart'; import '../../rule_utils.dart'; part 'visitor.dart'; -class AvoidNonAsciiSymbolsRule extends CommonRule { +class AvoidNonAsciiSymbolsRule extends DartRule { static const String ruleId = 'avoid-non-ascii-symbols'; static const _warning = 'Avoid using non ascii symbols in string literals.'; diff --git a/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_non_null_assertion/avoid_non_null_assertion_rule.dart b/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_non_null_assertion/avoid_non_null_assertion_rule.dart index d88467bc..e1bb41f6 100644 --- a/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_non_null_assertion/avoid_non_null_assertion_rule.dart +++ b/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_non_null_assertion/avoid_non_null_assertion_rule.dart @@ -10,12 +10,12 @@ import '../../../lint_utils.dart'; import '../../../models/internal_resolved_unit_result.dart'; import '../../../models/issue.dart'; import '../../../models/severity.dart'; -import '../../models/common_rule.dart'; +import '../../models/dart_rule.dart'; import '../../rule_utils.dart'; part 'visitor.dart'; -class AvoidNonNullAssertionRule extends CommonRule { +class AvoidNonNullAssertionRule extends DartRule { static const String ruleId = 'avoid-non-null-assertion'; static const _warning = 'Avoid using non null assertion.'; diff --git a/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_passing_async_when_sync_expected/avoid_passing_async_when_sync_expected_rule.dart b/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_passing_async_when_sync_expected/avoid_passing_async_when_sync_expected_rule.dart index 9656e562..2c4a0048 100644 --- a/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_passing_async_when_sync_expected/avoid_passing_async_when_sync_expected_rule.dart +++ b/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_passing_async_when_sync_expected/avoid_passing_async_when_sync_expected_rule.dart @@ -9,12 +9,12 @@ import '../../../lint_utils.dart'; import '../../../models/internal_resolved_unit_result.dart'; import '../../../models/issue.dart'; import '../../../models/severity.dart'; -import '../../models/common_rule.dart'; +import '../../models/dart_rule.dart'; import '../../rule_utils.dart'; part 'visitor.dart'; -class AvoidPassingAsyncWhenSyncExpectedRule extends CommonRule { +class AvoidPassingAsyncWhenSyncExpectedRule extends DartRule { static const String ruleId = 'avoid-passing-async-when-sync-expected'; static const _warningMessage = 'Expected a sync function but got async.'; diff --git a/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_redundant_async/avoid_redundant_async_rule.dart b/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_redundant_async/avoid_redundant_async_rule.dart index f8eab1dd..82713345 100644 --- a/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_redundant_async/avoid_redundant_async_rule.dart +++ b/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_redundant_async/avoid_redundant_async_rule.dart @@ -10,12 +10,12 @@ import '../../../lint_utils.dart'; import '../../../models/internal_resolved_unit_result.dart'; import '../../../models/issue.dart'; import '../../../models/severity.dart'; -import '../../models/common_rule.dart'; +import '../../models/dart_rule.dart'; import '../../rule_utils.dart'; part 'visitor.dart'; -class AvoidRedundantAsyncRule extends CommonRule { +class AvoidRedundantAsyncRule extends DartRule { static const String ruleId = 'avoid-redundant-async'; static const _warningMessage = diff --git a/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_substring/avoid_substring_rule.dart b/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_substring/avoid_substring_rule.dart index 23088cf3..29a5efc5 100644 --- a/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_substring/avoid_substring_rule.dart +++ b/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_substring/avoid_substring_rule.dart @@ -8,12 +8,12 @@ import '../../../lint_utils.dart'; import '../../../models/internal_resolved_unit_result.dart'; import '../../../models/issue.dart'; import '../../../models/severity.dart'; -import '../../models/common_rule.dart'; +import '../../models/dart_rule.dart'; import '../../rule_utils.dart'; part 'visitor.dart'; -class AvoidSubstringRule extends CommonRule { +class AvoidSubstringRule extends DartRule { static const String ruleId = 'avoid-substring'; static const _warning = diff --git a/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_throw_in_catch_block/avoid_throw_in_catch_block_rule.dart b/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_throw_in_catch_block/avoid_throw_in_catch_block_rule.dart index d7cf66f5..7c5d6630 100644 --- a/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_throw_in_catch_block/avoid_throw_in_catch_block_rule.dart +++ b/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_throw_in_catch_block/avoid_throw_in_catch_block_rule.dart @@ -8,12 +8,12 @@ import '../../../lint_utils.dart'; import '../../../models/internal_resolved_unit_result.dart'; import '../../../models/issue.dart'; import '../../../models/severity.dart'; -import '../../models/common_rule.dart'; +import '../../models/dart_rule.dart'; import '../../rule_utils.dart'; part 'visitor.dart'; -class AvoidThrowInCatchBlockRule extends CommonRule { +class AvoidThrowInCatchBlockRule extends DartRule { static const String ruleId = 'avoid-throw-in-catch-block'; static const _warningMessage = diff --git a/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_top_level_members_in_tests/avoid_top_level_members_in_tests_rule.dart b/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_top_level_members_in_tests/avoid_top_level_members_in_tests_rule.dart index c214ecd6..d17e790a 100644 --- a/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_top_level_members_in_tests/avoid_top_level_members_in_tests_rule.dart +++ b/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_top_level_members_in_tests/avoid_top_level_members_in_tests_rule.dart @@ -8,12 +8,12 @@ import '../../../lint_utils.dart'; import '../../../models/internal_resolved_unit_result.dart'; import '../../../models/issue.dart'; import '../../../models/severity.dart'; -import '../../models/common_rule.dart'; +import '../../models/dart_rule.dart'; import '../../rule_utils.dart'; part 'visitor.dart'; -class AvoidTopLevelMembersInTestsRule extends CommonRule { +class AvoidTopLevelMembersInTestsRule extends DartRule { static const String ruleId = 'avoid-top-level-members-in-tests'; static const _warning = 'Avoid declaring top-level members in tests.'; diff --git a/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_unnecessary_conditionals/avoid_unnecessary_conditionals_rule.dart b/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_unnecessary_conditionals/avoid_unnecessary_conditionals_rule.dart index a37624a7..9428c4e4 100644 --- a/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_unnecessary_conditionals/avoid_unnecessary_conditionals_rule.dart +++ b/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_unnecessary_conditionals/avoid_unnecessary_conditionals_rule.dart @@ -9,12 +9,12 @@ import '../../../models/internal_resolved_unit_result.dart'; import '../../../models/issue.dart'; import '../../../models/replacement.dart'; import '../../../models/severity.dart'; -import '../../models/common_rule.dart'; +import '../../models/dart_rule.dart'; import '../../rule_utils.dart'; part 'visitor.dart'; -class AvoidUnnecessaryConditionalsRule extends CommonRule { +class AvoidUnnecessaryConditionalsRule extends DartRule { static const String ruleId = 'avoid-unnecessary-conditionals'; static const _warning = 'Avoid unnecessary conditional expressions.'; diff --git a/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_unnecessary_type_assertions/avoid_unnecessary_type_assertions_rule.dart b/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_unnecessary_type_assertions/avoid_unnecessary_type_assertions_rule.dart index d9c894f9..00fc1937 100644 --- a/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_unnecessary_type_assertions/avoid_unnecessary_type_assertions_rule.dart +++ b/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_unnecessary_type_assertions/avoid_unnecessary_type_assertions_rule.dart @@ -9,12 +9,12 @@ import '../../../lint_utils.dart'; import '../../../models/internal_resolved_unit_result.dart'; import '../../../models/issue.dart'; import '../../../models/severity.dart'; -import '../../models/common_rule.dart'; +import '../../models/dart_rule.dart'; import '../../rule_utils.dart'; part 'visitor.dart'; -class AvoidUnnecessaryTypeAssertionsRule extends CommonRule { +class AvoidUnnecessaryTypeAssertionsRule extends DartRule { static const String ruleId = 'avoid-unnecessary-type-assertions'; AvoidUnnecessaryTypeAssertionsRule([Map config = const {}]) diff --git a/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_unnecessary_type_casts/avoid_unnecessary_type_casts_rule.dart b/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_unnecessary_type_casts/avoid_unnecessary_type_casts_rule.dart index 3ec1f1fe..7d7fc8fb 100644 --- a/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_unnecessary_type_casts/avoid_unnecessary_type_casts_rule.dart +++ b/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_unnecessary_type_casts/avoid_unnecessary_type_casts_rule.dart @@ -9,12 +9,12 @@ import '../../../lint_utils.dart'; import '../../../models/internal_resolved_unit_result.dart'; import '../../../models/issue.dart'; import '../../../models/severity.dart'; -import '../../models/common_rule.dart'; +import '../../models/dart_rule.dart'; import '../../rule_utils.dart'; part 'visitor.dart'; -class AvoidUnnecessaryTypeCastsRule extends CommonRule { +class AvoidUnnecessaryTypeCastsRule extends DartRule { static const String ruleId = 'avoid-unnecessary-type-casts'; AvoidUnnecessaryTypeCastsRule([Map config = const {}]) diff --git a/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_unrelated_type_assertions/avoid_unrelated_type_assertions_rule.dart b/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_unrelated_type_assertions/avoid_unrelated_type_assertions_rule.dart index bf66bccf..1b173c37 100644 --- a/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_unrelated_type_assertions/avoid_unrelated_type_assertions_rule.dart +++ b/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_unrelated_type_assertions/avoid_unrelated_type_assertions_rule.dart @@ -9,12 +9,12 @@ import '../../../lint_utils.dart'; import '../../../models/internal_resolved_unit_result.dart'; import '../../../models/issue.dart'; import '../../../models/severity.dart'; -import '../../models/common_rule.dart'; +import '../../models/dart_rule.dart'; import '../../rule_utils.dart'; part 'visitor.dart'; -class AvoidUnrelatedTypeAssertionsRule extends CommonRule { +class AvoidUnrelatedTypeAssertionsRule extends DartRule { static const String ruleId = 'avoid-unrelated-type-assertions'; AvoidUnrelatedTypeAssertionsRule([Map config = const {}]) diff --git a/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_unused_parameters/avoid_unused_parameters_rule.dart b/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_unused_parameters/avoid_unused_parameters_rule.dart index cdff8737..631aa248 100644 --- a/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_unused_parameters/avoid_unused_parameters_rule.dart +++ b/lib/src/analyzers/lint_analyzer/rules/rules_list/avoid_unused_parameters/avoid_unused_parameters_rule.dart @@ -9,14 +9,14 @@ import '../../../lint_utils.dart'; import '../../../models/internal_resolved_unit_result.dart'; import '../../../models/issue.dart'; import '../../../models/severity.dart'; -import '../../models/common_rule.dart'; +import '../../models/dart_rule.dart'; import '../../rule_utils.dart'; part 'visitor.dart'; // Inspired by PVS-Studio (https://www.viva64.com/en/w/v6022/) -class AvoidUnusedParametersRule extends CommonRule { +class AvoidUnusedParametersRule extends DartRule { static const String ruleId = 'avoid-unused-parameters'; static const _warningMessage = 'Parameter is unused.'; diff --git a/lib/src/analyzers/lint_analyzer/rules/rules_list/ban_name/ban_name_rule.dart b/lib/src/analyzers/lint_analyzer/rules/rules_list/ban_name/ban_name_rule.dart index 68e1ac9f..38e7e2ce 100644 --- a/lib/src/analyzers/lint_analyzer/rules/rules_list/ban_name/ban_name_rule.dart +++ b/lib/src/analyzers/lint_analyzer/rules/rules_list/ban_name/ban_name_rule.dart @@ -8,13 +8,13 @@ import '../../../lint_utils.dart'; import '../../../models/internal_resolved_unit_result.dart'; import '../../../models/issue.dart'; import '../../../models/severity.dart'; -import '../../models/common_rule.dart'; +import '../../models/dart_rule.dart'; import '../../rule_utils.dart'; part 'utils/config_parser.dart'; part 'visitor.dart'; -class BanNameRule extends CommonRule { +class BanNameRule extends DartRule { static const String ruleId = 'ban-name'; final List<_BanNameConfigEntry> _entries; diff --git a/lib/src/analyzers/lint_analyzer/rules/rules_list/binary_expression_operand_order/binary_expression_operand_order_rule.dart b/lib/src/analyzers/lint_analyzer/rules/rules_list/binary_expression_operand_order/binary_expression_operand_order_rule.dart index b0c1ba9a..64f5ab78 100644 --- a/lib/src/analyzers/lint_analyzer/rules/rules_list/binary_expression_operand_order/binary_expression_operand_order_rule.dart +++ b/lib/src/analyzers/lint_analyzer/rules/rules_list/binary_expression_operand_order/binary_expression_operand_order_rule.dart @@ -10,12 +10,12 @@ import '../../../models/internal_resolved_unit_result.dart'; import '../../../models/issue.dart'; import '../../../models/replacement.dart'; import '../../../models/severity.dart'; -import '../../models/common_rule.dart'; +import '../../models/dart_rule.dart'; import '../../rule_utils.dart'; part 'visitor.dart'; -class BinaryExpressionOperandOrderRule extends CommonRule { +class BinaryExpressionOperandOrderRule extends DartRule { static const String ruleId = 'binary-expression-operand-order'; static const _warningMessage = diff --git a/lib/src/analyzers/lint_analyzer/rules/rules_list/double_literal_format/double_literal_format_rule.dart b/lib/src/analyzers/lint_analyzer/rules/rules_list/double_literal_format/double_literal_format_rule.dart index b73f6ea7..3991cd76 100644 --- a/lib/src/analyzers/lint_analyzer/rules/rules_list/double_literal_format/double_literal_format_rule.dart +++ b/lib/src/analyzers/lint_analyzer/rules/rules_list/double_literal_format/double_literal_format_rule.dart @@ -9,14 +9,14 @@ import '../../../models/internal_resolved_unit_result.dart'; import '../../../models/issue.dart'; import '../../../models/replacement.dart'; import '../../../models/severity.dart'; -import '../../models/common_rule.dart'; +import '../../models/dart_rule.dart'; import '../../rule_utils.dart'; part 'visitor.dart'; // Inspired by TSLint (https://palantir.github.io/tslint/rules/number-literal-format/) -class DoubleLiteralFormatRule extends CommonRule { +class DoubleLiteralFormatRule extends DartRule { static const String ruleId = 'double-literal-format'; static const _warningLeadingZero = diff --git a/lib/src/analyzers/lint_analyzer/rules/rules_list/format_comment/format_comment_rule.dart b/lib/src/analyzers/lint_analyzer/rules/rules_list/format_comment/format_comment_rule.dart index 25d7544f..7f0cb1ac 100644 --- a/lib/src/analyzers/lint_analyzer/rules/rules_list/format_comment/format_comment_rule.dart +++ b/lib/src/analyzers/lint_analyzer/rules/rules_list/format_comment/format_comment_rule.dart @@ -9,13 +9,13 @@ import '../../../models/internal_resolved_unit_result.dart'; import '../../../models/issue.dart'; import '../../../models/replacement.dart'; import '../../../models/severity.dart'; -import '../../models/common_rule.dart'; +import '../../models/dart_rule.dart'; import '../../rule_utils.dart'; part 'config_parser.dart'; part 'visitor.dart'; -class FormatCommentRule extends CommonRule { +class FormatCommentRule extends DartRule { static const String ruleId = 'format-comment'; static const _warning = 'Prefer formatting comments like sentences.'; diff --git a/lib/src/analyzers/lint_analyzer/rules/rules_list/list_all_equatable_fields/list_all_equatable_fields_rule.dart b/lib/src/analyzers/lint_analyzer/rules/rules_list/list_all_equatable_fields/list_all_equatable_fields_rule.dart index 8c8eb317..20b6f47d 100644 --- a/lib/src/analyzers/lint_analyzer/rules/rules_list/list_all_equatable_fields/list_all_equatable_fields_rule.dart +++ b/lib/src/analyzers/lint_analyzer/rules/rules_list/list_all_equatable_fields/list_all_equatable_fields_rule.dart @@ -11,12 +11,12 @@ import '../../../lint_utils.dart'; import '../../../models/internal_resolved_unit_result.dart'; import '../../../models/issue.dart'; import '../../../models/severity.dart'; -import '../../models/common_rule.dart'; +import '../../models/dart_rule.dart'; import '../../rule_utils.dart'; part 'visitor.dart'; -class ListAllEquatableFieldsRule extends CommonRule { +class ListAllEquatableFieldsRule extends DartRule { static const ruleId = 'list-all-equatable-fields'; ListAllEquatableFieldsRule([ diff --git a/lib/src/analyzers/lint_analyzer/rules/rules_list/member_ordering/member_ordering_rule.dart b/lib/src/analyzers/lint_analyzer/rules/rules_list/member_ordering/member_ordering_rule.dart index 9ce6cd34..83d06af5 100644 --- a/lib/src/analyzers/lint_analyzer/rules/rules_list/member_ordering/member_ordering_rule.dart +++ b/lib/src/analyzers/lint_analyzer/rules/rules_list/member_ordering/member_ordering_rule.dart @@ -11,7 +11,7 @@ import '../../../lint_utils.dart'; import '../../../models/internal_resolved_unit_result.dart'; import '../../../models/issue.dart'; import '../../../models/severity.dart'; -import '../../models/common_rule.dart'; +import '../../models/dart_rule.dart'; import '../../rule_utils.dart'; part 'config_parser.dart'; @@ -22,7 +22,7 @@ part 'models/member_type.dart'; part 'models/modifier.dart'; part 'visitor.dart'; -class MemberOrderingRule extends CommonRule { +class MemberOrderingRule extends DartRule { static const ruleId = 'member-ordering'; static const _warningMessage = 'should be before'; diff --git a/lib/src/analyzers/lint_analyzer/rules/rules_list/missing_test_assertion/missing_test_assertion_rule.dart b/lib/src/analyzers/lint_analyzer/rules/rules_list/missing_test_assertion/missing_test_assertion_rule.dart index 465152ee..f0f941dc 100644 --- a/lib/src/analyzers/lint_analyzer/rules/rules_list/missing_test_assertion/missing_test_assertion_rule.dart +++ b/lib/src/analyzers/lint_analyzer/rules/rules_list/missing_test_assertion/missing_test_assertion_rule.dart @@ -8,13 +8,13 @@ import '../../../lint_utils.dart'; import '../../../models/internal_resolved_unit_result.dart'; import '../../../models/issue.dart'; import '../../../models/severity.dart'; -import '../../models/common_rule.dart'; +import '../../models/dart_rule.dart'; import '../../rule_utils.dart'; part 'config_parser.dart'; part 'visitor.dart'; -class MissingTestAssertionRule extends CommonRule { +class MissingTestAssertionRule extends DartRule { static const String ruleId = 'missing-test-assertion'; static const _warningMessage = 'Missing test assertion.'; diff --git a/lib/src/analyzers/lint_analyzer/rules/rules_list/newline_before_return/newline_before_return_rule.dart b/lib/src/analyzers/lint_analyzer/rules/rules_list/newline_before_return/newline_before_return_rule.dart index 6fa2268a..41ec4567 100644 --- a/lib/src/analyzers/lint_analyzer/rules/rules_list/newline_before_return/newline_before_return_rule.dart +++ b/lib/src/analyzers/lint_analyzer/rules/rules_list/newline_before_return/newline_before_return_rule.dart @@ -10,14 +10,14 @@ import '../../../lint_utils.dart'; import '../../../models/internal_resolved_unit_result.dart'; import '../../../models/issue.dart'; import '../../../models/severity.dart'; -import '../../models/common_rule.dart'; +import '../../models/dart_rule.dart'; import '../../rule_utils.dart'; part 'visitor.dart'; // Inspired by ESLint (https://eslint.org/docs/rules/newline-before-return) -class NewlineBeforeReturnRule extends CommonRule { +class NewlineBeforeReturnRule extends DartRule { static const String ruleId = 'newline-before-return'; static const _warning = 'Missing blank line before return.'; diff --git a/lib/src/analyzers/lint_analyzer/rules/rules_list/no_boolean_literal_compare/no_boolean_literal_compare_rule.dart b/lib/src/analyzers/lint_analyzer/rules/rules_list/no_boolean_literal_compare/no_boolean_literal_compare_rule.dart index 507adde9..f0a00c5d 100644 --- a/lib/src/analyzers/lint_analyzer/rules/rules_list/no_boolean_literal_compare/no_boolean_literal_compare_rule.dart +++ b/lib/src/analyzers/lint_analyzer/rules/rules_list/no_boolean_literal_compare/no_boolean_literal_compare_rule.dart @@ -12,14 +12,14 @@ import '../../../models/internal_resolved_unit_result.dart'; import '../../../models/issue.dart'; import '../../../models/replacement.dart'; import '../../../models/severity.dart'; -import '../../models/common_rule.dart'; +import '../../models/dart_rule.dart'; import '../../rule_utils.dart'; part 'visitor.dart'; // Inspired by TSLint (https://palantir.github.io/tslint/rules/no-boolean-literal-compare/) -class NoBooleanLiteralCompareRule extends CommonRule { +class NoBooleanLiteralCompareRule extends DartRule { static const String ruleId = 'no-boolean-literal-compare'; static const _warning = diff --git a/lib/src/analyzers/lint_analyzer/rules/rules_list/no_empty_block/no_empty_block_rule.dart b/lib/src/analyzers/lint_analyzer/rules/rules_list/no_empty_block/no_empty_block_rule.dart index 1b27f581..249cf1de 100644 --- a/lib/src/analyzers/lint_analyzer/rules/rules_list/no_empty_block/no_empty_block_rule.dart +++ b/lib/src/analyzers/lint_analyzer/rules/rules_list/no_empty_block/no_empty_block_rule.dart @@ -8,14 +8,14 @@ import '../../../lint_utils.dart'; import '../../../models/internal_resolved_unit_result.dart'; import '../../../models/issue.dart'; import '../../../models/severity.dart'; -import '../../models/common_rule.dart'; +import '../../models/dart_rule.dart'; import '../../rule_utils.dart'; part 'visitor.dart'; // Inspired by TSLint (https://palantir.github.io/tslint/rules/no-empty/) -class NoEmptyBlockRule extends CommonRule { +class NoEmptyBlockRule extends DartRule { static const String ruleId = 'no-empty-block'; static const _warning = diff --git a/lib/src/analyzers/lint_analyzer/rules/rules_list/no_equal_arguments/no_equal_arguments_rule.dart b/lib/src/analyzers/lint_analyzer/rules/rules_list/no_equal_arguments/no_equal_arguments_rule.dart index 5c489312..79ec8818 100644 --- a/lib/src/analyzers/lint_analyzer/rules/rules_list/no_equal_arguments/no_equal_arguments_rule.dart +++ b/lib/src/analyzers/lint_analyzer/rules/rules_list/no_equal_arguments/no_equal_arguments_rule.dart @@ -9,13 +9,13 @@ import '../../../lint_utils.dart'; import '../../../models/internal_resolved_unit_result.dart'; import '../../../models/issue.dart'; import '../../../models/severity.dart'; -import '../../models/common_rule.dart'; +import '../../models/dart_rule.dart'; import '../../rule_utils.dart'; part 'config_parser.dart'; part 'visitor.dart'; -class NoEqualArgumentsRule extends CommonRule { +class NoEqualArgumentsRule extends DartRule { static const String ruleId = 'no-equal-arguments'; static const _warningMessage = 'The argument has already been passed.'; diff --git a/lib/src/analyzers/lint_analyzer/rules/rules_list/no_equal_then_else/no_equal_then_else_rule.dart b/lib/src/analyzers/lint_analyzer/rules/rules_list/no_equal_then_else/no_equal_then_else_rule.dart index 8b54382c..4cf29a1d 100644 --- a/lib/src/analyzers/lint_analyzer/rules/rules_list/no_equal_then_else/no_equal_then_else_rule.dart +++ b/lib/src/analyzers/lint_analyzer/rules/rules_list/no_equal_then_else/no_equal_then_else_rule.dart @@ -8,14 +8,14 @@ import '../../../lint_utils.dart'; import '../../../models/internal_resolved_unit_result.dart'; import '../../../models/issue.dart'; import '../../../models/severity.dart'; -import '../../models/common_rule.dart'; +import '../../models/dart_rule.dart'; import '../../rule_utils.dart'; part 'visitor.dart'; // Inspired by PVS-Studio (https://www.viva64.com/en/w/v6004/) -class NoEqualThenElseRule extends CommonRule { +class NoEqualThenElseRule extends DartRule { static const String ruleId = 'no-equal-then-else'; static const _warningMessage = 'Then and else branches are equal.'; diff --git a/lib/src/analyzers/lint_analyzer/rules/rules_list/no_magic_number/no_magic_number_rule.dart b/lib/src/analyzers/lint_analyzer/rules/rules_list/no_magic_number/no_magic_number_rule.dart index c3df7322..603b7fde 100644 --- a/lib/src/analyzers/lint_analyzer/rules/rules_list/no_magic_number/no_magic_number_rule.dart +++ b/lib/src/analyzers/lint_analyzer/rules/rules_list/no_magic_number/no_magic_number_rule.dart @@ -8,13 +8,13 @@ import '../../../lint_utils.dart'; import '../../../models/internal_resolved_unit_result.dart'; import '../../../models/issue.dart'; import '../../../models/severity.dart'; -import '../../models/common_rule.dart'; +import '../../models/dart_rule.dart'; import '../../rule_utils.dart'; part 'config_parser.dart'; part 'visitor.dart'; -class NoMagicNumberRule extends CommonRule { +class NoMagicNumberRule extends DartRule { static const String ruleId = 'no-magic-number'; static const _warningMessage = diff --git a/lib/src/analyzers/lint_analyzer/rules/rules_list/no_object_declaration/no_object_declaration_rule.dart b/lib/src/analyzers/lint_analyzer/rules/rules_list/no_object_declaration/no_object_declaration_rule.dart index 05b9dddd..361bc122 100644 --- a/lib/src/analyzers/lint_analyzer/rules/rules_list/no_object_declaration/no_object_declaration_rule.dart +++ b/lib/src/analyzers/lint_analyzer/rules/rules_list/no_object_declaration/no_object_declaration_rule.dart @@ -8,12 +8,12 @@ import '../../../lint_utils.dart'; import '../../../models/internal_resolved_unit_result.dart'; import '../../../models/issue.dart'; import '../../../models/severity.dart'; -import '../../models/common_rule.dart'; +import '../../models/dart_rule.dart'; import '../../rule_utils.dart'; part 'visitor.dart'; -class NoObjectDeclarationRule extends CommonRule { +class NoObjectDeclarationRule extends DartRule { static const String ruleId = 'no-object-declaration'; static const _warningMessage = diff --git a/lib/src/analyzers/lint_analyzer/rules/rules_list/prefer_async_await/prefer_async_await_rule.dart b/lib/src/analyzers/lint_analyzer/rules/rules_list/prefer_async_await/prefer_async_await_rule.dart index e6f6b338..21eeddcb 100644 --- a/lib/src/analyzers/lint_analyzer/rules/rules_list/prefer_async_await/prefer_async_await_rule.dart +++ b/lib/src/analyzers/lint_analyzer/rules/rules_list/prefer_async_await/prefer_async_await_rule.dart @@ -8,12 +8,12 @@ import '../../../lint_utils.dart'; import '../../../models/internal_resolved_unit_result.dart'; import '../../../models/issue.dart'; import '../../../models/severity.dart'; -import '../../models/common_rule.dart'; +import '../../models/dart_rule.dart'; import '../../rule_utils.dart'; part 'visitor.dart'; -class PreferAsyncAwaitRule extends CommonRule { +class PreferAsyncAwaitRule extends DartRule { static const ruleId = 'prefer-async-await'; static const _warningMessage = 'Prefer using async/await syntax instead of .then invocations'; diff --git a/lib/src/analyzers/lint_analyzer/rules/rules_list/prefer_commenting_analyzer_ignores/prefer_commenting_analyzer_ignores.dart b/lib/src/analyzers/lint_analyzer/rules/rules_list/prefer_commenting_analyzer_ignores/prefer_commenting_analyzer_ignores.dart index b2c36671..9d9c0ff0 100644 --- a/lib/src/analyzers/lint_analyzer/rules/rules_list/prefer_commenting_analyzer_ignores/prefer_commenting_analyzer_ignores.dart +++ b/lib/src/analyzers/lint_analyzer/rules/rules_list/prefer_commenting_analyzer_ignores/prefer_commenting_analyzer_ignores.dart @@ -8,12 +8,12 @@ import '../../../lint_utils.dart'; import '../../../models/internal_resolved_unit_result.dart'; import '../../../models/issue.dart'; import '../../../models/severity.dart'; -import '../../models/common_rule.dart'; +import '../../models/dart_rule.dart'; import '../../rule_utils.dart'; part 'visitor.dart'; -class PreferCommentingAnalyzerIgnores extends CommonRule { +class PreferCommentingAnalyzerIgnores extends DartRule { static const String ruleId = 'prefer-commenting-analyzer-ignores'; static const _warning = 'Prefer commenting analyzer ignores.'; diff --git a/lib/src/analyzers/lint_analyzer/rules/rules_list/prefer_conditional_expressions/prefer_conditional_expressions_rule.dart b/lib/src/analyzers/lint_analyzer/rules/rules_list/prefer_conditional_expressions/prefer_conditional_expressions_rule.dart index 0c80fe13..96dc01e9 100644 --- a/lib/src/analyzers/lint_analyzer/rules/rules_list/prefer_conditional_expressions/prefer_conditional_expressions_rule.dart +++ b/lib/src/analyzers/lint_analyzer/rules/rules_list/prefer_conditional_expressions/prefer_conditional_expressions_rule.dart @@ -10,7 +10,7 @@ import '../../../models/internal_resolved_unit_result.dart'; import '../../../models/issue.dart'; import '../../../models/replacement.dart'; import '../../../models/severity.dart'; -import '../../models/common_rule.dart'; +import '../../models/dart_rule.dart'; import '../../rule_utils.dart'; part 'config_parser.dart'; @@ -18,7 +18,7 @@ part 'visitor.dart'; // Inspired by TSLint (https://palantir.github.io/tslint/rules/prefer-conditional-expression/) -class PreferConditionalExpressionsRule extends CommonRule { +class PreferConditionalExpressionsRule extends DartRule { static const String ruleId = 'prefer-conditional-expressions'; static const _warningMessage = 'Prefer conditional expression.'; diff --git a/lib/src/analyzers/lint_analyzer/rules/rules_list/prefer_correct_identifier_length/prefer_correct_identifier_length_rule.dart b/lib/src/analyzers/lint_analyzer/rules/rules_list/prefer_correct_identifier_length/prefer_correct_identifier_length_rule.dart index 0c433cd5..f403c90f 100644 --- a/lib/src/analyzers/lint_analyzer/rules/rules_list/prefer_correct_identifier_length/prefer_correct_identifier_length_rule.dart +++ b/lib/src/analyzers/lint_analyzer/rules/rules_list/prefer_correct_identifier_length/prefer_correct_identifier_length_rule.dart @@ -9,14 +9,14 @@ import '../../../metrics/scope_visitor.dart'; import '../../../models/internal_resolved_unit_result.dart'; import '../../../models/issue.dart'; import '../../../models/severity.dart'; -import '../../models/common_rule.dart'; +import '../../models/dart_rule.dart'; import '../../rule_utils.dart'; part 'utils/config_parser.dart'; part 'validator.dart'; part 'visitor.dart'; -class PreferCorrectIdentifierLengthRule extends CommonRule { +class PreferCorrectIdentifierLengthRule extends DartRule { static const String ruleId = 'prefer-correct-identifier-length'; final _Validator _validator; diff --git a/lib/src/analyzers/lint_analyzer/rules/rules_list/prefer_correct_test_file_name/prefer_correct_test_file_name_rule.dart b/lib/src/analyzers/lint_analyzer/rules/rules_list/prefer_correct_test_file_name/prefer_correct_test_file_name_rule.dart index 1d70601d..c16bcdbe 100644 --- a/lib/src/analyzers/lint_analyzer/rules/rules_list/prefer_correct_test_file_name/prefer_correct_test_file_name_rule.dart +++ b/lib/src/analyzers/lint_analyzer/rules/rules_list/prefer_correct_test_file_name/prefer_correct_test_file_name_rule.dart @@ -8,13 +8,13 @@ import '../../../lint_utils.dart'; import '../../../models/internal_resolved_unit_result.dart'; import '../../../models/issue.dart'; import '../../../models/severity.dart'; -import '../../models/common_rule.dart'; +import '../../models/dart_rule.dart'; import '../../rule_utils.dart'; part 'config_parser.dart'; part 'visitor.dart'; -class PreferCorrectTestFileNameRule extends CommonRule { +class PreferCorrectTestFileNameRule extends DartRule { static const String ruleId = 'prefer-correct-test-file-name'; static const _warningMessage = 'Test file name should end with '; diff --git a/lib/src/analyzers/lint_analyzer/rules/rules_list/prefer_correct_type_name/prefer_correct_type_name_rule.dart b/lib/src/analyzers/lint_analyzer/rules/rules_list/prefer_correct_type_name/prefer_correct_type_name_rule.dart index a055e60b..ca21940c 100644 --- a/lib/src/analyzers/lint_analyzer/rules/rules_list/prefer_correct_type_name/prefer_correct_type_name_rule.dart +++ b/lib/src/analyzers/lint_analyzer/rules/rules_list/prefer_correct_type_name/prefer_correct_type_name_rule.dart @@ -9,14 +9,14 @@ import '../../../metrics/scope_visitor.dart'; import '../../../models/internal_resolved_unit_result.dart'; import '../../../models/issue.dart'; import '../../../models/severity.dart'; -import '../../models/common_rule.dart'; +import '../../models/dart_rule.dart'; import '../../rule_utils.dart'; part 'utils/config_parser.dart'; part 'validator.dart'; part 'visitor.dart'; -class PreferCorrectTypeNameRule extends CommonRule { +class PreferCorrectTypeNameRule extends DartRule { static const String ruleId = 'prefer-correct-type-name'; final _Validator _validator; diff --git a/lib/src/analyzers/lint_analyzer/rules/rules_list/prefer_enums_by_name/prefer_enums_by_name_rule.dart b/lib/src/analyzers/lint_analyzer/rules/rules_list/prefer_enums_by_name/prefer_enums_by_name_rule.dart index c597cde3..10c3990e 100644 --- a/lib/src/analyzers/lint_analyzer/rules/rules_list/prefer_enums_by_name/prefer_enums_by_name_rule.dart +++ b/lib/src/analyzers/lint_analyzer/rules/rules_list/prefer_enums_by_name/prefer_enums_by_name_rule.dart @@ -9,12 +9,12 @@ import '../../../lint_utils.dart'; import '../../../models/internal_resolved_unit_result.dart'; import '../../../models/issue.dart'; import '../../../models/severity.dart'; -import '../../models/common_rule.dart'; +import '../../models/dart_rule.dart'; import '../../rule_utils.dart'; part 'visitor.dart'; -class PreferEnumsByNameRule extends CommonRule { +class PreferEnumsByNameRule extends DartRule { static const ruleId = 'prefer-enums-by-name'; static const _warningMessage = 'Prefer using values.byName'; diff --git a/lib/src/analyzers/lint_analyzer/rules/rules_list/prefer_first/prefer_first_rule.dart b/lib/src/analyzers/lint_analyzer/rules/rules_list/prefer_first/prefer_first_rule.dart index f85df6a5..3d72ebc7 100644 --- a/lib/src/analyzers/lint_analyzer/rules/rules_list/prefer_first/prefer_first_rule.dart +++ b/lib/src/analyzers/lint_analyzer/rules/rules_list/prefer_first/prefer_first_rule.dart @@ -10,12 +10,12 @@ import '../../../models/internal_resolved_unit_result.dart'; import '../../../models/issue.dart'; import '../../../models/replacement.dart'; import '../../../models/severity.dart'; -import '../../models/common_rule.dart'; +import '../../models/dart_rule.dart'; import '../../rule_utils.dart'; part 'visitor.dart'; -class PreferFirstRule extends CommonRule { +class PreferFirstRule extends DartRule { static const ruleId = 'prefer-first'; static const _warningMessage = 'Use first instead of accessing the element at zero index.'; diff --git a/lib/src/analyzers/lint_analyzer/rules/rules_list/prefer_immediate_return/prefer_immediate_return_rule.dart b/lib/src/analyzers/lint_analyzer/rules/rules_list/prefer_immediate_return/prefer_immediate_return_rule.dart index 21d29d7b..6ef7fbf2 100644 --- a/lib/src/analyzers/lint_analyzer/rules/rules_list/prefer_immediate_return/prefer_immediate_return_rule.dart +++ b/lib/src/analyzers/lint_analyzer/rules/rules_list/prefer_immediate_return/prefer_immediate_return_rule.dart @@ -9,12 +9,12 @@ import '../../../models/internal_resolved_unit_result.dart'; import '../../../models/issue.dart'; import '../../../models/replacement.dart'; import '../../../models/severity.dart'; -import '../../models/common_rule.dart'; +import '../../models/dart_rule.dart'; import '../../rule_utils.dart'; part 'visitor.dart'; -class PreferImmediateReturnRule extends CommonRule { +class PreferImmediateReturnRule extends DartRule { static const ruleId = 'prefer-immediate-return'; static const _warningMessage = 'Prefer returning the result immediately instead of declaring an intermediate variable right before the return statement.'; diff --git a/lib/src/analyzers/lint_analyzer/rules/rules_list/prefer_iterable_of/prefer_iterable_of_rule.dart b/lib/src/analyzers/lint_analyzer/rules/rules_list/prefer_iterable_of/prefer_iterable_of_rule.dart index b1d5c84b..1e1d2e9a 100644 --- a/lib/src/analyzers/lint_analyzer/rules/rules_list/prefer_iterable_of/prefer_iterable_of_rule.dart +++ b/lib/src/analyzers/lint_analyzer/rules/rules_list/prefer_iterable_of/prefer_iterable_of_rule.dart @@ -12,12 +12,12 @@ import '../../../models/internal_resolved_unit_result.dart'; import '../../../models/issue.dart'; import '../../../models/replacement.dart'; import '../../../models/severity.dart'; -import '../../models/common_rule.dart'; +import '../../models/dart_rule.dart'; import '../../rule_utils.dart'; part 'visitor.dart'; -class PreferIterableOfRule extends CommonRule { +class PreferIterableOfRule extends DartRule { static const ruleId = 'prefer-iterable-of'; static const _warningMessage = 'Prefer using .of'; diff --git a/lib/src/analyzers/lint_analyzer/rules/rules_list/prefer_last/prefer_last_rule.dart b/lib/src/analyzers/lint_analyzer/rules/rules_list/prefer_last/prefer_last_rule.dart index 85d49820..ac8064ab 100644 --- a/lib/src/analyzers/lint_analyzer/rules/rules_list/prefer_last/prefer_last_rule.dart +++ b/lib/src/analyzers/lint_analyzer/rules/rules_list/prefer_last/prefer_last_rule.dart @@ -11,12 +11,12 @@ import '../../../models/internal_resolved_unit_result.dart'; import '../../../models/issue.dart'; import '../../../models/replacement.dart'; import '../../../models/severity.dart'; -import '../../models/common_rule.dart'; +import '../../models/dart_rule.dart'; import '../../rule_utils.dart'; part 'visitor.dart'; -class PreferLastRule extends CommonRule { +class PreferLastRule extends DartRule { static const ruleId = 'prefer-last'; static const _warningMessage = 'Use last instead of accessing the last element by index.'; diff --git a/lib/src/analyzers/lint_analyzer/rules/rules_list/prefer_match_file_name/prefer_match_file_name_rule.dart b/lib/src/analyzers/lint_analyzer/rules/rules_list/prefer_match_file_name/prefer_match_file_name_rule.dart index 1c0eb792..f32d8571 100644 --- a/lib/src/analyzers/lint_analyzer/rules/rules_list/prefer_match_file_name/prefer_match_file_name_rule.dart +++ b/lib/src/analyzers/lint_analyzer/rules/rules_list/prefer_match_file_name/prefer_match_file_name_rule.dart @@ -10,13 +10,13 @@ import '../../../lint_utils.dart'; import '../../../models/internal_resolved_unit_result.dart'; import '../../../models/issue.dart'; import '../../../models/severity.dart'; -import '../../models/common_rule.dart'; +import '../../models/dart_rule.dart'; import '../../node_utils.dart'; import '../../rule_utils.dart'; part 'visitor.dart'; -class PreferMatchFileNameRule extends CommonRule { +class PreferMatchFileNameRule extends DartRule { static const String ruleId = 'prefer-match-file-name'; static final _onlySymbolsRegex = RegExp('[^a-zA-Z0-9]'); diff --git a/lib/src/analyzers/lint_analyzer/rules/rules_list/prefer_moving_to_variable/prefer_moving_to_variable_rule.dart b/lib/src/analyzers/lint_analyzer/rules/rules_list/prefer_moving_to_variable/prefer_moving_to_variable_rule.dart index 197fca9b..9fc40ff9 100644 --- a/lib/src/analyzers/lint_analyzer/rules/rules_list/prefer_moving_to_variable/prefer_moving_to_variable_rule.dart +++ b/lib/src/analyzers/lint_analyzer/rules/rules_list/prefer_moving_to_variable/prefer_moving_to_variable_rule.dart @@ -9,13 +9,13 @@ import '../../../lint_utils.dart'; import '../../../models/internal_resolved_unit_result.dart'; import '../../../models/issue.dart'; import '../../../models/severity.dart'; -import '../../models/common_rule.dart'; +import '../../models/dart_rule.dart'; import '../../rule_utils.dart'; part 'config_parser.dart'; part 'visitor.dart'; -class PreferMovingToVariableRule extends CommonRule { +class PreferMovingToVariableRule extends DartRule { static const String ruleId = 'prefer-moving-to-variable'; static const _warningMessage = diff --git a/lib/src/analyzers/lint_analyzer/rules/rules_list/prefer_static_class/prefer_static_class_rule.dart b/lib/src/analyzers/lint_analyzer/rules/rules_list/prefer_static_class/prefer_static_class_rule.dart index 044424b5..5e7e4462 100644 --- a/lib/src/analyzers/lint_analyzer/rules/rules_list/prefer_static_class/prefer_static_class_rule.dart +++ b/lib/src/analyzers/lint_analyzer/rules/rules_list/prefer_static_class/prefer_static_class_rule.dart @@ -9,14 +9,14 @@ import '../../../lint_utils.dart'; import '../../../models/internal_resolved_unit_result.dart'; import '../../../models/issue.dart'; import '../../../models/severity.dart'; -import '../../models/common_rule.dart'; +import '../../models/dart_rule.dart'; import '../../rule_utils.dart'; import '../common_config.dart'; part 'config_parser.dart'; part 'visitor.dart'; -class PreferStaticClassRule extends CommonRule { +class PreferStaticClassRule extends DartRule { static const String ruleId = 'prefer-static-class'; static const _warningMessage = diff --git a/lib/src/analyzers/lint_analyzer/rules/rules_list/prefer_trailing_comma/prefer_trailing_comma_rule.dart b/lib/src/analyzers/lint_analyzer/rules/rules_list/prefer_trailing_comma/prefer_trailing_comma_rule.dart index 855f57a7..f3ae8d77 100644 --- a/lib/src/analyzers/lint_analyzer/rules/rules_list/prefer_trailing_comma/prefer_trailing_comma_rule.dart +++ b/lib/src/analyzers/lint_analyzer/rules/rules_list/prefer_trailing_comma/prefer_trailing_comma_rule.dart @@ -12,13 +12,13 @@ import '../../../models/internal_resolved_unit_result.dart'; import '../../../models/issue.dart'; import '../../../models/replacement.dart'; import '../../../models/severity.dart'; -import '../../models/common_rule.dart'; +import '../../models/dart_rule.dart'; import '../../rule_utils.dart'; part 'config_parser.dart'; part 'visitor.dart'; -class PreferTrailingCommaRule extends CommonRule { +class PreferTrailingCommaRule extends DartRule { static const String ruleId = 'prefer-trailing-comma'; static const _warningMessage = 'Prefer trailing comma.'; diff --git a/lib/src/analyzers/lint_analyzer/rules/rules_list/tag_name/tag_name_rule.dart b/lib/src/analyzers/lint_analyzer/rules/rules_list/tag_name/tag_name_rule.dart index f775a9df..89b87b22 100644 --- a/lib/src/analyzers/lint_analyzer/rules/rules_list/tag_name/tag_name_rule.dart +++ b/lib/src/analyzers/lint_analyzer/rules/rules_list/tag_name/tag_name_rule.dart @@ -9,13 +9,13 @@ import '../../../models/internal_resolved_unit_result.dart'; import '../../../models/issue.dart'; import '../../../models/replacement.dart'; import '../../../models/severity.dart'; -import '../../models/common_rule.dart'; +import '../../models/dart_rule.dart'; import '../../rule_utils.dart'; part 'utils/config_parser.dart'; part 'visitor.dart'; -class TagNameRule extends CommonRule { +class TagNameRule extends DartRule { static const String ruleId = 'tag-name'; static const _warning = 'Tag name should match class name'; diff --git a/lib/src/version.dart b/lib/src/version.dart index 6388e8c6..043e35fd 100644 --- a/lib/src/version.dart +++ b/lib/src/version.dart @@ -1 +1 @@ -const packageVersion = '1.1.0'; +const packageVersion = '1.1.1'; diff --git a/pubspec.yaml b/pubspec.yaml index ba0ea697..2b827e79 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: dart_code_linter -version: 1.1.0 +version: 1.1.1 description: Dart Code Linter is a software analytics tool that helps developers analyse and improve software quality. Dart Code Linter is based on a fork of Dart Code Metrics. repository: https://github.com/bancolombia/dart-code-linter diff --git a/test/src/analyzers/lint_analyzer/anti_patterns/pattern_utils_test.dart b/test/src/analyzers/lint_analyzer/anti_patterns/pattern_utils_test.dart index e13a810f..eacd266f 100644 --- a/test/src/analyzers/lint_analyzer/anti_patterns/pattern_utils_test.dart +++ b/test/src/analyzers/lint_analyzer/anti_patterns/pattern_utils_test.dart @@ -14,7 +14,7 @@ void main() { () { const id = 'pattern-id'; final documentationUrl = Uri.parse( - 'https://localhost/anti-patterns/pattern-id', + 'https://dcl.apps.bancolombia.com/docs/anti-patterns/pattern-id', ); const severity = Severity.none; @@ -62,7 +62,7 @@ void main() { expect( documentation(pattern1).toString(), equals( - 'https://localhost/anti-patterns/$patternId1', + 'https://dcl.apps.bancolombia.com/docs/anti-patterns/$patternId1', ), ); expect( diff --git a/test/src/analyzers/lint_analyzer/metrics/metric_utils_test.dart b/test/src/analyzers/lint_analyzer/metrics/metric_utils_test.dart index 0580f05a..4603a469 100644 --- a/test/src/analyzers/lint_analyzer/metrics/metric_utils_test.dart +++ b/test/src/analyzers/lint_analyzer/metrics/metric_utils_test.dart @@ -13,7 +13,7 @@ void main() { expect( documentation(metricId1).toString(), equals( - 'https://localhost/metrics/metric-id-1', + 'https://dcl.apps.bancolombia.com/docs/metrics/metric-id-1', ), ); expect( diff --git a/test/src/analyzers/lint_analyzer/reporters/reporters_list/html/components/report_details_tooltip_test.dart b/test/src/analyzers/lint_analyzer/reporters/reporters_list/html/components/report_details_tooltip_test.dart index addd9e11..996bfe65 100644 --- a/test/src/analyzers/lint_analyzer/reporters/reporters_list/html/components/report_details_tooltip_test.dart +++ b/test/src/analyzers/lint_analyzer/reporters/reporters_list/html/components/report_details_tooltip_test.dart @@ -28,7 +28,7 @@ void main() { 'Entity', ).outerHtml, equals( - '
Entity&nbsp;stats:

metric:&nbsp;10

metric violation level:&nbsp;warning

metric 2:&nbsp;2

metric 2 violation level:&nbsp;noted

metric1:&nbsp;0

metric1 violation level:&nbsp;none

metric2:&nbsp;1

metric2 violation level:&nbsp;none

', + '
Entity&nbsp;stats:

metric:&nbsp;10

metric violation level:&nbsp;warning

metric 2:&nbsp;2

metric 2 violation level:&nbsp;noted

metric1:&nbsp;0

metric1 violation level:&nbsp;none

metric2:&nbsp;1

metric2 violation level:&nbsp;none

', ), ); }, @@ -46,7 +46,7 @@ void main() { ), ).outerHtml, equals( - '

metric:&nbsp;10

metric violation level:&nbsp;warning

', + '

metric:&nbsp;10

metric violation level:&nbsp;warning

', ), ); @@ -60,7 +60,7 @@ void main() { ), ).outerHtml, equals( - '

metric:&nbsp;10 units

metric violation level:&nbsp;warning

', + '

metric:&nbsp;10 units

metric violation level:&nbsp;warning

', ), ); }, diff --git a/test/src/analyzers/lint_analyzer/rules/rule_utils_test.dart b/test/src/analyzers/lint_analyzer/rules/rule_utils_test.dart index 017fd2f9..d1e3cce3 100644 --- a/test/src/analyzers/lint_analyzer/rules/rule_utils_test.dart +++ b/test/src/analyzers/lint_analyzer/rules/rule_utils_test.dart @@ -16,7 +16,7 @@ void main() { () { const id = 'rule-id'; final documentationUrl = Uri.parse( - 'https://localhost/rules/flutter/rule-id', + 'https://dcl.apps.bancolombia.com/rules/flutter/rule-id', ); const severity = Severity.none; @@ -72,7 +72,7 @@ void main() { expect( documentation(rule1).toString(), equals( - 'https://localhost/rules/flutter/$ruleId1', + 'https://dcl.apps.bancolombia.com/rules/flutter/$ruleId1', ), ); diff --git a/test/src/analyzers/lint_analyzer/rules/rules_list/list_all_equatable_fields/list_all_equatable_fields_rule_test.dart b/test/src/analyzers/lint_analyzer/rules/rules_list/list_all_equatable_fields/list_all_equatable_fields_rule_test.dart index 1787bb76..e17a1745 100644 --- a/test/src/analyzers/lint_analyzer/rules/rules_list/list_all_equatable_fields/list_all_equatable_fields_rule_test.dart +++ b/test/src/analyzers/lint_analyzer/rules/rules_list/list_all_equatable_fields/list_all_equatable_fields_rule_test.dart @@ -13,7 +13,7 @@ void main() { test('is of type common', () { expect( ListAllEquatableFieldsRule().type, - equals(RuleType.common), + equals(RuleType.dart), ); }); diff --git a/tools/analyzer_plugin/pubspec.yaml b/tools/analyzer_plugin/pubspec.yaml index 382ca3af..c00df1ed 100644 --- a/tools/analyzer_plugin/pubspec.yaml +++ b/tools/analyzer_plugin/pubspec.yaml @@ -1,12 +1,12 @@ name: dart_code_linter_plugin_loader description: This pubspec determines the version of the analyzer plugin to load. -version: 1.1.0 +version: 1.1.1 environment: sdk: ">=2.14.0 <3.0.0" dependencies: - dart_code_linter: 1.1.0 + dart_code_linter: 1.1.1 dev_dependencies: lints: ^1.0.1