From d48df476e245523e34e4bf873e4b2bb0a7ab8592 Mon Sep 17 00:00:00 2001 From: dab246 Date: Fri, 22 Apr 2022 11:10:12 +0700 Subject: [PATCH] TF-495 Add document for linter plugin --- docs/adr/0004-linter.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 docs/adr/0004-linter.md diff --git a/docs/adr/0004-linter.md b/docs/adr/0004-linter.md new file mode 100644 index 000000000..6cb887fe4 --- /dev/null +++ b/docs/adr/0004-linter.md @@ -0,0 +1,26 @@ +# 3. Integrate linter into app + +Date: 2022-04-22 + +## Status + +Accepted + +## Context + +- Use linter to encourage good coding practices +- Helps optimize and increase application performance + +## Decision + +- To use we follow these steps: + + Depend on this package as a `dev_dependency` by running `flutter pub add --dev flutter_lints`. + + Create an `analysis_options.yaml` file at the root of the package (alongside the `pubspec.yaml` file) and include: `package:flutter_lints/flutter.yaml` from it. + +## Official document + +- [flutter_lints](https://pub.dev/packages/flutter_lints) + +## Consequences + +- The code is written standard according to the linter toolkit. Performance is improved.