blob: a740c7121b805126315880285165dc00ac1709e1 [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.
import 'package:analyzer/analysis_rule/analysis_rule.dart';
import 'package:analyzer/src/lint/registry.dart';
class LinterOptions {
final Iterable<AbstractAnalysisRule> enabledRules;
/// The path to the Dart SDK.
final String? dartSdkPath;
LinterOptions({
Iterable<AbstractAnalysisRule>? enabledRules,
this.dartSdkPath,
}) : enabledRules = enabledRules ?? Registry.ruleRegistry;
}