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

pubspec_parse: Added support for false_secrets #1951

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
8 changes: 8 additions & 0 deletions pkgs/pubspec_parse/lib/src/pubspec.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,13 @@ class Pubspec {
@JsonKey(fromJson: parseScreenshots)
final List<Screenshot>? screenshots;

/// A list of gitignore patterns specifying files to ignore when searching
/// for potential secret leaks before publishing.
///
/// More information: https://dart.dev/tools/pub/pubspec#false_secrets
@JsonKey(name: 'false_secrets')
final List<String>? falseSecrets;

/// If there is exactly 1 value in [authors], returns it.
///
/// If there are 0 or more than 1, returns `null`.
Expand Down Expand Up @@ -115,6 +122,7 @@ class Pubspec {
this.topics,
this.ignoredAdvisories,
this.screenshots,
this.falseSecrets,
this.documentation,
this.description,
Map<String, Dependency>? dependencies,
Expand Down
3 changes: 3 additions & 0 deletions pkgs/pubspec_parse/lib/src/pubspec.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading