Skip to content
This repository has been archived by the owner on Jul 16, 2023. It is now read-only.

Commit

Permalink
docs: update example
Browse files Browse the repository at this point in the history
  • Loading branch information
incendial committed Nov 2, 2022
1 parent 3c37770 commit 12eff9b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion example/example.dart → example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Future<void> main() async {
},
antiPatterns: {'long-method': {}},
shouldPrintConfig: false,
analysisOptionsPath: '',
analysisOptionsPath: null,
);

const analyzer = LintAnalyzer();
Expand Down
2 changes: 1 addition & 1 deletion website/docs/getting-started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).

0 comments on commit 12eff9b

Please sign in to comment.