mirror of
https://github.com/flutter/samples.git
synced 2026-04-27 01:48:21 +00:00
[linting_tool] Implement saving rules to DB (#860)
This commit is contained in:
committed by
GitHub
parent
1818925286
commit
bbb8e342f1
@@ -3,18 +3,27 @@
|
||||
// found in the LICENSE file.
|
||||
|
||||
import 'package:equatable/equatable.dart';
|
||||
import 'package:hive/hive.dart';
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
part 'rule.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
@HiveType(typeId: 0)
|
||||
class Rule extends Equatable {
|
||||
@HiveField(0)
|
||||
final String name;
|
||||
@HiveField(1)
|
||||
final String description;
|
||||
@HiveField(2)
|
||||
final String group;
|
||||
@HiveField(3)
|
||||
final String maturity;
|
||||
@HiveField(4)
|
||||
final List<String> incompatible;
|
||||
@HiveField(5)
|
||||
final List<String> sets;
|
||||
@HiveField(6)
|
||||
final String details;
|
||||
|
||||
const Rule({
|
||||
|
||||
Reference in New Issue
Block a user