blob: 441d59ff105b23afb3bc6389c855c7a8c60e641d [file] [log] [blame]
// Copyright (c) 2024, 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.
// ignore: implementation_imports
import 'package:analyzer/src/lint/linter.dart';
// ignore: implementation_imports
import 'package:analyzer/src/lint/registry.dart';
class LinterOptions {
final Iterable<AbstractAnalysisRule> enabledRules;
/// The path to the Dart SDK.
String? dartSdkPath;
/// Whether to gather timing data during analysis.
bool enableTiming = false;
LinterOptions({Iterable<AbstractAnalysisRule>? enabledRules})
: enabledRules = enabledRules ?? Registry.ruleRegistry;
}