From 229bb8dd7d75cda2080cc06e47affc47345f488e Mon Sep 17 00:00:00 2001 From: naipaka Date: Mon, 25 Dec 2023 18:02:17 +0900 Subject: [PATCH] refactor: Add altfire_lints package and its dependencies --- .cspell/app-words.txt | 1 + .../{flutterfire_lint => altfire_lints}/.gitignore | 0 .../{flutterfire_lint => altfire_lints}/.metadata | 0 .../CHANGELOG.md | 0 .../{flutterfire_lint => altfire_lints}/README.md | 0 .../analysis_options.yaml | 0 .../lib/altfire_lints.dart} | 4 ++-- .../lib/src/lints/dispose_config.dart | 0 .../pubspec.yaml | 4 ++-- .../.gitignore | 0 .../.metadata | 0 .../analysis_options.yaml | 0 .../pubspec.yaml | 6 +++--- .../test/dummy_test.dart | 0 .../test/lints/dispose_config.dart | 0 .../flutterfire_configurator/example/pubspec.lock | 14 +++++++------- .../flutterfire_configurator/example/pubspec.yaml | 4 ++-- 17 files changed, 17 insertions(+), 16 deletions(-) rename packages/{flutterfire_lint => altfire_lints}/.gitignore (100%) rename packages/{flutterfire_lint => altfire_lints}/.metadata (100%) rename packages/{flutterfire_lint => altfire_lints}/CHANGELOG.md (100%) rename packages/{flutterfire_lint => altfire_lints}/README.md (100%) rename packages/{flutterfire_lint => altfire_lints}/analysis_options.yaml (100%) rename packages/{flutterfire_lint/lib/flutterfire_lint.dart => altfire_lints/lib/altfire_lints.dart} (69%) rename packages/{flutterfire_lint => altfire_lints}/lib/src/lints/dispose_config.dart (100%) rename packages/{flutterfire_lint => altfire_lints}/pubspec.yaml (57%) rename packages/{flutterfire_lint_test => altfire_lints_test}/.gitignore (100%) rename packages/{flutterfire_lint_test => altfire_lints_test}/.metadata (100%) rename packages/{flutterfire_lint_test => altfire_lints_test}/analysis_options.yaml (100%) rename packages/{flutterfire_lint_test => altfire_lints_test}/pubspec.yaml (79%) rename packages/{flutterfire_lint_test => altfire_lints_test}/test/dummy_test.dart (100%) rename packages/{flutterfire_lint_test => altfire_lints_test}/test/lints/dispose_config.dart (100%) diff --git a/.cspell/app-words.txt b/.cspell/app-words.txt index a2d6302..341577f 100644 --- a/.cspell/app-words.txt +++ b/.cspell/app-words.txt @@ -1,2 +1,3 @@ # App Specific Words +altfire configurator diff --git a/packages/flutterfire_lint/.gitignore b/packages/altfire_lints/.gitignore similarity index 100% rename from packages/flutterfire_lint/.gitignore rename to packages/altfire_lints/.gitignore diff --git a/packages/flutterfire_lint/.metadata b/packages/altfire_lints/.metadata similarity index 100% rename from packages/flutterfire_lint/.metadata rename to packages/altfire_lints/.metadata diff --git a/packages/flutterfire_lint/CHANGELOG.md b/packages/altfire_lints/CHANGELOG.md similarity index 100% rename from packages/flutterfire_lint/CHANGELOG.md rename to packages/altfire_lints/CHANGELOG.md diff --git a/packages/flutterfire_lint/README.md b/packages/altfire_lints/README.md similarity index 100% rename from packages/flutterfire_lint/README.md rename to packages/altfire_lints/README.md diff --git a/packages/flutterfire_lint/analysis_options.yaml b/packages/altfire_lints/analysis_options.yaml similarity index 100% rename from packages/flutterfire_lint/analysis_options.yaml rename to packages/altfire_lints/analysis_options.yaml diff --git a/packages/flutterfire_lint/lib/flutterfire_lint.dart b/packages/altfire_lints/lib/altfire_lints.dart similarity index 69% rename from packages/flutterfire_lint/lib/flutterfire_lint.dart rename to packages/altfire_lints/lib/altfire_lints.dart index e88d983..eb9a965 100644 --- a/packages/flutterfire_lint/lib/flutterfire_lint.dart +++ b/packages/altfire_lints/lib/altfire_lints.dart @@ -2,9 +2,9 @@ import 'package:custom_lint_builder/custom_lint_builder.dart'; import 'src/lints/dispose_config.dart'; -PluginBase createPlugin() => _FlutterFirePlugin(); +PluginBase createPlugin() => _AltFirePlugin(); -class _FlutterFirePlugin extends PluginBase { +class _AltFirePlugin extends PluginBase { @override List getLintRules(CustomLintConfigs configs) => [ const DisposeConfig(), diff --git a/packages/flutterfire_lint/lib/src/lints/dispose_config.dart b/packages/altfire_lints/lib/src/lints/dispose_config.dart similarity index 100% rename from packages/flutterfire_lint/lib/src/lints/dispose_config.dart rename to packages/altfire_lints/lib/src/lints/dispose_config.dart diff --git a/packages/flutterfire_lint/pubspec.yaml b/packages/altfire_lints/pubspec.yaml similarity index 57% rename from packages/flutterfire_lint/pubspec.yaml rename to packages/altfire_lints/pubspec.yaml index 98f2a46..1b9c7d5 100644 --- a/packages/flutterfire_lint/pubspec.yaml +++ b/packages/altfire_lints/pubspec.yaml @@ -1,5 +1,5 @@ -name: flutterfire_lint -description: flutterfire_lint is helpful in preventing common issues with wrapper packages for flutterfire. +name: altfire_lints +description: altfire_lints is helpful in preventing common issues with wrapper packages for flutterfire. version: 0.0.1 environment: diff --git a/packages/flutterfire_lint_test/.gitignore b/packages/altfire_lints_test/.gitignore similarity index 100% rename from packages/flutterfire_lint_test/.gitignore rename to packages/altfire_lints_test/.gitignore diff --git a/packages/flutterfire_lint_test/.metadata b/packages/altfire_lints_test/.metadata similarity index 100% rename from packages/flutterfire_lint_test/.metadata rename to packages/altfire_lints_test/.metadata diff --git a/packages/flutterfire_lint_test/analysis_options.yaml b/packages/altfire_lints_test/analysis_options.yaml similarity index 100% rename from packages/flutterfire_lint_test/analysis_options.yaml rename to packages/altfire_lints_test/analysis_options.yaml diff --git a/packages/flutterfire_lint_test/pubspec.yaml b/packages/altfire_lints_test/pubspec.yaml similarity index 79% rename from packages/flutterfire_lint_test/pubspec.yaml rename to packages/altfire_lints_test/pubspec.yaml index 0c6c7b0..50356d6 100644 --- a/packages/flutterfire_lint_test/pubspec.yaml +++ b/packages/altfire_lints_test/pubspec.yaml @@ -1,4 +1,4 @@ -name: flutterfire_lint_test +name: altfire_lints_test publish_to: none environment: @@ -10,12 +10,12 @@ dependencies: flutterfire_configurator: dev_dependencies: + altfire_lints: + path: ../altfire_lints altive_lints: ^1.9.0 custom_lint: ^0.5.7 flutter_test: sdk: flutter - flutterfire_lint: - path: ../flutterfire_lint dependency_overrides: flutterfire_configurator: diff --git a/packages/flutterfire_lint_test/test/dummy_test.dart b/packages/altfire_lints_test/test/dummy_test.dart similarity index 100% rename from packages/flutterfire_lint_test/test/dummy_test.dart rename to packages/altfire_lints_test/test/dummy_test.dart diff --git a/packages/flutterfire_lint_test/test/lints/dispose_config.dart b/packages/altfire_lints_test/test/lints/dispose_config.dart similarity index 100% rename from packages/flutterfire_lint_test/test/lints/dispose_config.dart rename to packages/altfire_lints_test/test/lints/dispose_config.dart diff --git a/packages/flutterfire_configurator/example/pubspec.lock b/packages/flutterfire_configurator/example/pubspec.lock index ca4930c..9224c05 100644 --- a/packages/flutterfire_configurator/example/pubspec.lock +++ b/packages/flutterfire_configurator/example/pubspec.lock @@ -17,6 +17,13 @@ packages: url: "https://pub.dev" source: hosted version: "1.3.11" + altfire_lints: + dependency: "direct dev" + description: + path: "../../altfire_lints" + relative: true + source: path + version: "0.0.1" altive_lints: dependency: "direct dev" description: @@ -271,13 +278,6 @@ packages: relative: true source: path version: "0.1.0" - flutterfire_lint: - dependency: "direct dev" - description: - path: "../../flutterfire_lint" - relative: true - source: path - version: "0.0.1" freezed_annotation: dependency: transitive description: diff --git a/packages/flutterfire_configurator/example/pubspec.yaml b/packages/flutterfire_configurator/example/pubspec.yaml index 364f311..0fb9e6a 100644 --- a/packages/flutterfire_configurator/example/pubspec.yaml +++ b/packages/flutterfire_configurator/example/pubspec.yaml @@ -15,10 +15,10 @@ dependencies: path: ../ dev_dependencies: + altfire_lints: + path: ../../altfire_lints altive_lints: ^1.8.1 custom_lint: ^0.5.7 - flutterfire_lint: - path: ../../flutterfire_lint flutter: uses-material-design: true