dart_shield init
Initialize dart_shield in your project.
dart_shield init
The init command is the starting point for integrating dart_shield into your project. It automates the configuration process to ensure you're ready to start scanning for security vulnerabilities immediately.
What it does
- Checks for
analysis_options.yaml: It looks for this file in the current directory (project root). - Updates Configuration:
- Adds
dart_shieldto thepluginslist. - Adds the default
dart_shieldconfiguration block if it doesn't exist.
- Adds
If analysis_options.yaml is missing, the command will fail and prompt you to create it or run the command from the correct directory.