بنقرة واحدة
code-analysis-warnings
Microsoft code analysis CA warning meanings and examples
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Microsoft code analysis CA warning meanings and examples
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Inspect, unpack, edit, sign, and repack Ren'Py save files. Use when working with Ren'Py .save archives, save metadata JSON, screenshot/extra_info/log/signatures entries, machine save-token keys, or when a user asks to modify or repair a Ren'Py savegame.
correct modelling of C# datastructures for maintainable code
Correctly call native (C/C++) libraries from .NET using P/Invoke and LibraryImport. Covers function signatures, string marshalling, memory lifetime, SafeHandle, and cross-platform patterns. USE FOR: writing new P/Invoke or LibraryImport declarations, reviewing or debugging existing native interop code, wrapping a C or C++ library for use in .NET, diagnosing crashes, memory leaks, or corruption at the managed/native boundary. DO NOT USE FOR: COM interop, C++/CLI mixed-mode assemblies, or pure managed code with no native dependencies.
Guides activity tracing with generated ActivitySources, tags, parent activities, exception status handling, and registration. Use when adding or reviewing OpenTelemetry activity tracing in Bendex flows.
Routing guide for enabled compiler and analyzer warnings in this Bendex solution
Non-nullability C# compiler warning meanings and examples
| name | code-analysis-warnings |
| description | Microsoft code analysis CA warning meanings and examples |
Use this skill when the build reports enabled CA* diagnostics.
CA)CA1069 - Enums should not have duplicate valuesWhat it flags: The enum defines two names with the same constant value without an intentional alias pattern.
Example:
enum Status { New = 0, Created = 0 }.CA1501 - Avoid excessive inheritanceWhat it flags: A type has an inheritance chain that is too deep to maintain comfortably.
Example:
ScreenEditor : EditorBase : ControlBase : FrameworkBase : ....CA1502 - Avoid excessive complexityWhat it flags: A method has high cyclomatic complexity.
Example:
if, switch, and loop branches.CA1505 - Avoid unmaintainable codeWhat it flags: A type or assembly has a high maintainability risk.
Example:
CA1506 - Avoid excessive class couplingWhat it flags: A type or method is coupled to too many other types.
Example:
CA1822 - Mark members as staticWhat it flags: An instance member does not use instance state and can be static.
Example:
public int Count() => 1; in an instance class without using instance members.static or use actual instance state.CA2002 - Do not lock on objects with weak identityWhat it flags: Code locks on a type, string, or other object with weak identity.
Example:
lock (typeof(Cache)) or lock ("global").CA2011 - Avoid infinite recursion in property accessorsWhat it flags: A property accessor recursively reads or writes the same property.
Example:
set { Count = value; } inside the Count property._count = value;.CA2211 - Non-constant fields should not be visibleWhat it flags: A visible static field is mutable and can be changed globally.
Example:
public static List<string> Names;.