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

Conversation

leoafarias
Copy link

Description:

This PR introduces support for false_secrets in the pubspec.yaml file. The false_secrets field allows users to specify files that should be ignored when checking for secret leaks before publishing. This helps avoid false positives during the publishing process.

The flutter_favorite_pubspecs.json file contains the pubspec configurations for Flutter Favorite packages from pub.dev. Its inclusion in the test suite is intended to expand the test coverage footprint, specifically to catch any potential parsing issues with the Pubspec class.

Changes:

  • Added false_secrets field to Pubspec class in lib/src/pubspec.dart.
  • Updated generated code in lib/src/pubspec.g.dart to handle false_secrets.
  • Added tests to validate false_secrets field parsing and behavior in both Map and Yaml formats.
  • Added test fixtures flutter_favorite_pubspecs.json and sample_pubspec.yaml to cover various cases.

Checklist:

  • I’ve reviewed the contributor guide and applied the relevant portions to this PR.
  • Tests have been added for the new feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant