Skip to content

feat: C# IPC 适配新的 main.py 结构

e1107cf
Select commit
Loading
Failed to load commit list.
Merged

feat: C# IPC 实现逻辑 #133

feat: C# IPC 适配新的 main.py 结构
e1107cf
Select commit
Loading
Failed to load commit list.
codefactor.io / CodeFactor failed Jan 2, 2026 in 7s

2 issues fixed. 81 issues found. Autofix available.

Annotations

Check notice on line 248 in vendors/pythonnet-stub-generator/csharp/PythonNetStubGenerator/StubWriter.cs

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

vendors/pythonnet-stub-generator/csharp/PythonNetStubGenerator/StubWriter.cs#L248

An opening brace should not be followed by a blank line. (SA1505)

Check notice on line 666 in vendors/pythonnet-stub-generator/csharp/PythonNetStubGenerator/StubWriter.cs

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

vendors/pythonnet-stub-generator/csharp/PythonNetStubGenerator/StubWriter.cs#L666

A closing brace should not be preceded by a blank line. (SA1508)

Check notice on line 452 in vendors/pythonnet-stub-generator/csharp/PythonNetStubGenerator/StubWriter.cs

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

vendors/pythonnet-stub-generator/csharp/PythonNetStubGenerator/StubWriter.cs#L452

Conditional expressions should declare precedence. (SA1408)

Check notice on line 504 in vendors/pythonnet-stub-generator/csharp/PythonNetStubGenerator/StubWriter.cs

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

vendors/pythonnet-stub-generator/csharp/PythonNetStubGenerator/StubWriter.cs#L439-L504

Complex Method

Check notice on line 36 in vendors/pythonnet-stub-generator/csharp/PythonNetStubGenerator/StubBuilder.cs

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

vendors/pythonnet-stub-generator/csharp/PythonNetStubGenerator/StubBuilder.cs#L36

Code should not contain multiple blank lines in a row. (SA1507)

Check notice on line 669 in vendors/pythonnet-stub-generator/csharp/PythonNetStubGenerator/StubWriter.cs

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

vendors/pythonnet-stub-generator/csharp/PythonNetStubGenerator/StubWriter.cs#L669

Code should not contain multiple blank lines in a row. (SA1507)

Check notice on line 31 in vendors/pythonnet-stub-generator/csharp/PythonNetStubGenerator/PythonStubTask.cs

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

vendors/pythonnet-stub-generator/csharp/PythonNetStubGenerator/PythonStubTask.cs#L31

A closing brace should not be preceded by a blank line. (SA1508)

Check notice on line 7 in vendors/pythonnet-stub-generator/csharp/PythonNetStubGenerator/SymbolScope.cs

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

vendors/pythonnet-stub-generator/csharp/PythonNetStubGenerator/SymbolScope.cs#L7

An opening brace should not be followed by a blank line. (SA1505)

Check notice on line 88 in vendors/pythonnet-stub-generator/csharp/PythonNetStubGenerator/StubBuilder.cs

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

vendors/pythonnet-stub-generator/csharp/PythonNetStubGenerator/StubBuilder.cs#L88

Code should not contain multiple blank lines in a row. (SA1507)

Check notice on line 616 in vendors/pythonnet-stub-generator/csharp/PythonNetStubGenerator/StubWriter.cs

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

vendors/pythonnet-stub-generator/csharp/PythonNetStubGenerator/StubWriter.cs#L616

Code should not contain multiple blank lines in a row. (SA1507)

Check notice on line 701 in app/common/notification/notification_service.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

app/common/notification/notification_service.py#L700-L701

Try, Except, Pass detected. (B110)

Check notice on line 436 in vendors/pythonnet-stub-generator/csharp/PythonNetStubGenerator/StubWriter.cs

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

vendors/pythonnet-stub-generator/csharp/PythonNetStubGenerator/StubWriter.cs#L436

A closing brace should not be preceded by a blank line. (SA1508)

