From c15298768d0e0dcb0cba8ec9155d7f19f3d5a732 Mon Sep 17 00:00:00 2001 From: Nikolas Rimikis Date: Mon, 19 Aug 2024 22:11:15 +0200 Subject: [PATCH] refactor(neon_lints): do not ignore all generated files Signed-off-by: Nikolas Rimikis --- packages/neon_framework/analysis_options.yaml | 1 + packages/neon_framework/lib/src/models/account.dart | 2 -- .../packages/dashboard_app/analysis_options.yaml | 1 + .../neon_framework/packages/files_app/analysis_options.yaml | 1 + .../neon_framework/packages/news_app/analysis_options.yaml | 1 + .../neon_framework/packages/notes_app/analysis_options.yaml | 1 + .../packages/notifications_app/analysis_options.yaml | 1 + .../neon_framework/packages/talk_app/analysis_options.yaml | 1 + packages/neon_lints/lib/src/base.yaml | 2 -- packages/neon_lints/lint_maker.yaml | 2 -- packages/nextcloud/analysis_options.yaml | 5 +++++ 11 files changed, 12 insertions(+), 6 deletions(-) diff --git a/packages/neon_framework/analysis_options.yaml b/packages/neon_framework/analysis_options.yaml index 6ab8e7fde71..bf89f40d449 100644 --- a/packages/neon_framework/analysis_options.yaml +++ b/packages/neon_framework/analysis_options.yaml @@ -3,6 +3,7 @@ include: package:neon_lints/flutter.yaml analyzer: exclude: - lib/l10n/** + - '**/router.g.dart' custom_lint: rules: diff --git a/packages/neon_framework/lib/src/models/account.dart b/packages/neon_framework/lib/src/models/account.dart index 919c37c8ad3..aa179d4fd20 100644 --- a/packages/neon_framework/lib/src/models/account.dart +++ b/packages/neon_framework/lib/src/models/account.dart @@ -20,7 +20,6 @@ final Serializers _serializers = (_$_serializers.toBuilder()..addPlugin(Standard /// Credentials interface @internal -@immutable abstract interface class Credentials { /// Url of the server abstract final Uri serverURL; @@ -33,7 +32,6 @@ abstract interface class Credentials { } /// Account data. -@immutable abstract class Account implements Credentials, Findable, Built { // ignore: public_member_api_docs factory Account([void Function(AccountBuilder)? updates]) = _$Account; diff --git a/packages/neon_framework/packages/dashboard_app/analysis_options.yaml b/packages/neon_framework/packages/dashboard_app/analysis_options.yaml index 66de1efdbdd..fba40411a7d 100644 --- a/packages/neon_framework/packages/dashboard_app/analysis_options.yaml +++ b/packages/neon_framework/packages/dashboard_app/analysis_options.yaml @@ -3,3 +3,4 @@ include: package:neon_lints/flutter.yaml analyzer: exclude: - lib/l10n/** + - '**/routes.g.dart' diff --git a/packages/neon_framework/packages/files_app/analysis_options.yaml b/packages/neon_framework/packages/files_app/analysis_options.yaml index 243819ae19b..a0321db9175 100644 --- a/packages/neon_framework/packages/files_app/analysis_options.yaml +++ b/packages/neon_framework/packages/files_app/analysis_options.yaml @@ -7,3 +7,4 @@ linter: analyzer: exclude: - lib/l10n/** + - '**/routes.g.dart' diff --git a/packages/neon_framework/packages/news_app/analysis_options.yaml b/packages/neon_framework/packages/news_app/analysis_options.yaml index 243819ae19b..a0321db9175 100644 --- a/packages/neon_framework/packages/news_app/analysis_options.yaml +++ b/packages/neon_framework/packages/news_app/analysis_options.yaml @@ -7,3 +7,4 @@ linter: analyzer: exclude: - lib/l10n/** + - '**/routes.g.dart' diff --git a/packages/neon_framework/packages/notes_app/analysis_options.yaml b/packages/neon_framework/packages/notes_app/analysis_options.yaml index 243819ae19b..a0321db9175 100644 --- a/packages/neon_framework/packages/notes_app/analysis_options.yaml +++ b/packages/neon_framework/packages/notes_app/analysis_options.yaml @@ -7,3 +7,4 @@ linter: analyzer: exclude: - lib/l10n/** + - '**/routes.g.dart' diff --git a/packages/neon_framework/packages/notifications_app/analysis_options.yaml b/packages/neon_framework/packages/notifications_app/analysis_options.yaml index 243819ae19b..a0321db9175 100644 --- a/packages/neon_framework/packages/notifications_app/analysis_options.yaml +++ b/packages/neon_framework/packages/notifications_app/analysis_options.yaml @@ -7,3 +7,4 @@ linter: analyzer: exclude: - lib/l10n/** + - '**/routes.g.dart' diff --git a/packages/neon_framework/packages/talk_app/analysis_options.yaml b/packages/neon_framework/packages/talk_app/analysis_options.yaml index 66de1efdbdd..fba40411a7d 100644 --- a/packages/neon_framework/packages/talk_app/analysis_options.yaml +++ b/packages/neon_framework/packages/talk_app/analysis_options.yaml @@ -3,3 +3,4 @@ include: package:neon_lints/flutter.yaml analyzer: exclude: - lib/l10n/** + - '**/routes.g.dart' diff --git a/packages/neon_lints/lib/src/base.yaml b/packages/neon_lints/lib/src/base.yaml index e5e87da80d5..e242e20a6b5 100644 --- a/packages/neon_lints/lib/src/base.yaml +++ b/packages/neon_lints/lib/src/base.yaml @@ -6,8 +6,6 @@ analyzer: errors: flutter_style_todos: ignore todo: ignore - exclude: - - "**.g.dart" linter: rules: always_declare_return_types: true diff --git a/packages/neon_lints/lint_maker.yaml b/packages/neon_lints/lint_maker.yaml index eecd86305d8..f3345dab24f 100644 --- a/packages/neon_lints/lint_maker.yaml +++ b/packages/neon_lints/lint_maker.yaml @@ -9,8 +9,6 @@ base: errors: flutter_style_todos: ignore todo: ignore - exclude: - - '**.g.dart' linter: rules: always_specify_types: false diff --git a/packages/nextcloud/analysis_options.yaml b/packages/nextcloud/analysis_options.yaml index f2cddfc2d75..71d8edb3ed3 100644 --- a/packages/nextcloud/analysis_options.yaml +++ b/packages/nextcloud/analysis_options.yaml @@ -3,3 +3,8 @@ include: package:neon_lints/dart.yaml linter: rules: avoid_print: false + +analyzer: + exclude: + - 'lib/src/api/webdav/models/props.g.dart' + - 'lib/src/api/webdav/models/webdav.g.dart'