跳到技能内容
词映 AI导航
发现工具选型指南Skills 技能AI 快讯AI图片AI视频AI文档AI办公AI助手AI搜索AI编程AI音频AI设计AI智能体模型与开发AI学习模型评测AI提示词内容检测AI金融AI 3D扫描与识别其他工具跨境电商 AI
词映 AI导航
工具库Skills 技能
我的收藏
词映 AI导航
发现工具选型指南Skills 技能AI 快讯AI图片AI视频AI文档AI办公AI助手AI搜索AI编程AI音频AI设计AI智能体模型与开发AI学习模型评测AI提示词内容检测AI金融AI 3D扫描与识别其他工具跨境电商 AI
Skills directory/managedcode/Orleans.RateLimiting/complexity

Codex Review C# Cyclomatic Complexity with CA1502

Check method complexity and maintainability diagnostics against the project's severity and threshold settings.

中文

Install in Codex

Use the .NET SDK, a local project with the analyzer enabled, and its rule configuration.

  1. Copy the pinned `.codex/skills/complexity/` directory into `.agents/skills/complexity/` in the project.
  2. Read `references/complexity.md`, `references/metrics.md`, and `references/config.md`, then identify the relevant rule.

Example task

Enable `CA1502` in a local demo with a branching status formatter. Run `dotnet build Demo.csproj` and report the diagnostic location.

What to check

The report identifies any method exceeding the project threshold, the rule settings, and tests that cover its behavior.

Original SKILL.md on GitHub · Updated 2026-11-13

Frequently asked question

Where does the threshold belong?

Use `.editorconfig` for diagnostic severity and `CodeMetricsConfig.txt` as an `AdditionalFiles` item for metric thresholds.

Related skills from this repository

  • Codex dotnet format Checks for .NET Repositories
  • Codex .NET Architecture for Modular Boundaries and Dependencies
  • Codex Modern C# for LangVersion and Framework Compatibility
Browse Codex skills in the Chinese directory
词映 AI 导航Skills 技能
工具分类全部工具已本地化技能选型指南AI 快讯