Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 22 additions & 21 deletions .codacy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,31 @@
exclude_paths:

# Ignore all root-level metadata and documentation
- '.gitignore' # root Git ignore file
- '.runsettings' # root runsettings file
- 'LICENSE' # root license file
- 'README.md' # root readme
- '.gitignore'
- '.runsettings'
- 'LICENSE'
- 'README.md'

# Ignore all file types that shouldn't be analyzed
- '**.yml' # YAML files anywhere (build, config, pipelines)
- '**.json' # JSON files (settings, config)
- '**.png' # Images, e.g., Swagger diagram
- '**.sln' # Solution files
- '**.csproj' # C# project files
- '**.yml'
- '**.json'
- '**.png'
- '**.sln'
- '**.csproj'

# Ignore generated or infrastructure files
- '**/*Program.cs' # Main entry point, often not useful for static analysis
- '**/*Program.cs'

# Ignore specific folders across any depth in the project
- '**/Configurations/**' # Swagger options, etc
- '**/Data/**' # Repositories, DbContext, database file, etc.
- '**/Enums/**' # Enumeration types
- '**/Mappings/**' # AutoMapper profiles
- '**/Migrations/**' # EF Core migration snapshots
- '**/Models/**' # Domain and DTO models
- '**/Properties/**' # launchSettings.json or AssemblyInfo.cs
- '**/Utilities/**' # Helper extensions or static classes
- '**/Validators/**' # FluentValidation validators
- 'test/**/*' # Entire test suite (unit + integration)
- 'scripts/**/*' # Helper shell scripts
- '**/Configurations/**'
- '**/Data/**'
- '**/Enums/**'
- '**/Mappings/**'
- '**/Migrations/**'
- '**/Models/**'
- '**/Properties/**'
- '**/Repositories/**'
- '**/Utilities/**'
- '**/Validators/**'
- 'test/**/*'
- 'scripts/**/*'
12 changes: 0 additions & 12 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,6 @@
"/consoleloggerparameters:NoSummary;ForceNoAlign"
],
"problemMatcher": "$msCompile"
},
{
"label": "watch",
"command": "dotnet",
"type": "process",
"args": [
"watch",
"run",
"--project",
"${workspaceFolder}/Dotnet.Samples.AspNetCore.WebApi.sln"
],
"problemMatcher": "$msCompile"
}
]
}
1 change: 1 addition & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,6 @@ ignore:
- .*\/Migrations\/.*
- .*\/Models\/.*
- .*\/Properties\/.*
- .*\/Repositories\/.*
- .*\/Utilities\/.*
- .*\/Validators\/.*
1 change: 1 addition & 0 deletions src/Dotnet.Samples.AspNetCore.WebApi/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using Dotnet.Samples.AspNetCore.WebApi.Data;
using Dotnet.Samples.AspNetCore.WebApi.Mappings;
using Dotnet.Samples.AspNetCore.WebApi.Models;
using Dotnet.Samples.AspNetCore.WebApi.Repositories;
using Dotnet.Samples.AspNetCore.WebApi.Services;
using Dotnet.Samples.AspNetCore.WebApi.Validators;
using FluentValidation;
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

using Dotnet.Samples.AspNetCore.WebApi.Models;

namespace Dotnet.Samples.AspNetCore.WebApi.Data;
namespace Dotnet.Samples.AspNetCore.WebApi.Repositories;

/// <summary>
/// Provides specialized repository operations for Player entities.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Dotnet.Samples.AspNetCore.WebApi.Data;
namespace Dotnet.Samples.AspNetCore.WebApi.Repositories;

/// <summary>
/// Provides generic repository operations for entities of type <typeparamref name="T"/>.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
using Dotnet.Samples.AspNetCore.WebApi.Data;
using Dotnet.Samples.AspNetCore.WebApi.Models;
using Microsoft.EntityFrameworkCore;

namespace Dotnet.Samples.AspNetCore.WebApi.Data;
namespace Dotnet.Samples.AspNetCore.WebApi.Repositories;

public sealed class PlayerRepository(PlayerDbContext dbContext)
: Repository<Player>(dbContext),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.EntityFrameworkCore;

namespace Dotnet.Samples.AspNetCore.WebApi.Data;
namespace Dotnet.Samples.AspNetCore.WebApi.Repositories;

public class Repository<T>(DbContext dbContext) : IRepository<T>
where T : class
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using AutoMapper;
using Dotnet.Samples.AspNetCore.WebApi.Data;
using Dotnet.Samples.AspNetCore.WebApi.Models;
using Dotnet.Samples.AspNetCore.WebApi.Repositories;
using Microsoft.Extensions.Caching.Memory;

namespace Dotnet.Samples.AspNetCore.WebApi.Services;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Dotnet.Samples.AspNetCore.WebApi.Data;
using Dotnet.Samples.AspNetCore.WebApi.Enums;
using Dotnet.Samples.AspNetCore.WebApi.Models;
using Dotnet.Samples.AspNetCore.WebApi.Repositories;
using FluentValidation;

namespace Dotnet.Samples.AspNetCore.WebApi.Validators;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using AutoMapper;
using Dotnet.Samples.AspNetCore.WebApi.Controllers;
using Dotnet.Samples.AspNetCore.WebApi.Data;
using Dotnet.Samples.AspNetCore.WebApi.Models;
using Dotnet.Samples.AspNetCore.WebApi.Repositories;
using Dotnet.Samples.AspNetCore.WebApi.Services;
using FluentValidation;
using Microsoft.AspNetCore.Mvc;
Expand Down
Loading