Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: tighten template dependencies #237

Merged
merged 7 commits into from
Dec 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include: package:very_good_analysis/analysis_options.6.0.0.yaml
include: package:very_good_analysis/analysis_options.7.0.0.yaml
linter:
rules:
public_member_api_docs: false
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ dev_dependencies:
flutter_test:
sdk: flutter
mocktail: ^1.0.4
very_good_analysis: ^6.0.0
very_good_analysis: ^7.0.0

flutter:
uses-material-design: true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include: package:very_good_analysis/analysis_options.6.0.0.yaml
include: package:very_good_analysis/analysis_options.7.0.0.yaml
linter:
rules:
public_member_api_docs: false
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,6 @@ ${lightYellow.wrap('Update available!')} ${lightCyan.wrap(packageVersion)} \u219
Run ${lightCyan.wrap('$executableName update')} to update''',
);
}
} catch (_) {}
} on Exception catch (_) {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class UpdateCommand extends Command<int> {
late final String latestVersion;
try {
latestVersion = await _pubUpdater.getLatestVersion(packageName);
} catch (error) {
} on Exception catch (error) {
updateCheckProgress.fail();
_logger.err('$error');
return ExitCode.software.code;
Expand All @@ -55,7 +55,7 @@ class UpdateCommand extends Command<int> {
packageName: packageName,
versionConstraint: latestVersion,
);
} catch (error) {
} on Exception catch (error) {
updateProgress.fail();
_logger.err('$error');
return ExitCode.software.code;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ dependencies:
pub_updater: ^0.5.0

dev_dependencies:
build_runner: ^2.4.13
build_runner: ^2.4.14
build_verify: ^3.1.0
build_version: ^2.1.1
mocktail: ^1.0.4
test: ^1.25.12
very_good_analysis: ^6.0.0
test: ^1.25.14
very_good_analysis: ^7.0.0

executables:
{{executable_name.snakeCase()}}:
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include: package:very_good_analysis/analysis_options.6.0.0.yaml
include: package:very_good_analysis/analysis_options.7.0.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ environment:

dev_dependencies:
mocktail: ^1.0.4
test: ^1.25.12
very_good_analysis: ^6.0.0
test: ^1.25.14
very_good_analysis: ^7.0.0
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Not required for test files
// ignore_for_file: prefer_const_constructors
import 'package:test/test.dart';
import 'package:{{project_name.snakeCase()}}/{{project_name.snakeCase()}}.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include: package:very_good_analysis/analysis_options.6.0.0.yaml
include: package:very_good_analysis/analysis_options.7.0.0.yaml
analyzer:
exclude:
- lib/gen/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ dev_dependencies:
sdk: flutter
mockingjay: ^0.6.0
mocktail: ^1.0.4
very_good_analysis: ^6.0.0
very_good_analysis: ^7.0.0

flutter:
uses-material-design: true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Make test files more explicit rather then collapsing calls
// ignore_for_file: cascade_invocations

import 'package:audioplayers/audioplayers.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Make test files more explicit rather then collapsing calls
// ignore_for_file: cascade_invocations

import 'dart:ui';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Make test files more explicit rather then collapsing calls
// ignore_for_file: cascade_invocations

import 'package:audioplayers/audioplayers.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Not needed for test files
// ignore_for_file: prefer_const_constructors

import 'dart:async';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Not needed for test files
// ignore_for_file: prefer_const_constructors

import 'dart:async';
Expand Down
2 changes: 1 addition & 1 deletion very_good_flame_game/hooks/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include: package:very_good_analysis/analysis_options.6.0.0.yaml
include: package:very_good_analysis/analysis_options.7.0.0.yaml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include: package:very_good_analysis/analysis_options.6.0.0.yaml
include: package:very_good_analysis/analysis_options.7.0.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ dev_dependencies:
flutter_test:
sdk: flutter
mocktail: ^1.0.4
very_good_analysis: ^6.0.0
very_good_analysis: ^7.0.0
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Not required for test files
// ignore_for_file: prefer_const_constructors

import 'package:flutter_test/flutter_test.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include: package:very_good_analysis/analysis_options.6.0.0.yaml
include: package:very_good_analysis/analysis_options.7.0.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ dev_dependencies:
flutter_test:
sdk: flutter
plugin_platform_interface: ^2.1.8
very_good_analysis: ^6.0.0
very_good_analysis: ^7.0.0
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include: package:very_good_analysis/analysis_options.6.0.0.yaml
include: package:very_good_analysis/analysis_options.7.0.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ dev_dependencies:
flutter_test:
sdk: flutter
plugin_platform_interface: ^2.1.8
very_good_analysis: ^6.0.0
very_good_analysis: ^7.0.0
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include: package:very_good_analysis/analysis_options.6.0.0.yaml
include: package:very_good_analysis/analysis_options.7.0.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
very_good_analysis: ^6.0.0
very_good_analysis: ^7.0.0
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include: package:very_good_analysis/analysis_options.6.0.0.yaml
include: package:very_good_analysis/analysis_options.7.0.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
very_good_analysis: ^6.0.0
very_good_analysis: ^7.0.0
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include: package:very_good_analysis/analysis_options.6.0.0.yaml
include: package:very_good_analysis/analysis_options.7.0.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
very_good_analysis: ^6.0.0
very_good_analysis: ^7.0.0
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include: package:very_good_analysis/analysis_options.6.0.0.yaml
include: package:very_good_analysis/analysis_options.7.0.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
very_good_analysis: ^6.0.0
very_good_analysis: ^7.0.0
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include: package:very_good_analysis/analysis_options.6.0.0.yaml
include: package:very_good_analysis/analysis_options.7.0.0.yaml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include: package:very_good_analysis/analysis_options.6.0.0.yaml
include: package:very_good_analysis/analysis_options.7.0.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ dev_dependencies:
flutter_test:
sdk: flutter
mocktail: ^1.0.4
very_good_analysis: ^6.0.0
very_good_analysis: ^7.0.0
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include: package:very_good_analysis/analysis_options.6.0.0.yaml
include: package:very_good_analysis/analysis_options.7.0.0.yaml
linter:
rules:
public_member_api_docs: false
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ dev_dependencies:
sdk: flutter
integration_test:
sdk: flutter
very_good_analysis: ^6.0.0
very_good_analysis: ^7.0.0

flutter:
uses-material-design: true
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ dev_dependencies:
sdk: flutter
mocktail: ^1.0.4
plugin_platform_interface: ^2.1.8
very_good_analysis: ^6.0.0
very_good_analysis: ^7.0.0
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include: package:very_good_analysis/analysis_options.6.0.0.yaml
include: package:very_good_analysis/analysis_options.7.0.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
very_good_analysis: ^6.0.0
very_good_analysis: ^7.0.0
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include: package:very_good_analysis/analysis_options.6.0.0.yaml
include: package:very_good_analysis/analysis_options.7.0.0.yaml
linter:
rules:
public_member_api_docs: false
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dev_dependencies:
flutter_test:
sdk: flutter
mocktail: ^1.0.4
very_good_analysis: ^6.0.0
very_good_analysis: ^7.0.0

flutter:
uses-material-design: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import 'package:{{project_name.snakeCase()}}/ambient_mode/ambient_mode.dart';

class _TestAmbientModeListener extends ValueNotifier<bool>
implements AmbientModeListener {
// Taking the short hand syntax for a test file
// ignore: avoid_positional_boolean_parameters
_TestAmbientModeListener(super.value);

Expand Down
Loading