avoid naming types and namespaces with the same identifier - ndepend

This commit is contained in:
Collin M. Barrett 2018-04-17 19:54:03 -05:00
parent 9d56686390
commit a206b4132d
36 changed files with 56 additions and 56 deletions

2
.gitignore vendored
View file

@ -334,4 +334,4 @@ appsettings.development.json
appsettings.production.json
src/FilterLists.Agent/appsettings.json
src/FilterLists.Web/wwwroot/dist
NDependOut/
NDependOut*/

View file

@ -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;

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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();
}
}

View file

@ -5,7 +5,7 @@
using FilterLists.Data;
using Microsoft.EntityFrameworkCore;
namespace FilterLists.Services.FilterListService
namespace FilterLists.Services.FilterList
{
public class FilterListService
{

View file

@ -1,7 +1,7 @@
using System.Linq;
using System.Threading.Tasks;
namespace FilterLists.Services.FilterListService
namespace FilterLists.Services.FilterList
{
public static class FilterListServiceExtensions
{

View file

@ -1,7 +1,7 @@
using System;
using System.Collections.Generic;
namespace FilterLists.Services.FilterListService
namespace FilterLists.Services.FilterList
{
public class ListDetailsDto
{

View file

@ -1,6 +1,6 @@
using System.Collections.Generic;
namespace FilterLists.Services.FilterListService
namespace FilterLists.Services.FilterList
{
public class ListSummaryDto
{

View file

@ -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)))

View file

@ -1,6 +1,6 @@
using System;
namespace FilterLists.Services.SeedService.Models
namespace FilterLists.Services.Seed.Models
{
public class FilterListSeedDto
{

View file

@ -1,4 +1,4 @@
namespace FilterLists.Services.SeedService.Models.Junctions
namespace FilterLists.Services.Seed.Models.Junctions
{
public class FilterListLanguageSeedDto
{

View file

@ -1,4 +1,4 @@
namespace FilterLists.Services.SeedService.Models.Junctions
namespace FilterLists.Services.Seed.Models.Junctions
{
public class FilterListMaintainerSeedDto
{

View file

@ -1,4 +1,4 @@
namespace FilterLists.Services.SeedService.Models.Junctions
namespace FilterLists.Services.Seed.Models.Junctions
{
public class ForkSeedDto
{

View file

@ -1,4 +1,4 @@
namespace FilterLists.Services.SeedService.Models.Junctions
namespace FilterLists.Services.Seed.Models.Junctions
{
public class MergeSeedDto
{

View file

@ -1,4 +1,4 @@
namespace FilterLists.Services.SeedService.Models.Junctions
namespace FilterLists.Services.Seed.Models.Junctions
{
public class SoftwareSyntaxSeedDto
{

View file

@ -1,4 +1,4 @@
namespace FilterLists.Services.SeedService.Models
namespace FilterLists.Services.Seed.Models
{
public class LanguageSeedDto
{

View file

@ -1,4 +1,4 @@
namespace FilterLists.Services.SeedService.Models
namespace FilterLists.Services.Seed.Models
{
public class LicenseSeedDto
{

View file

@ -1,4 +1,4 @@
namespace FilterLists.Services.SeedService.Models
namespace FilterLists.Services.Seed.Models
{
public class MaintainerSeedDto
{

View file

@ -1,4 +1,4 @@
namespace FilterLists.Services.SeedService.Models
namespace FilterLists.Services.Seed.Models
{
public class SoftwareSeedDto
{

View file

@ -1,4 +1,4 @@
namespace FilterLists.Services.SeedService.Models
namespace FilterLists.Services.Seed.Models
{
public class SyntaxSeedDto
{

View file

@ -6,7 +6,7 @@
using FilterLists.Data;
using Microsoft.EntityFrameworkCore;
namespace FilterLists.Services.SeedService
namespace FilterLists.Services.Seed
{
public class SeedService
{

View file

@ -1,4 +1,4 @@
namespace FilterLists.Services.SnapshotService
namespace FilterLists.Services.Snapshot
{
public class FilterListViewUrlDto
{

View file

@ -1,4 +1,4 @@
namespace FilterLists.Services.SnapshotService
namespace FilterLists.Services.Snapshot
{
public static class RawRuleLinterExtensions
{

View file

@ -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;

View file

@ -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);
}

View file

@ -6,7 +6,7 @@
using FilterLists.Data;
using Microsoft.EntityFrameworkCore;
namespace FilterLists.Services.SnapshotService
namespace FilterLists.Services.Snapshot
{
public class SnapshotService
{