cleanup R# solution-wide warnings

This commit is contained in:
Collin M. Barrett 2018-10-17 14:39:15 -05:00
parent 3070f504ac
commit 47c9648206
9 changed files with 19 additions and 7 deletions

View file

@ -5,7 +5,8 @@
namespace FilterLists.Api.DependencyInjection.Extensions
{
public static class IWebHostExtension
// ReSharper disable once InconsistentNaming
public static class IWebHostExtensions
{
public static IWebHost MigrateAndSeedDbContext<TContext>(this IWebHost webHost,
Action<TContext, IServiceProvider> seeder) where TContext : DbContext

View file

@ -11,6 +11,7 @@ namespace FilterLists.Api.Migrations
{
[DbContext(typeof(FilterListsDbContext))]
[Migration("20180324001253_addChatUrl")]
// ReSharper disable once InconsistentNaming
partial class addChatUrl
{
protected override void BuildTargetModel(ModelBuilder modelBuilder)

View file

@ -4,6 +4,7 @@
namespace FilterLists.Api.Migrations
{
[UsedImplicitly]
// ReSharper disable once InconsistentNaming
public partial class addChatUrl : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)

View file

@ -11,6 +11,7 @@ namespace FilterLists.Api.Migrations
{
[DbContext(typeof(FilterListsDbContext))]
[Migration("20180815174531_fixTimestampNullsAndDefaults")]
// ReSharper disable once InconsistentNaming
partial class fixTimestampNullsAndDefaults
{
protected override void BuildTargetModel(ModelBuilder modelBuilder)

View file

@ -1,9 +1,12 @@
using System;
using JetBrains.Annotations;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
namespace FilterLists.Api.Migrations
{
[UsedImplicitly]
// ReSharper disable once InconsistentNaming
public partial class fixTimestampNullsAndDefaults : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)

View file

@ -13,8 +13,8 @@ protected override void Up(MigrationBuilder migrationBuilder)
{
CreatedDateUtc = table.Column<DateTime>("TIMESTAMP", nullable: false,
defaultValueSql: "current_timestamp()"),
DependentFilterListId = table.Column<ushort>(nullable: false),
DependencyFilterListId = table.Column<ushort>(nullable: false)
DependentFilterListId = table.Column<ushort>(),
DependencyFilterListId = table.Column<ushort>()
},
constraints: table =>
{

View file

@ -3,6 +3,7 @@
.loader,
.loader:before,
.loader:after {
-ms-animation: load1 1s infinite ease-in-out;
-webkit-animation: load1 1s infinite ease-in-out;
animation: load1 1s infinite ease-in-out;
background: #000000;

View file

@ -12,6 +12,7 @@ module.exports = (env) => {
entry: { 'main': "./ClientApp/Boot.tsx" },
resolve: { extensions: [".js", ".jsx", ".ts", ".tsx"] },
output: {
// ReSharper disable once UseOfImplicitGlobalInFunctionScope
path: path.join(__dirname, bundleOutputDir),
filename: "[name].js",
publicPath: "dist/"
@ -31,6 +32,7 @@ module.exports = (env) => {
plugins: [
new CheckerPlugin(),
new webpack.DllReferencePlugin({
// ReSharper disable once UseOfImplicitGlobalInFunctionScope
context: __dirname,
manifest: require("./wwwroot/dist/vendor-manifest.json")
})

View file

@ -27,6 +27,7 @@ module.exports = (env) => {
]
},
output: {
// ReSharper disable once UseOfImplicitGlobalInFunctionScope
path: path.join(__dirname, "wwwroot", "dist"),
publicPath: "dist/",
filename: "[name].js",
@ -39,6 +40,7 @@ module.exports = (env) => {
jQuery: "jquery"
}), // Maps these identifiers to the jQuery package (because Bootstrap expects it to be a global variable)
new webpack.DllPlugin({
// ReSharper disable once UseOfImplicitGlobalInFunctionScope
path: path.join(__dirname, "wwwroot", "dist", "[name]-manifest.json"),
name: "[name]_[hash]"
}),
@ -46,10 +48,10 @@ module.exports = (env) => {
'process.env.NODE_ENV': isDevBuild ? '"development"' : '"production"'
})
].concat(isDevBuild
? []
: [
new webpack.optimize.UglifyJsPlugin()
])
? []
: [
new webpack.optimize.UglifyJsPlugin()
])
}
];
};