From 12eff9b313af04417854b2f78335c130e3da2ce8 Mon Sep 17 00:00:00 2001 From: Dmitry Zhifarsky Date: Wed, 2 Nov 2022 21:23:16 +0400 Subject: [PATCH] docs: update example --- example/README.md | 2 +- example/{example.dart => lib/main.dart} | 2 +- website/docs/getting-started/installation.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename example/{example.dart => lib/main.dart} (98%) diff --git a/example/README.md b/example/README.md index 14eaaa3a0e..2d8e2648af 100644 --- a/example/README.md +++ b/example/README.md @@ -8,7 +8,7 @@ To use Dart Code Metrics as a plugin or a CLI, check out [this repository](https ## As a library -Dart Code Metrics can be used as a library, imported and called directly from your code. Continue with [this example](https://github.com/dart-code-checker/dart-code-metrics/blob/master/example/example.dart) in order to get more details. +Dart Code Metrics can be used as a library, imported and called directly from your code. Continue with [this example](https://github.com/dart-code-checker/dart-code-metrics/blob/master/example/lib/main.dart) in order to get more details. ## Presets diff --git a/example/example.dart b/example/lib/main.dart similarity index 98% rename from example/example.dart rename to example/lib/main.dart index 1104283732..2c02b6a5e6 100644 --- a/example/example.dart +++ b/example/lib/main.dart @@ -24,7 +24,7 @@ Future main() async { }, antiPatterns: {'long-method': {}}, shouldPrintConfig: false, - analysisOptionsPath: '', + analysisOptionsPath: null, ); const analyzer = LintAnalyzer(); diff --git a/website/docs/getting-started/installation.md b/website/docs/getting-started/installation.md index a9a1c9d76c..f567529888 100644 --- a/website/docs/getting-started/installation.md +++ b/website/docs/getting-started/installation.md @@ -47,4 +47,4 @@ To use Dart Code Metrics as a command-line tool refer to the [Command Line Inter ### Library {#library} -To use Dart Code Metrics as a library refer to this [example](https://github.com/dart-code-checker/dart-code-metrics/blob/master/example/example.dart). +To use Dart Code Metrics as a library refer to this [example](https://github.com/dart-code-checker/dart-code-metrics/blob/master/example/lib/main.dart).