Check notice on line 108 in vendors/pythonnet-stub-generator/csharp/PythonNetStubGenerator/StubWriter.cs

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

vendors/pythonnet-stub-generator/csharp/PythonNetStubGenerator/StubWriter.cs#L108

A closing brace should not be preceded by a blank line. (SA1508)

Check notice on line 224 in vendors/pythonnet-stub-generator/csharp/PythonNetStubGenerator/StubWriter.cs

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

vendors/pythonnet-stub-generator/csharp/PythonNetStubGenerator/StubWriter.cs#L224

An opening brace should not be followed by a blank line. (SA1505)

Check notice on line 38 in vendors/pythonnet-stub-generator/csharp/PythonNetStubGenerator/StubWriter.cs

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

vendors/pythonnet-stub-generator/csharp/PythonNetStubGenerator/StubWriter.cs#L38

Code should not contain multiple blank lines in a row. (SA1507)

Check notice on line 608 in vendors/pythonnet-stub-generator/csharp/PythonNetStubGenerator/StubWriter.cs

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

vendors/pythonnet-stub-generator/csharp/PythonNetStubGenerator/StubWriter.cs#L608

Code should not contain multiple blank lines in a row. (SA1507)

Check notice on line 64 in vendors/pythonnet-stub-generator/csharp/PythonNetStubGenerator/StubBuilder.cs

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

vendors/pythonnet-stub-generator/csharp/PythonNetStubGenerator/StubBuilder.cs#L64

Code should not contain multiple blank lines in a row. (SA1507)

Check notice on line 16 in vendors/pythonnet-stub-generator/csharp/PythonNetStubGenerator/PythonTypes.cs

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

vendors/pythonnet-stub-generator/csharp/PythonNetStubGenerator/PythonTypes.cs#L16

Code should not contain multiple blank lines in a row. (SA1507)

Check notice on line 86 in vendors/pythonnet-stub-generator/csharp/PythonNetStubGenerator/MethodComparer.cs

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

vendors/pythonnet-stub-generator/csharp/PythonNetStubGenerator/MethodComparer.cs#L11-L86

Complex Method

Check notice on line 811 in vendors/pythonnet-stub-generator/csharp/PythonNetStubGenerator/StubWriter.cs

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

vendors/pythonnet-stub-generator/csharp/PythonNetStubGenerator/StubWriter.cs#L811

Code should not contain multiple blank lines in a row. (SA1507)

Check notice on line 817 in vendors/pythonnet-stub-generator/csharp/PythonNetStubGenerator/StubWriter.cs

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

vendors/pythonnet-stub-generator/csharp/PythonNetStubGenerator/StubWriter.cs#L817

Code should not contain multiple blank lines in a row. (SA1507)

Check notice on line 247 in vendors/pythonnet-stub-generator/csharp/PythonNetStubGenerator/StubWriter.cs

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

vendors/pythonnet-stub-generator/csharp/PythonNetStubGenerator/StubWriter.cs#L247

Prefer comparing `Count` to 0 rather than using `Any()`, both for clarity and for performance. (CA1860)

Check notice on line 519 in vendors/pythonnet-stub-generator/csharp/PythonNetStubGenerator/StubWriter.cs

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

vendors/pythonnet-stub-generator/csharp/PythonNetStubGenerator/StubWriter.cs#L519

An opening brace should not be followed by a blank line. (SA1505)

Check notice on line 244 in vendors/pythonnet-stub-generator/csharp/PythonNetStubGenerator/StubWriter.cs

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

vendors/pythonnet-stub-generator/csharp/PythonNetStubGenerator/StubWriter.cs#L244

Code should not contain multiple blank lines in a row. (SA1507)

Check notice on line 179 in vendors/pythonnet-stub-generator/csharp/PythonNetStubGenerator/PythonTypes.cs

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

vendors/pythonnet-stub-generator/csharp/PythonNetStubGenerator/PythonTypes.cs#L179

Code should not contain multiple blank lines in a row. (SA1507)