fix glob format

This commit is contained in:
Chris Watson
2025-04-17 13:53:29 -06:00
parent 5125f271f2
commit 8fe9254c05
236 changed files with 253 additions and 244 deletions
+7
View File
@@ -0,0 +1,7 @@
# About rules.json
This rules.json file is automatically copied from the project root.
It is the source of truth for library detection rules.
DO NOT EDIT THIS FILE DIRECTLY.
Instead, edit the main rules.json in the project root and run the generate_mdc_files.py script.
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: Comprehensive best practices for developing robust, efficient, and maintainable applications using the actix-web framework in Rust. This rule covers coding standards, project structure, performance, security, testing, and common pitfalls.
globs: **/*.rs
globs: *.rs
---
# Actix-web Best Practices: A Comprehensive Guide
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: Comprehensive guide for aiohttp development covering code organization, performance, security, testing, and deployment best practices. Provides actionable guidance for developers to build robust and maintainable aiohttp applications.
globs: **/*.py
globs: *.py
---
# Aiohttp Best Practices
+5 -4
View File
@@ -1,6 +1,7 @@
---
description: This rule file provides best practices, coding standards, and security guidelines for developing, deploying, and maintaining applications using the amazon-ec2 library within the AWS ecosystem. It focuses on infrastructure as code (IaC), resource management, performance, and security considerations for robust and scalable EC2-based solutions.
globs: **/*.{tf,json,yml,yaml,py,js,ts,sh,java,go,rb,m}
globs: *.tf,*.json,*.yml,*.yaml,*.py,*.js,*.ts,*.sh,*.java,*.go,*.rb,*.m
alwaysApply: false
---
- ## General Principles
- **Infrastructure as Code (IaC):** Treat your infrastructure as code. Define and provision AWS resources (EC2 instances, security groups, networks) using code (e.g., AWS CloudFormation, AWS CDK, Terraform). This ensures consistency, repeatability, and version control.
@@ -312,6 +313,6 @@ globs: **/*.{tf,json,yml,yaml,py,js,ts,sh,java,go,rb,m}
- ## References
- [AWS EC2 Best Practices](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-best-practices.html)
- [AWS CDK Best Practices](https://docs.aws.amazon.com/cdk/v2/guide/best-practices.html)
- [Terraform AWS Provider Best Practices](https://docs.aws.amazon.com/prescriptive-guidance/latest/terraform-aws-provider-best-practices/structure.html)
- [AWS EC2 Best Practices](mdc:https:/docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-best-practices.html)
- [AWS CDK Best Practices](mdc:https:/docs.aws.amazon.com/cdk/v2/guide/best-practices.html)
- [Terraform AWS Provider Best Practices](mdc:https:/docs.aws.amazon.com/prescriptive-guidance/latest/terraform-aws-provider-best-practices/structure.html)
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule file provides comprehensive best practices, coding standards, and security guidelines for developing applications using Amazon S3. It aims to ensure secure, performant, and maintainable S3 integrations.
globs: **/*S3*.{js,ts,jsx,tsx,py,java,go,csharp}
globs: *S3*.js,*S3*.ts,*S3*.jsx,*S3*.tsx,*S3*.py,*S3*.java,*S3*.go,*S3*.csharp
---
- Always disable public access to S3 buckets unless explicitly needed. Use AWS Identity and Access Management (IAM) policies and bucket policies for access control instead of Access Control Lists (ACLs), which are now generally deprecated.
- Implement encryption for data at rest using Server-Side Encryption (SSE), preferably with AWS Key Management Service (KMS) for enhanced security.
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule file provides comprehensive best practices for Android SDK development, encompassing code organization, performance, security, testing, and common pitfalls. It aims to guide developers in creating robust, maintainable, and efficient Android applications and libraries.
globs: **/*.{java,kt,xml,gradle,properties}
globs: *.java,*.kt,*.xml,*.gradle,*.properties
---
- MUST be under source control management (SCM). RECOMMENDED source control management is git
- If you intend your source repo to be public ensure you have received the necessary management and legal approval
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule provides comprehensive guidelines for Angular development, covering coding standards, best practices, performance optimization, security considerations, and testing approaches to ensure maintainable, scalable, and high-performing applications.
globs: **/*.{ts,html,scss,css}
globs: *.ts,*.html,*.scss,*.css
---
# Angular Best Practices and Coding Standards
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule file provides comprehensive best practices and coding standards for Ansible projects, covering code organization, common patterns, performance, security, testing, pitfalls, and tooling. It aims to improve maintainability, reusability, and efficiency in Ansible automation.
globs: **/*.{yml,yaml,j2}
globs: *.yml,*.yaml,*.j2
---
- Adopt and adhere to the following Ansible best practices to ensure maintainable, reusable, and efficient automation code. This guide provides standards for code organization, common patterns, performance optimization, security, testing, tooling, and common pitfalls to avoid.
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule enforces best practices and coding standards for projects using the Ant 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}
globs: *.js,*.jsx,*.ts,*.tsx
---
# Ant Design (antd) Best Practices and Coding Standards
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule provides best practices and coding standards for developing with the AnyIO library, focusing on structured concurrency, task management, and proper use of synchronization primitives to create robust, cross-backend asynchronous applications.
globs: **/*.py
globs: *.py
---
# AnyIO Best Practices and Coding Standards
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule provides comprehensive best practices for using Apollo Client in your projects, covering code organization, performance, security, testing, and common pitfalls. It aims to guide developers in building robust and maintainable GraphQL-powered applications.
globs: **/*.{js,jsx,ts,tsx,gql,graphql}
globs: *.js,*.jsx,*.ts,*.tsx,*.gql,*.graphql
---
- **Code Organization and Structure:**
- **Directory Structure:**
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule provides comprehensive best practices and coding standards for developing with Apollo GraphQL. It covers schema design, security, performance, testing, and deployment.
globs: **/*.{js,jsx,ts,tsx,graphql}
globs: *.js,*.jsx,*.ts,*.tsx,*.graphql
---
- Always use UV when installing dependencies
- Always use python 3.12
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule file provides best practices and coding standards for ASP.NET Core development, covering various aspects from code organization to security and performance optimization.
globs: **/*.cs
globs: *.cs
---
# ASP.NET Core Best Practices and Coding Standards
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule provides comprehensive best practices and coding standards for developing Astro projects. It covers code organization, performance, security, testing, and common pitfalls.
globs: **/*.astro
globs: *.astro
---
# Astro Library Best Practices and Coding Standards
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule provides comprehensive guidelines and best practices for utilizing the asyncio library in Python, covering code organization, performance, security, testing, and common pitfalls.
globs: **/*.py
globs: *.py
---
# asyncio Best Practices and Coding Standards
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule provides comprehensive guidance for Auth0 library usage, covering code organization, security, performance, testing, and common pitfalls. Adhering to these guidelines ensures secure, efficient, and maintainable Auth0 integrations.
globs: **/*.{js,jsx,ts,tsx,html,css,scss,py,java,go}
globs: *.js,*.jsx,*.ts,*.tsx,*.html,*.css,*.scss,*.py,*.java,*.go
---
---
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: Provides coding standards, best practices, and guidance specific to the AutoGen library, covering aspects from code structure to security and performance.
globs: **/*.py
globs: *.py
---
- Best practice 1: Employ Modular Design. Utilize AutoGen's multi-agent framework to create modular agents with specific roles. This enhances code reusability and simplifies the orchestration of complex workflows. Example: Create separate agents for data fetching, code execution, and response formatting.
- Best practice 2: Define Customizable Workflows. Leverage AutoGen's capabilities to define customizable workflows that integrate LLMs, human inputs, and tools. This allows for flexible agent interactions and enhances the performance of LLM applications. Implement a workflow manager to define and control agent interactions.
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule provides best practices and coding standards for aws-amplify projects, covering code organization, common patterns, performance, security, testing, pitfalls, and tooling. It aims to guide developers in building robust, scalable, and maintainable aws-amplify applications.
globs: **/*.{js,jsx,ts,tsx}
globs: *.js,*.jsx,*.ts,*.tsx
---
- # aws-amplify Best Practices
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule provides comprehensive guidance on best practices for developing and managing AWS resources using the AWS CLI, covering code organization, security, performance, and testing.
globs: **/*.{sh,py,yml,yaml,tf,json,md}
globs: *.sh,*.py,*.yml,*.yaml,*.tf,*.json,*.md
---
# AWS CLI Best Practices and Coding Standards
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule provides best practices and coding standards for developing applications using AWS DynamoDB. It covers aspects like schema design, performance optimization, security, and testing.
globs: **/*.{js,ts,jsx,tsx,py}
globs: *.js,*.ts,*.jsx,*.tsx,*.py
---
- **Minimize the number of tables; prefer single-table design.** Having fewer tables keeps things more scalable, requires less permissions management, and reduces overhead for your DynamoDB application. Consider using a single table with appropriate use of primary and secondary indexes.
- **Identify query patterns before schema design.** Understand the application's access patterns before designing the DynamoDB schema. Knowing how the data will be queried is crucial for optimizing performance and cost.
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule covers best practices for developing, deploying, and maintaining applications using AWS Elastic Container Service (ECS). It includes guidance on code organization, performance, security, testing, and common pitfalls.
globs: **/*.{tf,yml,yaml,json,sh,dockerfile}
globs: *.tf,*.yml,*.yaml,*.json,*.sh,*.dockerfile
---
- **General Principles:**
- **Infrastructure as Code (IaC):** Treat your ECS infrastructure as code. Use tools like Terraform, AWS CloudFormation, or AWS CDK to define and manage your ECS clusters, task definitions, and services.
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: Comprehensive guide for AWS Lambda development, covering best practices for code organization, performance, security, testing, and common pitfalls. Focuses on building robust, scalable, and secure serverless applications using AWS Lambda.
globs: **/*.{js,ts,jsx,tsx,py,java,go,c#,cs,ps1,sh}
globs: *.js,*.ts,*.jsx,*.tsx,*.py,*.java,*.go,*.c#,*.cs,*.ps1,*.sh
---
- **Use Documented APIs Only:** Rely solely on AWS Lambda's documented APIs to ensure compatibility and avoid unexpected behavior. Do not use undocumented or internal APIs.
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule provides best practices and coding standards for developing applications that interact with AWS RDS. It covers code organization, security, performance, testing, and common pitfalls.
globs: **/*.{sql,js,py,java,tf,yaml,yml}
globs: *.sql,*.js,*.py,*.java,*.tf,*.yaml,*.yml
---
# AWS RDS Best Practices and Coding Standards
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: Comprehensive rules and best practices for AWS development using Terraform, covering code organization, security, performance, and testing. Adherence to these guidelines ensures maintainable, secure, and efficient infrastructure code.
globs: **/*.tf
globs: *.tf
---
# AWS Development Best Practices using Terraform
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule provides comprehensive guidelines for using Axios effectively, covering best practices, security considerations, and performance optimization. It aims to improve code quality, maintainability, and overall application resilience when working with Axios.
globs: **/*.{js,jsx,ts,tsx}
globs: *.js,*.jsx,*.ts,*.tsx
---
- **Avoid hardcoding URLs**: Store API endpoints in configuration files or environment variables to enhance maintainability and avoid redundancy.
- **Centralize API Logic**: Create dedicated modules or services to encapsulate Axios instances and request logic. This promotes reusability and simplifies debugging.
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: Comprehensive guidelines for Azure Pipelines, covering code structure, security, performance, testing, and deployment. Provides actionable advice for developers working with Azure Pipelines YAML definitions to enhance code quality and CI/CD processes.
globs: **/*.{yml,yaml}
globs: *.yml,*.yaml
---
- # General Guidelines
- Utilize YAML pipelines for version control and ease of replication.
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule provides comprehensive best practices for developing Azure applications, covering code organization, security, performance, testing, and common pitfalls. It aims to improve code quality, security posture, and overall efficiency when working with the Azure ecosystem.
globs: **/*.{az,tf,bicep,py,js,ts,json,yml,yaml,ps1,sh,cs,java}
globs: *.az,*.tf,*.bicep,*.py,*.js,*.ts,*.json,*.yml,*.yaml,*.ps1,*.sh,*.cs,*.java
---
# Azure Library Best Practices and Coding Standards
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule enforces best practices and coding standards for Bash scripting to improve code quality, maintainability, and security. It covers naming conventions, formatting, error handling, security, and performance considerations.
globs: **/*.sh
globs: *.sh
---
# Bash Best Practices and Coding Standards
+1 -1
View File
@@ -1,5 +1,5 @@
---
description: This rule file outlines best practices for using the beautifulsoup4 library in Python, covering code organization, performance, security, testing, and common pitfalls.
globs: **/*.py
globs: *.py
---
By following these best practices, you can build robust, efficient, and secure web scrapers using beautifulsoup4.
+1 -1
View File
@@ -1,4 +1,4 @@
---
description: This rule file provides comprehensive best practices for writing maintainable and effective Behave BDD tests, including code organization, common patterns, performance considerations, and security.
globs: **/*.feature
globs: *.feature
---
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: Enforces consistent code formatting using Black, the uncompromising Python code formatter, promoting readability and reducing diffs. Covers best practices related to Black's configuration, usage, and integrations.
globs: **/*.py
globs: *.py
---
- Adopt Black as the primary code formatter for all Python projects.
- Adhere to Black's default style guide for consistent formatting across projects.
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule file outlines best practices for using the boto3 library, including code organization, security, performance, testing, and common pitfalls. It aims to ensure efficient, secure, and maintainable AWS integrations with boto3.
globs: **/*.py
globs: *.py
---
---
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: Comprehensive coding standards, best practices, and architectural guidelines for Python backend development with the Bottle microframework, designed to improve code quality, maintainability, and security.
globs: **/*.py
globs: *.py
---
# Bottle Framework Best Practices
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule provides comprehensive guidance on Bun library coding standards, best practices, and common patterns. It includes performance optimization, security considerations, and testing strategies.
globs: **/*.{js,ts,jsx,tsx,bun}
globs: *.js,*.ts,*.jsx,*.tsx,*.bun
---
# Bun Library Best Practices
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule file provides a comprehensive guide to C# best practices, coding standards, and common patterns for writing maintainable, performant, and secure code.
globs: **/*.cs
globs: *.cs
---
# C# Best Practices and Coding Standards
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule enforces best practices and coding standards for Chakra UI projects, including accessibility, styling, performance, and security. It aims to provide clear, actionable guidance for developers using Chakra UI.
globs: **/*.{js,jsx,ts,tsx}
globs: *.js,*.jsx,*.ts,*.tsx
---
- **Accessibility**: Ensure all components follow WAI-ARIA standards, including keyboard navigation and screen reader support.
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule provides best practices for using Cheerio for web scraping and HTML parsing in JavaScript, covering code organization, performance, security, testing, and common pitfalls.
globs: **/*.js
globs: *.js
---
# Cheerio Best Practices
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule file outlines comprehensive best practices for developing applications using the Clerk library, focusing on security, performance, code organization, and testing to ensure robust and maintainable authentication implementations.
globs: **/*.{js,jsx,ts,tsx}
globs: *.js,*.jsx,*.ts,*.tsx
---
---
## Clerk Library Best Practices
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: Comprehensive best practices for developing robust and maintainable command-line interfaces using the Click library in Python. Covers code structure, patterns, performance, security, testing, and common pitfalls.
globs: **/*.py
globs: *.py
---
# Click CLI Library Best Practices
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule provides a comprehensive set of best practices and coding standards for developing with the Cloudflare library, specifically focusing on Terraform configurations. It aims to guide developers in creating efficient, secure, and maintainable infrastructure code.
globs: **/*.tf
globs: *.tf
---
# Cloudflare Terraform Best Practices
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule provides guidelines for using CodeMirror effectively, covering code organization, performance, security, testing, and common pitfalls. It aims to ensure robust and maintainable code editor implementations.
globs: **/*.{js,ts,html,css,vue,svelte,jsx,tsx}
globs: *.js,*.ts,*.html,*.css,*.vue,*.svelte,*.jsx,*.tsx
---
# CodeMirror Best Practices and Coding Standards
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule provides comprehensive best practices for developing with the CrewAI library, covering code organization, performance, security, testing, and common pitfalls. It serves as a guide for building robust and scalable AI applications using CrewAI.
globs: **/*.py
globs: *.py
---
- **General Best Practices**:
- Leverage structured responses from LLM calls using Pydantic for output validation.
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule provides best practices for CSS development, covering code organization, performance, security, testing, and common pitfalls. It aims to ensure maintainable, scalable, and efficient CSS code.
globs: **/*.css
globs: *.css
---
- **Use a CSS Preprocessor**: Leverage preprocessors like Sass, Less, or Stylus for features like variables, nesting, mixins, and functions to enhance code organization and maintainability.
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: Enforces CUDA coding standards, performance optimizations, and best practices to ensure efficient and maintainable GPU-accelerated code. This rule provides guidance on code organization, memory management, error handling, and more.
globs: **/*.cu
globs: *.cu
---
- # CUDA Best Practices Guide
This document outlines best practices for CUDA development, focusing on code organization, performance optimization, and common pitfalls. It is based on NVIDIA's CUDA C++ Best Practices Guide and expands on it with more detailed recommendations.
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule provides best practices for developing efficient, maintainable, and scalable GUI applications with CustomTkinter. It covers code organization, performance, security, testing, and common pitfalls.
globs: **/*.py
globs: *.py
---
- **Always use UV when installing dependencies.**
- **Always use Python 3.10 or higher.** CustomTkinter requires a modern Python version for compatibility and feature support.
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule provides a comprehensive guide to Cypress best practices, covering code organization, performance, security, testing strategies, and tooling to ensure robust and maintainable end-to-end tests.
globs: **/*.{cy.js,cy.ts,spec.js,spec.ts}
globs: *.cy.js,*.cy.ts,*.spec.js,*.spec.ts
---
# Cypress Best Practices: A Comprehensive Guide
+1 -1
View File
@@ -1,5 +1,5 @@
---
description: Comprehensive best practices and coding standards for D3.js projects, covering code organization, performance, security, testing, and common pitfalls.
globs: **/*.js
globs: *.js
---
By following these best practices and coding standards, developers can create robust, maintainable, and performant data visualizations using the D3.js library.
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: Comprehensive best practices and coding standards for using Dask in Python, focusing on performance, code organization, and common pitfalls. Provides actionable guidance for developers using Dask for parallel and distributed computing.
globs: **/*.{py,ipynb}
globs: *.py,*.ipynb
---
# Dask Best Practices and Coding Standards
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule outlines best practices for coding standards, observability, and effective use of the Datadog library in Python projects. It covers coding style, metric/tag naming, dashboard design, security, and performance optimization.
globs: **/*.py
globs: *.py
---
- **Coding Standards**
- Use `black` for code formatting to ensure consistent style.
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule file provides comprehensive guidelines for Deno development, covering best practices for code organization, security, performance, testing, and documentation. Adhering to these standards ensures maintainable, efficient, and secure Deno applications.
globs: **/*.{ts,tsx,js,jsx,md}
globs: *.ts,*.tsx,*.js,*.jsx,*.md
---
- **Use TypeScript**: Always prefer TypeScript for its strong typing, which enhances code quality and maintainability. Provide clear type annotations and use interfaces for better structure.
- **Documentation with JSDoc**: Utilize JSDoc for documenting all exported symbols. Include concise summaries, type information, and examples. Keep documentation up-to-date with code changes.
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule file provides guidelines for writing stable and maintainable end-to-end tests using Detox, covering code structure, testing strategies, and performance considerations. It includes best practices for test ID usage, dealing with flakiness, and integrating with CI/CD pipelines.
globs: **/*.{e2e.js,e2e.ts,spec.js,spec.ts}
globs: *.e2e.js,*.e2e.ts,*.spec.js,*.spec.ts
---
# Detox E2E Testing Best Practices for React Native
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule provides comprehensive guidelines for DigitalOcean infrastructure and application development, covering code organization, security, performance, and deployment best practices. It aims to ensure consistent, scalable, and secure cloud solutions on the DigitalOcean platform.
globs: **/*.{tf,yml,yaml,sh,py}
globs: *.tf,*.yml,*.yaml,*.sh,*.py
---
# DigitalOcean Development Best Practices
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule provides best practices and coding standards for developing applications with the discord-api library. It covers code organization, performance, security, testing, and common pitfalls to ensure robust and maintainable Discord integrations.
globs: **/*.{js,ts,jsx,tsx,py,cs}
globs: *.js,*.ts,*.jsx,*.tsx,*.py,*.cs
---
## 1. Code Organization and Structure
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule file provides comprehensive best practices for Django's Object-Relational Mapper (ORM), covering code organization, performance, security, testing, and common pitfalls. It aims to guide developers in building efficient, maintainable, and secure Django applications.
globs: **/*.py
globs: *.py
---
## 1. Code Organization and Structure
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: A comprehensive guide to best practices for developing REST APIs using Django REST Framework (DRF), covering code structure, design patterns, security, performance, and testing.
globs: **/*.py
globs: *.py
---
---
# django-rest-framework Best Practices
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: Comprehensive guide to Django best practices covering code organization, performance, security, testing, and common pitfalls. This rule ensures adherence to community standards for maintainable and efficient Django applications.
globs: **/*.py
globs: *.py
---
# Django Best Practices and Coding Standards
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule file provides comprehensive guidance on Docker best practices, covering Dockerfile construction, image optimization, and security considerations. It aims to improve the efficiency, maintainability, and security of Docker-based projects.
globs: **/{Dockerfile,docker-compose.yml,*.dockerfile}
globs: Dockerfile,docker-compose.yml,*.dockerfile
---
# Docker Best Practices
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule outlines best practices for using Drizzle ORM in TypeScript and JavaScript projects. It covers code organization, performance, security, testing, and common pitfalls.
globs: **/*.ts,**/*.tsx,**/*.js,**/*.jsx
globs: *.ts,*.tsx,*.js,*.jsx
---
# Drizzle ORM Best Practices and Coding Standards
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule file outlines best practices for developing with DuckDB, covering code organization, performance optimization, security considerations, and testing strategies. It aims to improve code quality, maintainability, and overall project health when using DuckDB.
globs: **/*.{sql,ddl,md,duckdb}
globs: *.sql,*.ddl,*.md,*.duckdb
---
# DuckDB Best Practices and Coding Standards
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule provides comprehensive best practices for developing with Elasticsearch, covering code organization, performance, security, testing, and common pitfalls, ensuring efficient and maintainable Elasticsearch applications. These practices apply broadly across languages interacting with Elasticsearch.
globs: **/*.{py,js,java,go,ts,kt,scala,rb,php,rs,c,cpp,cs,swift,m,h}
globs: *.py,*.js,*.java,*.go,*.ts,*.kt,*.scala,*.rb,*.php,*.rs,*.c,*.cpp,*.cs,*.swift,*.m,*.h
---
- # Elasticsearch Library Best Practices
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: Enforces best practices, coding standards, and performance considerations for Electron development. Covers code structure, security, testing, and common pitfalls to ensure robust and maintainable applications.
globs: **/*.{js,jsx,ts,tsx,html,css,scss,mjs,cjs}
globs: *.js,*.jsx,*.ts,*.tsx,*.html,*.css,*.scss,*.mjs,*.cjs
---
- **General Practices**
- Adhere to the official Electron coding style guide. Run `npm run lint` to detect style issues using `cpplint` and `eslint`.
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule outlines best practices for developing and maintaining applications within the ELK (Elasticsearch, Logstash, Kibana) stack, including coding standards, configuration, performance, security, and testing.
globs: **/*.conf, **/*.yml, **/*.json, **/*.log
globs: *.conf, *.yml, *.json, *.log
---
## ELK Stack Best Practices
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: Comprehensive guide to Emacs Lisp coding standards, best practices, and common pitfalls. Focuses on maintainability, readability, and performance for building robust Emacs extensions.
globs: **/*.el
globs: *.el
---
- ## Code Organization and Structure
- ### Directory Structure
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule provides comprehensive best practices for using esbuild, focusing on performance, code organization, and security in build configurations and development workflows.
globs: **/*.{js,jsx,ts,tsx,css,json}
globs: *.js,*.jsx,*.ts,*.tsx,*.css,*.json
---
# esbuild Best Practices
+1 -1
View File
@@ -1,5 +1,5 @@
---
description: This rule provides comprehensive guidelines for ESLint, covering code organization, common patterns, performance, security, testing, and tooling, ensuring high-quality, maintainable JavaScript/TypeScript code.
globs: **/*.{js,jsx,ts,tsx,vue}
globs: *.js,*.jsx,*.ts,*.tsx,*.vue
---
By following these best practices, you can ensure that your JavaScript/TypeScript code is clean, consistent, and maintainable, reducing the risk of bugs and improving overall code quality.
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule provides comprehensive best practices and coding standards for Expo projects, covering code organization, performance, security, testing, and common pitfalls to ensure maintainable and high-quality applications.
globs: **/*.{js,jsx,ts,tsx}
globs: *.js,*.jsx,*.ts,*.tsx
---
- **Code Organization and Structure**
- **Directory Structure:**
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule provides comprehensive guidance on best practices for developing robust, maintainable, and performant Express.js applications, covering aspects from code organization and security to testing and deployment.
globs: **/*.js
globs: *.js
---
- # Express.js Best Practices
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule provides comprehensive best practices for developing applications with Fabric.js, covering code organization, performance optimization, security considerations, and testing strategies. It aims to help developers create efficient, maintainable, and secure Fabric.js-based applications.
globs: **/*.js
globs: *.js
---
# Fabric.js Best Practices and Coding Standards
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: Comprehensive guidelines for developing robust, scalable, and maintainable FastAPI applications. Covers code structure, performance, security, testing, and common pitfalls.
globs: **/*.py
globs: *.py
---
# FastAPI Best Practices: A Comprehensive Guide
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule outlines the best practices and coding standards for developing with FFmpeg, covering code organization, performance, security, testing, and common pitfalls.
globs: **/*.c
globs: *.c
---
# FFmpeg Best Practices and Coding Standards
+1 -1
View File
@@ -1,4 +1,4 @@
---
description: This rule provides comprehensive best practices for developing robust, maintainable, and scalable applications using the Fiber web framework in Go. It covers code organization, performance, security, testing, and common pitfalls.
globs: **/*.go
globs: *.go
---
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule provides guidelines for Firebase library usage, covering code organization, performance, security, testing, and common pitfalls. It aims to ensure efficient, secure, and maintainable Firebase projects.
globs: **/*.{js,jsx,ts,tsx,html,css,scss,vue,swift,kt,java,py,go,rb,php,c,cpp,cs}
globs: *.js,*.jsx,*.ts,*.tsx,*.html,*.css,*.scss,*.vue,*.swift,*.kt,*.java,*.py,*.go,*.rb,*.php,*.c,*.cpp,*.cs
---
---
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: Comprehensive guide for using Flake8 effectively in Python projects, covering code style, error prevention, security, testing, and optimization. It outlines best practices, patterns, and common pitfalls to help developers maintain high code quality and adherence to standards.
globs: **/*.py
globs: *.py
---
# Flake8 Best Practices: A Comprehensive Guide
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: A comprehensive guide to best practices for developing RESTful APIs using Flask and Flask-RESTful, covering code organization, performance, security, and testing.
globs: **/*.py
globs: *.py
---
# flask-restful Best Practices: A Comprehensive Guide
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule provides comprehensive best practices for developing Flask applications, covering code structure, security, performance, and testing.
globs: **/*.py
globs: *.py
---
- ## Code Organization and Structure:
- **Directory Structure Best Practices:**
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: Comprehensive guidelines and best practices for Flutter development, covering code organization, performance optimization, security, testing, and tooling.
globs: **/*.dart
globs: *.dart
---
- Adhere to the official Flutter style guide. This forms the foundation for maintainable and consistent code.
- Utilize the latest stable version of Flutter, keeping up-to-date with new features and security patches. Review Flutter's breaking changes and migration guides during updates.
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule file provides comprehensive guidelines for using Font Awesome effectively, covering setup, styling, accessibility, performance, and security best practices. It ensures consistent and optimized usage across projects.
globs: **/*.{html,css,js,jsx,ts,tsx}
globs: *.html,*.css,*.js,*.jsx,*.ts,*.tsx
---
# Font Awesome Best Practices
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: Provides guidelines for using gcp-cli, including best practices for scripting, configuration management, security, and performance. Focuses on automation, predictable output, and secure authentication within Google Cloud environments.
globs: **/*.{sh,yaml,tf,py}
globs: *.sh,*.yaml,*.tf,*.py
---
- **Scripting Best Practices**:
- **Use the `--quiet` flag**: Suppress prompts for non-interactive script execution.
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule provides best practices for developing and managing infrastructure and applications on Google Cloud Platform (GCP), encompassing code organization, security, performance, and deployment strategies.
globs: **/*.{tf,py,js,go,java,proto,sh,yaml,yml}
globs: *.tf,*.py,*.js,*.go,*.java,*.proto,*.sh,*.yaml,*.yml
---
---
## GCP Library Best Practices
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule provides coding standards and best practices for using the gensim library, focusing on NLP, topic modeling, performance, and code organization. It offers actionable guidelines for developers to create effective and maintainable gensim-based applications.
globs: **/*.py
globs: *.py
---
# gensim Library Best Practices and Coding Standards
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule provides a comprehensive set of best practices for developing Go applications, covering code organization, performance, security, testing, and common pitfalls.
globs: **/*.go
globs: *.go
---
- # Go Best Practices
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: Comprehensive coding standards and best practices for Godot Engine development, covering code organization, performance, testing, and security to ensure maintainable, efficient, and secure game projects. These rules are primarily for GDScript but also reference relevant C# practices where applicable.
globs: **/*.gd
globs: *.gd
---
# Godot Engine Best Practices and Coding Standards
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule provides guidelines for Google Maps JavaScript API development, covering code organization, performance, security, testing, and common pitfalls. It promotes best practices to ensure efficient, secure, and maintainable map applications.
globs: **/*.{js,jsx,ts,tsx,html,css}
globs: *.js,*.jsx,*.ts,*.tsx,*.html,*.css
---
# Google Maps JavaScript API Best Practices
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: Comprehensive rules for Gradle best practices, covering code organization, performance, security, testing, and more. Provides actionable guidance to improve Gradle project maintainability and efficiency.
globs: **/*.gradle*
globs: *.gradle*
---
- **Use the Gradle Wrapper**: Always use the Gradle wrapper (`gradlew` and `gradlew.bat`) to ensure consistent Gradle versions across different environments. This avoids compatibility issues and simplifies collaboration.
- Command: `gradle wrapper` to generate the wrapper files.
+1 -1
View File
@@ -1,5 +1,5 @@
---
description: Comprehensive guide for Grafana development best practices, covering code organization, performance, security, testing, and common pitfalls to ensure robust and maintainable Grafana solutions. Includes guidance for creating efficient dashboards, data sources, and plugins.
globs: **/*.{ts,tsx,js,jsx,json,yml,yaml,md,mdc}
globs: *.ts,*.tsx,*.js,*.jsx,*.json,*.yml,*.yaml,*.md,*.mdc
---
By adhering to these comprehensive best practices, you can build robust, maintainable, and secure Grafana solutions that provide valuable insights into your data and systems.
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule provides comprehensive best practices and coding standards for GraphQL development, covering code organization, performance, security, testing, and common pitfalls.
globs: **/*.graphql
globs: *.graphql
---
- **Naming Conventions**:
- Use `camelCase` for field names, argument names, and directive names. This is a widely accepted convention that enhances readability and consistency.
+1 -1
View File
@@ -1,5 +1,5 @@
---
description: This rule provides comprehensive guidelines for using the Guzzle HTTP client in PHP projects, covering code organization, common patterns, performance, security, testing, and tooling.
globs: **/*.php
globs: *.php
---
By following these best practices, you can ensure that your Guzzle-based code is efficient, maintainable, secure, and reliable.
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule outlines best practices for Hardhat development, covering code organization, security, testing, and performance. It aims to provide a comprehensive guide for developers working with the Hardhat Ethereum development environment.
globs: **/*.{js,ts,sol,json}
globs: *.js,*.ts,*.sol,*.json
---
# Hardhat Best Practices and Coding Standards
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: Comprehensive best practices and coding standards for developing, deploying, and maintaining applications on the Heroku platform. This rule emphasizes the Twelve-Factor App methodology and provides detailed guidance for optimizing application architecture, performance, security, and maintainability on Heroku.
globs: **/*
globs: *
---
- Follow the Twelve-Factor App methodology for building software-as-a-service applications.
- **Codebase:** Maintain a single codebase tracked in version control (e.g., Git) for each application. Multiple deploys should be created from this single codebase.
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule provides comprehensive best practices for htmx development, covering code organization, security, performance, testing, and common pitfalls. It aims to guide developers in building robust, maintainable, and secure htmx applications.
globs: **/*.html
globs: *.html
---
# htmx Best Practices and Coding Standards
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule provides comprehensive best practices for using the httpx library, covering code organization, performance, security, testing, and common pitfalls. Adhering to these guidelines will improve code quality, maintainability, and security when working with httpx.
globs: **/*.py
globs: *.py
---
# httpx Best Practices
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule provides guidelines for best practices when working with the Hugging Face Transformers library, covering code organization, performance, testing, security, and common pitfalls. It emphasizes community standards and maintainability.
globs: **/*.py
globs: *.py
---
# Hugging Face Transformers Library Best Practices
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: Comprehensive guide covering best practices for the Hypothesis Python library, including coding standards, testing, performance, and security. Provides actionable guidance for developers to write maintainable, robust, and efficient property-based tests.
globs: **/*.py
globs: *.py
---
# Hypothesis Library Best Practices and Coding Standards
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule file provides best practices for using the Insomnia API Client, including project organization, environment management, testing, and collaboration to improve API development workflows.
globs: **/*.{json,yaml,yml,graphql,proto}
globs: *.json,*.yaml,*.yml,*.graphql,*.proto
---
- **Project Organization and Structure:**
- **Workspace Structure:** Organize requests into workspaces based on projects or functional areas. Within workspaces, use folders to group related requests (e.g., authentication, user management, product catalog).
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule provides comprehensive best practices for Ionic Framework development, covering code organization, performance, security, testing, and more. Following these guidelines will result in more maintainable, performant, and secure Ionic applications.
globs: **/*.{ts,html,scss}
globs: *.ts,*.html,*.scss
---
---
# Ionic Framework Best Practices
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule provides comprehensive guidelines for using isort in Python projects, covering code organization, common patterns, performance, security, testing, tooling, and common pitfalls. It aims to standardize import sorting and improve code quality.
globs: **/*.py
globs: *.py
---
# isort Best Practices: A Comprehensive Guide
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: Enforces best practices for Java development, covering code style, performance, security, and testing. Provides guidelines for writing clean, maintainable, and efficient Java code.
globs: **/*.java
globs: *.java
---
- # Java Best Practices
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule provides best practices and coding standards for the JAX library, emphasizing functional programming, JIT compilation, automatic differentiation, and immutable data structures. It also covers performance considerations, common pitfalls, and tooling recommendations.
globs: **/*.py
globs: *.py
---
- **Functional Programming**: JAX emphasizes a functional programming style. Ensure functions are pure (no side effects, no reliance on global variables) for consistent JIT compilation and optimization.
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: Comprehensive best practices for Jenkins, covering code organization, security, performance, testing, and common pitfalls. Provides guidelines for writing robust, maintainable, and secure Jenkins pipelines and configurations.
globs: **/{Jenkinsfile,*.jenkins,*.groovy}
globs: Jenkinsfile,*.jenkins,*.groovy
---
# Jenkins Library Best Practices and Coding Standards
+1 -1
View File
@@ -1,6 +1,6 @@
---
description: This rule provides guidelines for writing clean, maintainable, and effective tests using Jest. It covers code organization, performance, common pitfalls, and best practices for testing JavaScript and TypeScript projects.
globs: **/*.{js,jsx,ts,tsx,mjs,cjs,mts,cts}
globs: *.js,*.jsx,*.ts,*.tsx,*.mjs,*.cjs,*.mts,*.cts
---
- **Organize tests by feature or module:**
- Group tests into files or directories that correspond to the features or modules they are testing. This makes it easier to locate and maintain tests.

Some files were not shown because too many files have changed in this diff Show More