createAnalysisOptionsFile method

void createAnalysisOptionsFile({
  1. List<String> includes = const [],
  2. List<Feature>? experimentalFeatures,
  3. List<String> legacyPlugins = const [],
  4. List<String> cannotIgnore = const [],
  5. List<String> lints = const [],
  6. Map<String, Object?> errors = const {},
  7. bool propagateLinterExceptions = true,
  8. bool strictCasts = false,
  9. bool strictInference = false,
  10. bool strictRawTypes = false,
})
inherited

Create an analysis options file based on the given arguments.

Implementation

void createAnalysisOptionsFile({
  List<String> includes = const [],
  List<Feature>? experimentalFeatures,
  List<String> legacyPlugins = const [],
  List<String> cannotIgnore = const [],
  List<String> lints = const [],
  Map<String, Object?> errors = const {},
  bool propagateLinterExceptions = true,
  bool strictCasts = false,
  bool strictInference = false,
  bool strictRawTypes = false,
}) {
  writeAnalysisOptionsFile(
    analysisOptionsContent(
      includes: includes,
      experimentalFeatures: experimentalFeatures ?? this.experimentalFeatures,
      legacyPlugins: legacyPlugins,
      propagateLinterExceptions: propagateLinterExceptions,
      rules: lints,
      errors: errors,
      unignorableNames: cannotIgnore,
      strictCasts: strictCasts,
      strictInference: strictInference,
      strictRawTypes: strictRawTypes,
    ),
  );
}