blob: 7d7a87bc4dade70f146205db6dbc8b60c72243f4 [file] [log] [blame]
// Copyright (c) 2019, 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/error/error.dart';
import 'package:analyzer/src/lint/linter.dart'; // ignore: implementation_imports
import 'package:pub_semver/pub_semver.dart';
import '../analyzer.dart';
class UnsafeHtml extends LintRule {
UnsafeHtml()
: super(
name: LintNames.unsafe_html,
description: 'Avoid unsafe HTML APIs.',
state: RuleState.removed(since: Version(3, 7, 0)),
);
@override
DiagnosticCode get diagnosticCode => LinterLintCode.removed_lint;
}