Skip to content

Commit 2953157

Browse files
robelatorclaude
andcommitted
+Update and format
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 668ee89 commit 2953157

7 files changed

Lines changed: 36 additions & 41 deletions

File tree

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
[![banner](https://github.com/dev-cetera/df_generate_dart_indexes/blob/v0.6.3/doc/assets/banner.png?raw=true)](https://github.com/dev-cetera)
1+
[![banner](https://github.com/dev-cetera/df_generate_dart_indexes/blob/v0.6.4/doc/assets/banner.png?raw=true)](https://github.com/dev-cetera)
22

33
[![pub](https://img.shields.io/pub/v/df_generate_dart_indexes.svg)](https://pub.dev/packages/df_generate_dart_indexes)
4-
[![tag](https://img.shields.io/badge/Tag-v0.6.3-purple?logo=github)](https://github.com/dev-cetera/df_generate_dart_indexes/tree/v0.6.3)
4+
[![tag](https://img.shields.io/badge/Tag-v0.6.4-purple?logo=github)](https://github.com/dev-cetera/df_generate_dart_indexes/tree/v0.6.4)
55
[![buymeacoffee](https://img.shields.io/badge/Buy%20Me%20A%20Coffee-FFDD00?logo=buy-me-a-coffee&logoColor=black)](https://www.buymeacoffee.com/dev_cetera)
66
[![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)
7+
[![patreon](https://img.shields.io/badge/Patreon-grey?logo=patreon)](https://www.patreon.com/robelator)
88
[![discord](https://img.shields.io/badge/Discord-5865F2?logo=discord&logoColor=white)](https://discord.gg/gEQ8y2nfyX)
99
[![instagram](https://img.shields.io/badge/Instagram-E4405F?logo=instagram&logoColor=white)](https://www.instagram.com/dev_cetera/)
1010
[![license](https://img.shields.io/badge/License-MIT-blue.svg)](https://raw.githubusercontent.com/dev-cetera/df_generate_dart_indexes/main/LICENSE)
@@ -54,7 +54,6 @@ export './widgets/my_button.dart';
5454
export './widgets/my_title_text.dart';
5555
```
5656

57-
5857
<!-- END _README_CONTENT -->
5958

6059
---

analysis_options.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# Dev-Cetera analysis_options.yaml for Dart - Version 1
1+
# For dev-cetera.com
2+
# Version: 1
23

34
include: package:lints/recommended.yaml
45

@@ -9,7 +10,6 @@ linter:
910
avoid_web_libraries_in_flutter: true
1011
camel_case_types: false
1112
constant_identifier_names: false
12-
directives_ordering: true
1313
file_names: false
1414
library_private_types_in_public_api: false
1515
non_constant_identifier_names: false
@@ -19,6 +19,7 @@ linter:
1919
prefer_final_fields: true
2020
prefer_function_declarations_over_variables: false
2121
prefer_relative_imports: true
22+
prefer_single_quotes: true
2223
require_trailing_commas: true
2324
unawaited_futures: true
2425
unnecessary_this: true
@@ -32,24 +33,24 @@ analyzer:
3233
strict-raw-types: true
3334
exclude:
3435
- build/**
36+
# - '**.g.dart'
3537

3638
errors:
3739
always_declare_return_types: error
3840
avoid_renaming_method_parameters: error
3941
avoid_type_to_string: error
42+
close_sinks: error
43+
collection_methods_unrelated_type: error
4044
depend_on_referenced_packages: error
4145
flutter_style_todos: error
4246
invalid_override_of_non_virtual_member: error
4347
invalid_use_of_protected_member: error
48+
missing_return: error
4449
no_leading_underscores_for_local_identifiers: error
4550
prefer_final_in_for_each: error
4651
prefer_relative_imports: error
47-
prefer_single_quotes: error
48-
unnecessary_async: error
49-
unnecessary_await_in_return: error
50-
unnecessary_late: error
52+
record_literal_one_positional_no_trailing_comma: error
5153
unnecessary_new: error
52-
unnecessary_unawaited: error
5354
unrelated_type_equality_checks: error
5455
unused_label: ignore
5556
use_key_in_widget_constructors: error

bin/analysis_options.yaml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,5 @@
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+
# For dev-cetera.com
2+
# Version: 1
133

144
include: package:lints/recommended.yaml
155

@@ -31,6 +21,7 @@ linter:
3121
prefer_relative_imports: true
3222
prefer_single_quotes: true
3323
require_trailing_commas: true
24+
unawaited_futures: true
3425
unnecessary_this: true
3526

3627
analyzer:
@@ -42,21 +33,26 @@ analyzer:
4233
strict-raw-types: true
4334
exclude:
4435
- build/**
36+
# - '**.g.dart'
4537

4638
errors:
47-
unused_label: ignore
4839
always_declare_return_types: error
4940
avoid_renaming_method_parameters: error
5041
avoid_type_to_string: error
42+
close_sinks: error
43+
collection_methods_unrelated_type: error
5144
depend_on_referenced_packages: error
5245
flutter_style_todos: error
5346
invalid_override_of_non_virtual_member: error
5447
invalid_use_of_protected_member: error
48+
missing_return: error
5549
no_leading_underscores_for_local_identifiers: error
5650
prefer_final_in_for_each: error
5751
prefer_relative_imports: error
52+
record_literal_one_positional_no_trailing_comma: error
5853
unnecessary_new: error
5954
unrelated_type_equality_checks: error
55+
unused_label: ignore
6056
use_key_in_widget_constructors: error
6157

6258
formatter:

bin/pubspec.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@
1313

1414
name: generate_dart_indexes
1515
homepage: https://dev-cetera.com/
16-
repository: https://github.com/robmllze/df_generate_dart_indexes
1716
funding:
18-
- https://www.patreon.com/c/t0mb3rr
19-
- https://github.com/sponsors/t0mb3rr
17+
- https://www.buymeacoffee.com/dev_cetera
18+
- https://www.patreon.com/c/robelator
19+
- https://github.com/sponsors/robelator
20+
- https://www.patreon.com/c/robelator
21+
- https://github.com/sponsors/robelator
2022
- https://www.buymeacoffee.com/dev_cetera
2123

2224

lib/src/generate_dart_indexes.dart

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +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
97-
.readTemplateFromPathOrUrl(template)
98-
.value;
96+
final result =
97+
await MdTemplateUtility.i.readTemplateFromPathOrUrl(template).value;
9998

10099
if (result.isErr()) {
101100
Log.printRed(' Failed to read template!');
@@ -109,10 +108,7 @@ Future<void> generateDartIndexes(
109108
Log.printWhite('Generating...');
110109
final inputBasename = p.basename(inputPath);
111110
for (final entry in templateData.entries) {
112-
final fileName = p
113-
.basename(entry.key)
114-
.replaceAll('.md', '')
115-
.replaceAll(
111+
final fileName = p.basename(entry.key).replaceAll('.md', '').replaceAll(
116112
'{basename}',
117113
inputBasename.replaceFirst(RegExp(r'^_+'), ''),
118114
);

lib/src/generate_dart_indexes_ts.dart

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +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
97-
.readTemplateFromPathOrUrl(template)
98-
.value;
96+
final result =
97+
await MdTemplateUtility.i.readTemplateFromPathOrUrl(template).value;
9998

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

pubspec.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,15 @@
1313

1414
name: df_generate_dart_indexes
1515
homepage: https://dev-cetera.com/
16-
repository: https://github.com/robmllze/df_generate_dart_indexes
1716
funding:
1817
- https://www.buymeacoffee.com/dev_cetera
19-
- https://www.patreon.com/c/t0mb3rr
20-
- https://github.com/sponsors/t0mb3rr
18+
- https://www.patreon.com/c/robelator
19+
- https://github.com/sponsors/robelator
20+
- https://www.buymeacoffee.com/dev_cetera
21+
- https://www.patreon.com/c/robelator
22+
- https://github.com/sponsors/robelator
2123
description: A tool to generate index/exports files also known as barrel files for all Dart files in a directory.
22-
version: 0.6.3
24+
version: 0.6.4
2325
topics:
2426
- barrel-file
2527
- build-runner

0 commit comments

Comments
 (0)