1
0
mirror of https://github.com/bitwarden/server synced 2026-01-06 02:23:51 +00:00

Add #nullable disable to platform code (#6057)

This commit is contained in:
Justin Baur
2025-07-08 10:25:59 -04:00
committed by GitHub
parent 7fb7d6fa56
commit fa0c9cb387
291 changed files with 1158 additions and 296 deletions

View File

@@ -1,4 +1,7 @@
namespace Bit.Admin;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
namespace Bit.Admin;
public class AdminSettings
{

View File

@@ -1,4 +1,7 @@
using System.Diagnostics;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.Diagnostics;
using System.Text.Json;
using Bit.Admin.Models;
using Bit.Core.Settings;

View File

@@ -1,4 +1,7 @@
using System.Text.Json;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.Text.Json;
using Azure.Storage.Queues;
using Azure.Storage.Queues.Models;
using Bit.Core.Models.Mail;

View File

@@ -1,4 +1,7 @@
using Bit.Core.Utilities;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Bit.Core.Utilities;
using Microsoft.AspNetCore.Identity;
namespace Bit.Admin.IdentityServer;

View File

@@ -1,4 +1,7 @@
using Microsoft.AspNetCore.Identity;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Microsoft.AspNetCore.Identity;
namespace Bit.Admin.IdentityServer;

View File

@@ -1,4 +1,7 @@
using Bit.Core;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Bit.Core;
using Bit.Core.Jobs;
using Bit.Core.Vault.Repositories;
using Microsoft.Extensions.Options;

View File

@@ -1,4 +1,7 @@
using Bit.Core.Billing.Models;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Bit.Core.Billing.Models;
namespace Bit.Admin.Models;

View File

@@ -1,4 +1,7 @@
using System.ComponentModel.DataAnnotations;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.ComponentModel.DataAnnotations;
namespace Bit.Admin.Models;

View File

@@ -1,4 +1,7 @@
using System.ComponentModel.DataAnnotations;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.ComponentModel.DataAnnotations;
using Bit.Core.Entities;
using Bit.Core.Enums;

View File

@@ -1,4 +1,7 @@
namespace Bit.Admin.Models;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
namespace Bit.Admin.Models;
public class CursorPagedModel<T>
{

View File

@@ -1,4 +1,7 @@
namespace Bit.Admin.Models;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
namespace Bit.Admin.Models;
public class ErrorViewModel
{

View File

@@ -1,4 +1,7 @@
using Bit.Core.Settings;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Bit.Core.Settings;
namespace Bit.Admin.Models;

View File

@@ -1,4 +1,7 @@
namespace Bit.Admin.Models;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
namespace Bit.Admin.Models;
public abstract class PagedModel<T>
{

View File

@@ -1,4 +1,7 @@
using System.ComponentModel.DataAnnotations;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.ComponentModel.DataAnnotations;
using Bit.Core.Models.BitStripe;
namespace Bit.Admin.Models;

View File

@@ -1,4 +1,7 @@
using System.ComponentModel.DataAnnotations;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.ComponentModel.DataAnnotations;
using Bit.Core.Billing.Models;
using Bit.Core.Entities;
using Bit.Core.Settings;

View File

@@ -1,4 +1,7 @@
using Bit.Core.Entities;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Bit.Core.Entities;
using Bit.Core.Enums;
using Bit.Core.Vault.Entities;

View File

@@ -1,4 +1,7 @@
namespace Bit.Admin.Models;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
namespace Bit.Admin.Models;
public class UsersModel : PagedModel<UserViewModel>
{

View File

@@ -1,4 +1,7 @@
using System.Security.Claims;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.Security.Claims;
using Bit.Admin.Enums;
using Bit.Admin.Utilities;
using Bit.Core.Settings;

View File

@@ -1,4 +1,7 @@
using Microsoft.AspNetCore.Mvc.Controllers;
// FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Microsoft.AspNetCore.Mvc.Controllers;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.AspNetCore.Mvc.ViewFeatures;
using Microsoft.AspNetCore.Razor.TagHelpers;