Skip to content

codacy-acme/sample-flutter-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample Flutter Project

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.

Intentional Issues

This project contains intentional code issues including:

Code Quality Issues:

  • 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

Security Issues:

  • 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

Project Structure

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

Running the App

flutter pub get
flutter run

Running Analysis

flutter analyze

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages