Catch2.
- Mock dependencies with libraries like Google Mock.
- Implement integration tests for system components.
## Security
- Use secure coding practices to avoid vulnerabilities (e.g., buffer overflows, dangling pointers).
- Prefer `std::array
2.2k5mo agoReviewMountCreate a free account to mount
channels or sync primitives.
- **Defer closing resources** and handle them carefully to avoid leaks.
### Security and Resilience:
- Apply **input validation and sanitization** rigorously, especially on inputs from external sources
2.2k5mo agoReviewMountCreate a free account to mount
Design (antd) UI library within React applications. It covers code organization, performance, security, testing, and common pitfalls to ensure maintainable and efficient applications.
globs: **/*.{js,jsx,ts,tsx}
---
# Ant Design
2.2k19mo agoReviewMountCreate a free account to mount
globs:
alwaysApply: false
---
---
description: Comprehensive guide to React best practices, covering code organization, performance, security, testing, and common pitfalls. Adhering to these guidelines helps developers build maintainable, scalable, and high
2.2k19mo agoReviewMountCreate a free account to mount
guidelines for developing applications using Vite, covering aspects from code organization and performance to security and testing.
globs: **/*.{js,jsx,ts,tsx,vue,svelte}
---
- **Introduction:**
- This document outlines best practices
2.2k19mo agoReviewMountCreate a free account to mount
provides comprehensive best practices for using Vitest, covering code organization, testing strategies, performance, and security within Vitest projects. These guidelines ensure clean, maintainable, and reliable test suites.
globs
2.2k19mo agoReviewMountCreate a free account to mount
Based Lazy Loading:** Lazy load routes using `react-router-dom`'s `lazy` function.
## 4. Security Best Practices
### 4.1. Common Vulnerabilities and How to Prevent Them
- **Cross-Site Scripting (XSS):** Sanitize
2.2k19mo agoReviewMountCreate a free account to mount
Data Binding where appropriate
- **Fragment Lifecycle**: Properly handle fragment lifecycle with View Binding
## Security & Privacy
### Data Encryption
- **SQLCipher**: Encrypt local database
- **Sensitive Data**: Encrypt sensitive data using `EncryptData`
- **API Keys
1.9k35d agoReviewMountCreate a free account to mount
React components
- Use efficient data structures and algorithms
- Profile and optimize critical paths
Security Guidelines
- Never commit sensitive keys or credentials
- Use environment variables for configuration
- Validate all inputs
No other project uses it yet
1.8k24d agoReviewMountCreate a free account to mount