blob: 723f6649b848285ea43ba4347784d440b9e3abda [file] [log] [blame] [edit]
// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:analyzer/analysis_rule/rule_state.dart';
import 'package:analyzer/error/error.dart';
import '../analyzer.dart';
const _desc =
r'Place the `super` call last in a constructor initialization list.';
class SuperGoesLast extends LintRule {
SuperGoesLast()
: super(
name: LintNames.super_goes_last,
description: _desc,
state: RuleState.removed(since: dart3),
);
@override
DiagnosticCode get diagnosticCode => LinterLintCode.removedLint;
}