Skip to content

Commit

Permalink
Ignore before header
Browse files Browse the repository at this point in the history
  • Loading branch information
PlugFox committed Jun 30, 2023
1 parent 6663401 commit 0b6a179
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 15 deletions.
24 changes: 12 additions & 12 deletions example/example.dart
@@ -1,3 +1,7 @@
// ignore_for_file: lines_longer_than_80_chars, unnecessary_raw_strings
// ignore_for_file: use_raw_strings, avoid_classes_with_only_static_members
// ignore_for_file: avoid_escaping_inner_quotes, prefer_single_quotes

/// GENERATED CODE - DO NOT MODIFY BY HAND
library pubspec;
Expand Down Expand Up @@ -32,9 +36,6 @@ library pubspec;
*/

// ignore_for_file: lines_longer_than_80_chars, unnecessary_raw_strings
// ignore_for_file: use_raw_strings, avoid_classes_with_only_static_members
// ignore_for_file: avoid_escaping_inner_quotes, prefer_single_quotes
/// Given a version number MAJOR.MINOR.PATCH, increment the:
///
/// 1. MAJOR version when you make incompatible API changes
Expand Down Expand Up @@ -115,11 +116,11 @@ sealed class Pubspec {
2023,
6,
30,
13,
46,
46,
868,
684,
14,
6,
45,
702,
693,
);

/// Name
Expand Down Expand Up @@ -312,7 +313,7 @@ sealed class Pubspec {
/// Pub.dev generates the package’s thumbnail image from the first screenshot.
/// If this screenshot uses animation, pub.dev uses its first frame.
static const List<Object> screenshots = <Object>[
r'{description: Version, path: .img/version.png}',
r'{description: Generated version record, path: version.png}',
];

/// Topics
Expand Down Expand Up @@ -342,12 +343,11 @@ sealed class Pubspec {
/// When choosing topics, consider if existing topics are relevant.
/// Tagging with existing topics helps users discover your package.
static const List<Object> topics = <Object>[
r'yaml',
r'pubspec',
r'yaml',
r'generator',
r'build',
r'build_runner',
r'codegeneration',
r'codegen',
];

/// Environment
Expand Down
3 changes: 2 additions & 1 deletion lib/src/generator/ignore_generator_mixin.dart
Expand Up @@ -14,4 +14,5 @@ mixin IgnoreGeneratorMixin on PubspecGenerator {
const String _$ignoreForFile = r'''
// ignore_for_file: lines_longer_than_80_chars, unnecessary_raw_strings
// ignore_for_file: use_raw_strings, avoid_classes_with_only_static_members
// ignore_for_file: avoid_escaping_inner_quotes, prefer_single_quotes''';
// ignore_for_file: avoid_escaping_inner_quotes, prefer_single_quotes
''';
4 changes: 2 additions & 2 deletions lib/src/generator/pubspec_generator_impl.dart
Expand Up @@ -37,8 +37,8 @@ class PubspecGeneratorImpl extends PubspecGenerator
VersionGeneratorMixin,
ClassGeneratorMixin,
TypedefGeneratorMixin,
IgnoreGeneratorMixin,
HeaderGeneratorMixin {
HeaderGeneratorMixin,
IgnoreGeneratorMixin {
/// {@nodoc}
/// @literal
const PubspecGeneratorImpl() : super();
Expand Down

0 comments on commit 0b6a179

Please sign in to comment.