mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
avoid naming types and namespaces with the same identifier - ndepend
This commit is contained in:
parent
9d56686390
commit
a206b4132d
36 changed files with 56 additions and 56 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -334,4 +334,4 @@ appsettings.development.json
|
|||
appsettings.production.json
|
||||
src/FilterLists.Agent/appsettings.json
|
||||
src/FilterLists.Web/wwwroot/dist
|
||||
NDependOut/
|
||||
NDependOut*/
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
using System;
|
||||
using System.IO;
|
||||
using FilterLists.Services.DependencyInjection.Extensions;
|
||||
using FilterLists.Services.SnapshotService;
|
||||
using FilterLists.Services.Snapshot;
|
||||
using Microsoft.ApplicationInsights;
|
||||
using Microsoft.ApplicationInsights.Extensibility;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
using System.Threading.Tasks;
|
||||
using FilterLists.Data.Entities.Junctions;
|
||||
using FilterLists.Services.SeedService;
|
||||
using FilterLists.Services.SeedService.Models.Junctions;
|
||||
using FilterLists.Services.Seed;
|
||||
using FilterLists.Services.Seed.Models.Junctions;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace FilterLists.Api.V1.Controllers
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
using System.Threading.Tasks;
|
||||
using FilterLists.Data.Entities;
|
||||
using FilterLists.Services.SeedService;
|
||||
using FilterLists.Services.SeedService.Models;
|
||||
using FilterLists.Services.Seed;
|
||||
using FilterLists.Services.Seed.Models;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace FilterLists.Api.V1.Controllers
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
using System.Threading.Tasks;
|
||||
using FilterLists.Data.Entities;
|
||||
using FilterLists.Services.SeedService;
|
||||
using FilterLists.Services.SeedService.Models;
|
||||
using FilterLists.Services.Seed;
|
||||
using FilterLists.Services.Seed.Models;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace FilterLists.Api.V1.Controllers
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
using System.Threading.Tasks;
|
||||
using FilterLists.Data.Entities;
|
||||
using FilterLists.Services.FilterListService;
|
||||
using FilterLists.Services.SeedService;
|
||||
using FilterLists.Services.SeedService.Models;
|
||||
using FilterLists.Services.FilterList;
|
||||
using FilterLists.Services.Seed;
|
||||
using FilterLists.Services.Seed.Models;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace FilterLists.Api.V1.Controllers
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
using System.Threading.Tasks;
|
||||
using FilterLists.Data.Entities.Junctions;
|
||||
using FilterLists.Services.SeedService;
|
||||
using FilterLists.Services.SeedService.Models.Junctions;
|
||||
using FilterLists.Services.Seed;
|
||||
using FilterLists.Services.Seed.Models.Junctions;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace FilterLists.Api.V1.Controllers
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
using System.Threading.Tasks;
|
||||
using FilterLists.Data.Entities.Junctions;
|
||||
using FilterLists.Services.SeedService;
|
||||
using FilterLists.Services.SeedService.Models.Junctions;
|
||||
using FilterLists.Services.Seed;
|
||||
using FilterLists.Services.Seed.Models.Junctions;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace FilterLists.Api.V1.Controllers
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
using System.Threading.Tasks;
|
||||
using FilterLists.Data.Entities;
|
||||
using FilterLists.Services.SeedService;
|
||||
using FilterLists.Services.SeedService.Models;
|
||||
using FilterLists.Services.Seed;
|
||||
using FilterLists.Services.Seed.Models;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace FilterLists.Api.V1.Controllers
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
using System.Threading.Tasks;
|
||||
using FilterLists.Data.Entities.Junctions;
|
||||
using FilterLists.Services.SeedService;
|
||||
using FilterLists.Services.SeedService.Models.Junctions;
|
||||
using FilterLists.Services.Seed;
|
||||
using FilterLists.Services.Seed.Models.Junctions;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace FilterLists.Api.V1.Controllers
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
using System.Threading.Tasks;
|
||||
using FilterLists.Data.Entities;
|
||||
using FilterLists.Services.SeedService;
|
||||
using FilterLists.Services.SeedService.Models;
|
||||
using FilterLists.Services.Seed;
|
||||
using FilterLists.Services.Seed.Models;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace FilterLists.Api.V1.Controllers
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
using System.Threading.Tasks;
|
||||
using FilterLists.Data.Entities.Junctions;
|
||||
using FilterLists.Services.SeedService;
|
||||
using FilterLists.Services.SeedService.Models.Junctions;
|
||||
using FilterLists.Services.Seed;
|
||||
using FilterLists.Services.Seed.Models.Junctions;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace FilterLists.Api.V1.Controllers
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
using System.Threading.Tasks;
|
||||
using FilterLists.Data.Entities;
|
||||
using FilterLists.Services.SeedService;
|
||||
using FilterLists.Services.SeedService.Models;
|
||||
using FilterLists.Services.Seed;
|
||||
using FilterLists.Services.Seed.Models;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace FilterLists.Api.V1.Controllers
|
||||
|
|
|
|||
|
|
@ -17,9 +17,9 @@ public static void AddFilterListsServices(this IServiceCollection services, ICon
|
|||
options.UseMySql(configuration.GetConnectionString("FilterListsConnection"),
|
||||
b => b.MigrationsAssembly("FilterLists.Api"))
|
||||
.EnableSensitiveDataLogging());
|
||||
services.TryAddScoped<FilterListService.FilterListService>();
|
||||
services.TryAddScoped<SeedService.SeedService>();
|
||||
services.TryAddScoped<SnapshotService.SnapshotService>();
|
||||
services.TryAddScoped<FilterList.FilterListService>();
|
||||
services.TryAddScoped<Seed.SeedService>();
|
||||
services.TryAddScoped<Snapshot.SnapshotService>();
|
||||
services.AddAutoMapper();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
using FilterLists.Data;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace FilterLists.Services.FilterListService
|
||||
namespace FilterLists.Services.FilterList
|
||||
{
|
||||
public class FilterListService
|
||||
{
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FilterLists.Services.FilterListService
|
||||
namespace FilterLists.Services.FilterList
|
||||
{
|
||||
public static class FilterListServiceExtensions
|
||||
{
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace FilterLists.Services.FilterListService
|
||||
namespace FilterLists.Services.FilterList
|
||||
{
|
||||
public class ListDetailsDto
|
||||
{
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace FilterLists.Services.FilterListService
|
||||
namespace FilterLists.Services.FilterList
|
||||
{
|
||||
public class ListSummaryDto
|
||||
{
|
||||
|
|
@ -2,18 +2,18 @@
|
|||
using AutoMapper;
|
||||
using FilterLists.Data.Entities;
|
||||
|
||||
namespace FilterLists.Services.FilterListService
|
||||
namespace FilterLists.Services.FilterList
|
||||
{
|
||||
public class MappingProfiles : Profile
|
||||
{
|
||||
public MappingProfiles()
|
||||
{
|
||||
CreateMap<FilterList, ListSummaryDto>()
|
||||
CreateMap<Data.Entities.FilterList, ListSummaryDto>()
|
||||
.ForMember(dto => dto.Languages,
|
||||
conf => conf.MapFrom(list =>
|
||||
list.FilterListLanguages.Select(listLangs => listLangs.Language)));
|
||||
|
||||
CreateMap<FilterList, ListDetailsDto>()
|
||||
CreateMap<Data.Entities.FilterList, ListDetailsDto>()
|
||||
.ForMember(dto => dto.Languages,
|
||||
conf => conf.MapFrom(list =>
|
||||
list.FilterListLanguages.Select(listLangs => listLangs.Language.Name)))
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
using System;
|
||||
|
||||
namespace FilterLists.Services.SeedService.Models
|
||||
namespace FilterLists.Services.Seed.Models
|
||||
{
|
||||
public class FilterListSeedDto
|
||||
{
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
namespace FilterLists.Services.SeedService.Models.Junctions
|
||||
namespace FilterLists.Services.Seed.Models.Junctions
|
||||
{
|
||||
public class FilterListLanguageSeedDto
|
||||
{
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
namespace FilterLists.Services.SeedService.Models.Junctions
|
||||
namespace FilterLists.Services.Seed.Models.Junctions
|
||||
{
|
||||
public class FilterListMaintainerSeedDto
|
||||
{
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
namespace FilterLists.Services.SeedService.Models.Junctions
|
||||
namespace FilterLists.Services.Seed.Models.Junctions
|
||||
{
|
||||
public class ForkSeedDto
|
||||
{
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
namespace FilterLists.Services.SeedService.Models.Junctions
|
||||
namespace FilterLists.Services.Seed.Models.Junctions
|
||||
{
|
||||
public class MergeSeedDto
|
||||
{
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
namespace FilterLists.Services.SeedService.Models.Junctions
|
||||
namespace FilterLists.Services.Seed.Models.Junctions
|
||||
{
|
||||
public class SoftwareSyntaxSeedDto
|
||||
{
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
namespace FilterLists.Services.SeedService.Models
|
||||
namespace FilterLists.Services.Seed.Models
|
||||
{
|
||||
public class LanguageSeedDto
|
||||
{
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
namespace FilterLists.Services.SeedService.Models
|
||||
namespace FilterLists.Services.Seed.Models
|
||||
{
|
||||
public class LicenseSeedDto
|
||||
{
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
namespace FilterLists.Services.SeedService.Models
|
||||
namespace FilterLists.Services.Seed.Models
|
||||
{
|
||||
public class MaintainerSeedDto
|
||||
{
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
namespace FilterLists.Services.SeedService.Models
|
||||
namespace FilterLists.Services.Seed.Models
|
||||
{
|
||||
public class SoftwareSeedDto
|
||||
{
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
namespace FilterLists.Services.SeedService.Models
|
||||
namespace FilterLists.Services.Seed.Models
|
||||
{
|
||||
public class SyntaxSeedDto
|
||||
{
|
||||
|
|
@ -6,7 +6,7 @@
|
|||
using FilterLists.Data;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace FilterLists.Services.SeedService
|
||||
namespace FilterLists.Services.Seed
|
||||
{
|
||||
public class SeedService
|
||||
{
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
namespace FilterLists.Services.SnapshotService
|
||||
namespace FilterLists.Services.Snapshot
|
||||
{
|
||||
public class FilterListViewUrlDto
|
||||
{
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
namespace FilterLists.Services.SnapshotService
|
||||
namespace FilterLists.Services.Snapshot
|
||||
{
|
||||
public static class RawRuleLinterExtensions
|
||||
{
|
||||
|
|
@ -6,16 +6,16 @@
|
|||
using FilterLists.Data.Entities.Junctions;
|
||||
using FilterLists.Services.Extensions;
|
||||
|
||||
namespace FilterLists.Services.SnapshotService
|
||||
namespace FilterLists.Services.Snapshot
|
||||
{
|
||||
public class SnapshotBatchDe
|
||||
{
|
||||
private readonly FilterListsDbContext dbContext;
|
||||
private readonly IEnumerable<string> rawRules;
|
||||
private readonly Snapshot snapshot;
|
||||
private readonly Data.Entities.Snapshot snapshot;
|
||||
private IQueryable<Rule> rules;
|
||||
|
||||
public SnapshotBatchDe(FilterListsDbContext dbContext, Snapshot snapshot, IEnumerable<string> rawRules)
|
||||
public SnapshotBatchDe(FilterListsDbContext dbContext, Data.Entities.Snapshot snapshot, IEnumerable<string> rawRules)
|
||||
{
|
||||
this.dbContext = dbContext;
|
||||
this.snapshot = snapshot;
|
||||
|
|
@ -9,7 +9,7 @@
|
|||
using FilterLists.Data.Entities.Junctions;
|
||||
using FilterLists.Services.Extensions;
|
||||
|
||||
namespace FilterLists.Services.SnapshotService
|
||||
namespace FilterLists.Services.Snapshot
|
||||
{
|
||||
public class SnapshotDe
|
||||
{
|
||||
|
|
@ -20,7 +20,7 @@ public class SnapshotDe
|
|||
|
||||
private readonly FilterListsDbContext dbContext;
|
||||
private readonly FilterListViewUrlDto list;
|
||||
private Snapshot snapshot;
|
||||
private Data.Entities.Snapshot snapshot;
|
||||
|
||||
public SnapshotDe(FilterListsDbContext dbContext, FilterListViewUrlDto list)
|
||||
{
|
||||
|
|
@ -50,7 +50,7 @@ private async Task<string> CaptureSnapshot()
|
|||
|
||||
private async Task AddSnapshot()
|
||||
{
|
||||
snapshot = new Snapshot {FilterListId = list.Id};
|
||||
snapshot = new Data.Entities.Snapshot {FilterListId = list.Id};
|
||||
await dbContext.Snapshots.AddAsync(snapshot);
|
||||
}
|
||||
|
||||
|
|
@ -6,7 +6,7 @@
|
|||
using FilterLists.Data;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace FilterLists.Services.SnapshotService
|
||||
namespace FilterLists.Services.Snapshot
|
||||
{
|
||||
public class SnapshotService
|
||||
{
|
||||
Loading…
Reference in a new issue