remove jetbrains annotations

This commit is contained in:
Collin M. Barrett 2017-10-15 17:42:50 -05:00
parent b91f348a3f
commit 29311a007b
8 changed files with 1 additions and 28 deletions

View file

@ -10,7 +10,6 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="JetBrains.Annotations" Version="11.0.0" />
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.0" />
</ItemGroup>

View file

@ -1,13 +1,10 @@
using JetBrains.Annotations;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
namespace FilterLists.Api
{
[UsedImplicitly]
public class Program
{
[UsedImplicitly]
public static void Main(string[] args)
{
BuildWebHost(args).Run();

View file

@ -2,7 +2,6 @@
using FilterLists.Api.DependencyInjection.Extensions;
using FilterLists.Data.DependencyInjection.Extensions;
using FilterLists.Services.DependencyInjection.Extensions;
using JetBrains.Annotations;
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
@ -21,7 +20,6 @@ public Startup()
private IConfigurationRoot Configuration { get; }
[UsedImplicitly]
public void ConfigureServices(IServiceCollection services)
{
services.AddFilterListsRepositories(Configuration);
@ -29,7 +27,6 @@ public void ConfigureServices(IServiceCollection services)
services.AddFilterListsApi();
}
[UsedImplicitly]
public void Configure(IApplicationBuilder app)
{
app.UseMvc();

View file

@ -6,7 +6,6 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="JetBrains.Annotations" Version="11.0.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="2.0.0" />
<PackageReference Include="Pomelo.EntityFrameworkCore.MySql" Version="2.0.0" />
</ItemGroup>

View file

@ -2,7 +2,6 @@
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using JetBrains.Annotations;
namespace FilterLists.Data.Models
{
@ -10,18 +9,15 @@ public abstract class BaseEntity
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
[UsedImplicitly]
public long Id { get; set; }
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
//TODO: Implement http://stackoverflow.com/a/38102266/2343739 so DefaultValue takes effect in db automatically
//For now, manually execute on new tables: InitializeNewTableBaseEntityDefaults.sql
[DefaultValue("CURRENT_TIMESTAMP")]
[UsedImplicitly]
public DateTime AddedDateUtc { get; set; }
[DatabaseGenerated(DatabaseGeneratedOption.Computed)]
[UsedImplicitly]
public DateTime? ModifiedDateUtc { get; set; }
}
}

View file

@ -1,56 +1,45 @@
using System.ComponentModel.DataAnnotations;
using JetBrains.Annotations;
namespace FilterLists.Data.Models
{
public class List : BaseEntity
{
[MaxLength(126)]
[UsedImplicitly]
public string Name { get; set; }
[Required]
[MaxLength(2083)]
[MinLength(6)]
[UsedImplicitly]
public string ViewUrl { get; set; }
[MaxLength(2083)]
[MinLength(6)]
[UsedImplicitly]
public string HomeUrl { get; set; }
[MaxLength(1022)]
[UsedImplicitly]
public string Description { get; set; }
[MaxLength(2083)]
[MinLength(6)]
[UsedImplicitly]
public string DescriptionSourceUrl { get; set; }
[MaxLength(126)]
[UsedImplicitly]
public string Author { get; set; }
[MaxLength(2083)]
[MinLength(6)]
[UsedImplicitly]
public string ForumUrl { get; set; }
[MaxLength(2083)]
[MinLength(6)]
[UsedImplicitly]
public string IssuesUrl { get; set; }
[MaxLength(126)]
[MinLength(7)]
[UsedImplicitly]
public string Email { get; set; }
[MaxLength(2083)]
[MinLength(6)]
[UsedImplicitly]
public string DonateUrl { get; set; }
}
}

View file

@ -1,5 +1,4 @@
using System.ComponentModel.DataAnnotations;
using JetBrains.Annotations;
namespace FilterLists.Data.Models
{
@ -7,13 +6,11 @@ public class TableCsv : BaseEntity
{
[Required]
[MaxLength(126)]
[UsedImplicitly]
public string Name { get; set; }
[Required]
[MaxLength(2083)]
[MinLength(6)]
[UsedImplicitly]
public string Url { get; set; }
}
}

View file

@ -7,7 +7,6 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="JetBrains.Annotations" Version="11.0.0" />
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="2.0.0" />
</ItemGroup>