This is a sample Flutter mobile app designed to demonstrate various code quality and security issues that can be detected by Codacy's Dart analyzer.
This project contains intentional code issues including:
- Unused imports
- Unused variables
- Missing const constructors
- Missing return type declarations
- Using print() instead of proper logging
- Missing keys in widget constructors
- Unnecessary containers
- Missing @override annotations
- Poor error handling
- Hardcoded API keys and secrets
- Hardcoded credentials (usernames, passwords)
- Hardcoded database connection strings
- Insecure random number generation
- Storing sensitive data without encryption
- Logging sensitive information
- Weak password hashing
- No SSL certificate validation
lib/
├── main.dart # Entry point with issues
├── screens/
│ ├── login_screen.dart # Login with hardcoded credentials
│ ├── home_screen.dart # Home screen with various issues
│ └── profile_screen.dart # Profile screen with null safety issues
└── utils/
├── auth_helper.dart # Authentication with security issues
├── storage_helper.dart # Storage with security issues
└── network_helper.dart # Networking with security issues
flutter pub get
flutter runflutter analyze