Skip to content

Commit c582dbf

Browse files
committed
+Formatting updates
1 parent 3ab2563 commit c582dbf

File tree

9 files changed

+40
-37
lines changed

9 files changed

+40
-37
lines changed

README.md

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
1-
<a href="https://www.buymeacoffee.com/dev_cetera" target="_blank"><img align="right" src="https://cdn.buymeacoffee.com/buttons/default-orange.png" height="48"></a>
2-
<a href="https://discord.gg/gEQ8y2nfyX" target="_blank"><img align="right" src="https://raw.githubusercontent.com/dev-cetera/.github/refs/heads/main/assets/icons/discord_icon/discord_icon.svg" height="48"></a>
1+
[![banner](https://github.com/dev-cetera/df_generate_dart_indexes/blob/v0.6.2/doc/assets/banner.png?raw=true)](https://github.com/dev-cetera)
32

4-
Dart & Flutter Packages by dev-cetera.com & contributors.
5-
6-
[![sponsor](https://img.shields.io/badge/sponsor-grey?logo=github-sponsors)](https://github.com/sponsors/dev-cetera)
7-
[![patreon](https://img.shields.io/badge/patreon-grey?logo=patreon)](https://www.patreon.com/c/RobertMollentze)
83
[![pub](https://img.shields.io/pub/v/df_generate_dart_indexes.svg)](https://pub.dev/packages/df_generate_dart_indexes)
9-
[![tag](https://img.shields.io/badge/tag-v0.6.2-purple?logo=github)](https://github.com/dev-cetera/df_generate_dart_indexes/tree/v0.6.2)
10-
[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/dev-cetera/df_generate_dart_indexes/main/LICENSE)
4+
[![tag](https://img.shields.io/badge/Tag-v0.6.2-purple?logo=github)](https://github.com/dev-cetera/df_generate_dart_indexes/tree/v0.6.2)
5+
[![buymeacoffee](https://img.shields.io/badge/Buy%20Me%20A%20Coffee-FFDD00?logo=buy-me-a-coffee&logoColor=black)](https://www.buymeacoffee.com/dev_cetera)
6+
[![sponsor](https://img.shields.io/badge/Sponsor-grey?logo=github-sponsors&logoColor=pink)](https://github.com/sponsors/dev-cetera)
7+
[![patreon](https://img.shields.io/badge/Patreon-grey?logo=patreon)](https://www.patreon.com/t0mb3rr)
8+
[![discord](https://img.shields.io/badge/Discord-5865F2?logo=discord&logoColor=white)](https://discord.gg/gEQ8y2nfyX)
9+
[![instagram](https://img.shields.io/badge/Instagram-E4405F?logo=instagram&logoColor=white)](https://www.instagram.com/dev_cetera/)
10+
[![license](https://img.shields.io/badge/License-MIT-blue.svg)](https://raw.githubusercontent.com/dev-cetera/df_generate_dart_indexes/main/LICENSE)
1111

1212
---
1313

14-
[![banner](https://github.com/dev-cetera/df_safer_dart/blob/v0.6.2/doc/assets/banner.png?raw=true)](https://github.com/dev-cetera)
15-
1614
<!-- BEGIN _README_CONTENT -->
1715

1816
A tool to generate index/exports files also known as barrel files for all Dart files in a directory.
@@ -61,7 +59,7 @@ export './widgets/my_title_text.dart';
6159

6260
---
6361

64-
☝️ Please refer to the [API reference](https://pub.dev/documentation/df_generate_dart_indexes/) for more information.
62+
🔍 For more information, refer to the [API reference](https://pub.dev/documentation/df_generate_dart_indexes/).
6563

6664
---
6765

@@ -71,7 +69,6 @@ This is an open-source project, and we warmly welcome contributions from everyon
7169

7270
### ☝️ Ways you can contribute
7371

74-
- **Buy me a coffee:** If you'd like to support the project financially, consider [buying me a coffee](https://www.buymeacoffee.com/dev_cetera). Your support helps cover the costs of development and keeps the project growing.
7572
- **Find us on Discord:** Feel free to ask questions and engage with the community here: https://discord.gg/gEQ8y2nfyX.
7673
- **Share your ideas:** Every perspective matters, and your ideas can spark innovation.
7774
- **Help others:** Engage with other users by offering advice, solutions, or troubleshooting assistance.
@@ -88,7 +85,7 @@ If you're enjoying this package and find it valuable, consider showing your appr
8885

8986
<a href="https://www.buymeacoffee.com/dev_cetera" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" height="40"></a>
9087

91-
## 🧑‍⚖️ License
88+
## LICENSE
9289

9390
This project is released under the [MIT License](https://raw.githubusercontent.com/dev-cetera/df_generate_dart_indexes/main/LICENSE). See [LICENSE](https://raw.githubusercontent.com/dev-cetera/df_generate_dart_indexes/main/LICENSE) for more information.
9491

analysis_options.yaml

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,4 @@
1-
##.title
2-
## ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
3-
##
4-
## Copyright © dev-cetera.com & contributors.
5-
##
6-
## The use of this source code is governed by an MIT-style license described in
7-
## the LICENSE file located in this project's root directory.
8-
##
9-
## See: https://opensource.org/license/mit
10-
##
11-
## ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
12-
##.title~
1+
# Dev-Cetera analysis_options.yaml for Dart - Version 1
132

143
include: package:lints/recommended.yaml
154

@@ -20,6 +9,7 @@ linter:
209
avoid_web_libraries_in_flutter: true
2110
camel_case_types: false
2211
constant_identifier_names: false
12+
directives_ordering: true
2313
file_names: false
2414
library_private_types_in_public_api: false
2515
non_constant_identifier_names: false
@@ -29,8 +19,8 @@ linter:
2919
prefer_final_fields: true
3020
prefer_function_declarations_over_variables: false
3121
prefer_relative_imports: true
32-
prefer_single_quotes: true
3322
require_trailing_commas: true
23+
unawaited_futures: true
3424
unnecessary_this: true
3525

3626
analyzer:
@@ -44,7 +34,6 @@ analyzer:
4434
- build/**
4535

4636
errors:
47-
unused_label: ignore
4837
always_declare_return_types: error
4938
avoid_renaming_method_parameters: error
5039
avoid_type_to_string: error
@@ -55,8 +44,14 @@ analyzer:
5544
no_leading_underscores_for_local_identifiers: error
5645
prefer_final_in_for_each: error
5746
prefer_relative_imports: error
47+
prefer_single_quotes: error
48+
unnecessary_async: error
49+
unnecessary_await_in_return: error
50+
unnecessary_late: error
5851
unnecessary_new: error
52+
unnecessary_unawaited: error
5953
unrelated_type_equality_checks: error
54+
unused_label: ignore
6055
use_key_in_widget_constructors: error
6156

6257
formatter:

bin/pubspec.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@ name: generate_dart_indexes
1515
homepage: https://dev-cetera.com/
1616
repository: https://github.com/robmllze/df_generate_dart_indexes
1717
funding:
18+
- https://www.patreon.com/c/t0mb3rr
19+
- https://github.com/sponsors/t0mb3rr
1820
- https://www.buymeacoffee.com/dev_cetera
19-
- https://www.patreon.com/c/RobertMollentze
20-
- https://github.com/sponsors/robmllze
21+
22+
2123
publish_to: none
2224

2325
## -----------------------------------------------------------------------------

example/example.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
// ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
88
//.title~
99

10+
// ignore_for_file: directives_ordering
11+
1012
export './screens/welcome_screen/widget.dart';
1113
export './screens/home_screen/widget.dart';
1214
export './widgets/my_button.dart';

lib/src/generate_dart_indexes.dart

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
// ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
1212
//.title~
1313

14-
import 'package:df_gen_core/df_gen_core.dart';
1514
// ignore: implementation_imports
1615
import 'package:df_config/src/_etc/replace_data.dart';
1716

17+
import 'package:df_gen_core/df_gen_core.dart';
1818
import 'package:path/path.dart' as p;
1919

2020
// ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
@@ -93,7 +93,8 @@ Future<void> generateDartIndexes(
9393
final templateData = <String, String>{};
9494
for (final template in templates) {
9595
Log.printWhite('Reading template at: $template...');
96-
final result = await MdTemplateUtility.i.readTemplateFromPathOrUrl(template).value;
96+
final result =
97+
await MdTemplateUtility.i.readTemplateFromPathOrUrl(template).value;
9798

9899
if (result.isErr()) {
99100
Log.printRed(' Failed to read template!');
@@ -117,7 +118,8 @@ Future<void> generateDartIndexes(
117118
final data = template.replaceData({
118119
'___PUBLIC_EXPORTS___': _publicExports(
119120
inputPath,
120-
findings.map((e) => e.path).where((e) => e != skipPath).toList()..sort(),
121+
findings.map((e) => e.path).where((e) => e != skipPath).toList()
122+
..sort(),
121123
(e) => true,
122124
(e) {
123125
final unixPath = p.split(e).join('/');

lib/src/generate_dart_indexes_ts.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
// ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
1212
//.title~
1313

14-
import 'package:df_gen_core/df_gen_core.dart';
1514
// ignore: implementation_imports
1615
import 'package:df_config/src/_etc/replace_data.dart';
1716

17+
import 'package:df_gen_core/df_gen_core.dart';
1818
import 'package:path/path.dart' as p;
1919

2020
// ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
@@ -93,7 +93,8 @@ Future<void> generateDartIndexesTs(
9393
final templateData = <String, String>{};
9494
for (final template in templates) {
9595
Log.printWhite('Reading template at: $template...');
96-
final result = await MdTemplateUtility.i.readTemplateFromPathOrUrl(template).value;
96+
final result =
97+
await MdTemplateUtility.i.readTemplateFromPathOrUrl(template).value;
9798

9899
if (result.isErr()) {
99100
Log.printRed(' Failed to read template!');

pubspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ homepage: https://dev-cetera.com/
1616
repository: https://github.com/robmllze/df_generate_dart_indexes
1717
funding:
1818
- https://www.buymeacoffee.com/dev_cetera
19-
- https://www.patreon.com/c/RobertMollentze
20-
- https://github.com/sponsors/robmllze
19+
- https://www.patreon.com/c/t0mb3rr
20+
- https://github.com/sponsors/t0mb3rr
2121
description: A tool to generate index/exports files also known as barrel files for all Dart files in a directory.
22-
version: 0.6.2
22+
version: 0.6.3
2323
topics:
2424
- barrel-file
2525
- build-runner

templates/_index.g.dart.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,7 @@
88
// ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
99
//.title~
1010
11+
// ignore_for_file: directives_ordering
12+
1113
___PUBLIC_EXPORTS___
1214
```

templates/_{basename}.g.dart.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,7 @@
88
// ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
99
//.title~
1010
11+
// ignore_for_file: directives_ordering
12+
1113
___PUBLIC_EXPORTS___
1214
```

0 commit comments

Comments
 (0)