mirror of
https://github.com/baz-scm/awesome-reviewers.git
synced 2025-08-20 18:58:52 +03:00
1.3 KiB
1.3 KiB
title, description, repository, label, language, comments_count, repository_stars
| title | description | repository | label | language | comments_count | repository_stars |
|---|---|---|---|---|---|---|
| Maintain clean code structure | Keep code clean and well-organized by: 1. Removing unnecessary elements: - Delete commented-out code that is no longer needed - Remove unused using directives | Azure/azure-sdk-for-net | Code Style | C# | 5 | 5809 |
Keep code clean and well-organized by:
-
Removing unnecessary elements:
- Delete commented-out code that is no longer needed
- Remove unused using directives
- Avoid redundant code blocks
-
Organizing imports properly:
- Group using directives consistently (System namespaces first)
- Use clean imports instead of fully qualified names
- Keep imports ordered alphabetically
Example - Before:
using Azure.Core;
using System.Threading;
using System.Linq.Enumerable;
// Old implementation
// public void OldMethod() {
// // ...
// }
using System;
public class MyClass
{
public void ProcessItems()
{
if (System.Linq.Enumerable.Any(items)) // Verbose qualification
{
// ...
}
}
}
After:
using System;
using System.Linq;
using System.Threading;
using Azure.Core;
public class MyClass
{
public void ProcessItems()
{
if (items.Any()) // Clean syntax with proper imports
{
// ...
}
}
}