Skip to content

Commit

Permalink
[License] Enable prefer_const_declarations lint
Browse files Browse the repository at this point in the history
  • Loading branch information
cbracken committed Dec 20, 2018
1 parent 06e3591 commit 392df65
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions tools/licenses/analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ linter:
- overridden_fields
- package_prefixed_library_names
- prefer_asserts_in_initializer_lists
- prefer_const_declarations
- prefer_equal_for_default_values
- prefer_final_fields
- prefer_final_locals
Expand Down
4 changes: 2 additions & 2 deletions tools/licenses/lib/patterns.dart
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ final List<RegExp> licenseFragments = <RegExp>[
RegExp(r'License & terms of use'),
];

final String _linebreak = r' *(?:(?:\*/ *|[*#])?(?:\n\1 *(?:\*/ *)?)*\n\1\2 *)?';
final String _linebreakLoose = r' *(?:(?:\*/ *|[*#])?\n(?:-|;|#|<|!|/|\*| |REM)*)*';
const String _linebreak = r' *(?:(?:\*/ *|[*#])?(?:\n\1 *(?:\*/ *)?)*\n\1\2 *)?';
const String _linebreakLoose = r' *(?:(?:\*/ *|[*#])?\n(?:-|;|#|<|!|/|\*| |REM)*)*';

// LICENSE RECOGNIZERS

Expand Down

0 comments on commit 392df65

Please sign in to comment.