1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-13 21:57:30 -05: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 @@
using Bit.Core.SecretsManager.Commands.Porting; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Bit.Core.SecretsManager.Commands.Porting;
using Bit.Core.SecretsManager.Commands.Porting.Interfaces; using Bit.Core.SecretsManager.Commands.Porting.Interfaces;
using Bit.Core.SecretsManager.Entities; using Bit.Core.SecretsManager.Entities;
using Bit.Core.SecretsManager.Repositories; using Bit.Core.SecretsManager.Repositories;

View File

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

View File

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

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.Core.Context; using Bit.Core.Context;
using Bit.Core.Enums; using Bit.Core.Enums;
using Bit.Core.SecretsManager.Queries.Interfaces; using Bit.Core.SecretsManager.Queries.Interfaces;

View File

@ -295,7 +295,7 @@ public class ProjectServiceAccountsAccessPoliciesAuthorizationHandlerTests
{ {
sutProvider.GetDependency<ICurrentContext>().AccessSecretsManager(resource.OrganizationId) sutProvider.GetDependency<ICurrentContext>().AccessSecretsManager(resource.OrganizationId)
.Returns(true); .Returns(true);
sutProvider.GetDependency<IAccessClientQuery>().GetAccessClientAsync(default, resource.OrganizationId) sutProvider.GetDependency<IAccessClientQuery>().GetAccessClientAsync(default!, resource.OrganizationId)
.ReturnsForAnyArgs((accessClientType, userId)); .ReturnsForAnyArgs((accessClientType, userId));
} }

View File

@ -247,7 +247,7 @@ public class ServiceAccountGrantedPoliciesAuthorizationHandlerTests
{ {
sutProvider.GetDependency<ICurrentContext>().AccessSecretsManager(resource.OrganizationId) sutProvider.GetDependency<ICurrentContext>().AccessSecretsManager(resource.OrganizationId)
.Returns(true); .Returns(true);
sutProvider.GetDependency<IAccessClientQuery>().GetAccessClientAsync(default, resource.OrganizationId) sutProvider.GetDependency<IAccessClientQuery>().GetAccessClientAsync(default!, resource.OrganizationId)
.ReturnsForAnyArgs((accessClientType, userId)); .ReturnsForAnyArgs((accessClientType, userId));
} }

View File

@ -207,7 +207,7 @@ public class BulkSecretAuthorizationHandlerTests
{ {
sutProvider.GetDependency<ICurrentContext>().AccessSecretsManager(organizationId) sutProvider.GetDependency<ICurrentContext>().AccessSecretsManager(organizationId)
.Returns(true); .Returns(true);
sutProvider.GetDependency<IAccessClientQuery>().GetAccessClientAsync(default, organizationId) sutProvider.GetDependency<IAccessClientQuery>().GetAccessClientAsync(default!, organizationId)
.ReturnsForAnyArgs((accessClientType, userId)); .ReturnsForAnyArgs((accessClientType, userId));
} }

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 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 System.Text.Json;
using Bit.Admin.Models; using Bit.Admin.Models;
using Bit.Core.Settings; 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;
using Azure.Storage.Queues.Models; using Azure.Storage.Queues.Models;
using Bit.Core.Models.Mail; 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; using Microsoft.AspNetCore.Identity;
namespace Bit.Admin.IdentityServer; 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; 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.Jobs;
using Bit.Core.Vault.Repositories; using Bit.Core.Vault.Repositories;
using Microsoft.Extensions.Options; 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; 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; 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.Entities;
using Bit.Core.Enums; 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> 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 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; 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> 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; using Bit.Core.Models.BitStripe;
namespace Bit.Admin.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;
using Bit.Core.Billing.Models; using Bit.Core.Billing.Models;
using Bit.Core.Entities; using Bit.Core.Entities;
using Bit.Core.Settings; 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.Enums;
using Bit.Core.Vault.Entities; 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> 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.Enums;
using Bit.Admin.Utilities; using Bit.Admin.Utilities;
using Bit.Core.Settings; 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.Rendering;
using Microsoft.AspNetCore.Mvc.ViewFeatures; using Microsoft.AspNetCore.Mvc.ViewFeatures;
using Microsoft.AspNetCore.Razor.TagHelpers; using Microsoft.AspNetCore.Razor.TagHelpers;

View File

@ -1,4 +1,7 @@
using Bit.Api.Models.Request; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Bit.Api.Models.Request;
using Bit.Api.Models.Response; using Bit.Api.Models.Response;
using Bit.Api.Vault.AuthorizationHandlers.Collections; using Bit.Api.Vault.AuthorizationHandlers.Collections;
using Bit.Core.Context; using Bit.Core.Context;

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.Api.Auth.Models.Request; using Bit.Api.Auth.Models.Request;
using Bit.Api.Models.Request; using Bit.Api.Models.Request;
using Bit.Api.Models.Response; using Bit.Api.Models.Response;

View File

@ -1,4 +1,7 @@
using Bit.Core.AdminConsole.OrganizationFeatures.OrganizationConnections.Interfaces; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Bit.Core.AdminConsole.OrganizationFeatures.OrganizationConnections.Interfaces;
using Bit.Core.Context; using Bit.Core.Context;
using Bit.Core.Exceptions; using Bit.Core.Exceptions;
using Bit.Core.Models.Api.OrganizationLicenses; using Bit.Core.Models.Api.OrganizationLicenses;

View File

@ -1,4 +1,7 @@
using Bit.Api.AdminConsole.Authorization.Requirements; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Bit.Api.AdminConsole.Authorization.Requirements;
using Bit.Api.Models.Request.Organizations; using Bit.Api.Models.Request.Organizations;
using Bit.Api.Models.Response; using Bit.Api.Models.Response;
using Bit.Core.Context; using Bit.Core.Context;

View File

@ -1,4 +1,7 @@
using System.Net; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.Net;
using System.Security.Cryptography; using System.Security.Cryptography;
using Bit.Core.Context; using Bit.Core.Context;
using Bit.Core.Exceptions; using Bit.Core.Exceptions;

View File

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

View File

@ -1,4 +1,7 @@
using Bit.Core.Enums; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Bit.Core.Enums;
using Bit.Core.Jobs; using Bit.Core.Jobs;
using Bit.Core.Models.OrganizationConnectionConfigs; using Bit.Core.Models.OrganizationConnectionConfigs;
using Bit.Core.OrganizationFeatures.OrganizationSponsorships.FamiliesForEnterprise.Interfaces; using Bit.Core.OrganizationFeatures.OrganizationSponsorships.FamiliesForEnterprise.Interfaces;

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.Api.Models.Public; namespace Bit.Api.Models.Public;

View File

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

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.Api.AdminConsole.Public.Models.Response; using Bit.Api.AdminConsole.Public.Models.Response;
using Bit.Core.Entities; using Bit.Core.Entities;
using Bit.Core.Enums; using Bit.Core.Enums;

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 Microsoft.AspNetCore.Mvc.ModelBinding; using Microsoft.AspNetCore.Mvc.ModelBinding;
namespace Bit.Api.Models.Public.Response; namespace Bit.Api.Models.Public.Response;

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.Settings; using Bit.Core.Settings;
using Enums = Bit.Core.Enums; using Enums = Bit.Core.Enums;

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.Api.Models.Request.Accounts; namespace Bit.Api.Models.Request.Accounts;

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.Entities;
namespace Bit.Api.Models.Request.Accounts; namespace Bit.Api.Models.Request.Accounts;

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.Settings; using Bit.Core.Settings;
namespace Bit.Api.Models.Request; namespace Bit.Api.Models.Request;

View File

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

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.Entities;
using Bit.Core.Utilities; using Bit.Core.Utilities;

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.Entities;
using Bit.Core.Enums; using Bit.Core.Enums;
using Bit.Core.NotificationHub; using Bit.Core.NotificationHub;

View File

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

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.Api.Models.Request; namespace Bit.Api.Models.Request;

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.Api.AdminConsole.Models.Request.Organizations; using Bit.Api.AdminConsole.Models.Request.Organizations;
using Bit.Core.Utilities; using Bit.Core.Utilities;

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.Enums; using Bit.Core.Enums;
using Bit.Core.Utilities; using Bit.Core.Utilities;

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.Api.Models.Request.Organizations; namespace Bit.Api.Models.Request.Organizations;

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.Enums; using Bit.Core.Enums;
namespace Bit.Api.Models.Request; namespace Bit.Api.Models.Request;

View File

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

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 Bit.Core.Entities; using Bit.Core.Entities;
using Bit.Core.Enums; using Bit.Core.Enums;

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.Enums;
using Bit.Core.Models.Api; using Bit.Core.Models.Api;
using Bit.Core.Models.Data; using Bit.Core.Models.Data;

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.Enums; using Bit.Core.Enums;
using Bit.Core.Models.Api; using Bit.Core.Models.Api;
using Bit.Core.Services; using Bit.Core.Services;

View File

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

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 Bit.Core.Entities; using Bit.Core.Entities;
using Bit.Core.Enums; using Bit.Core.Enums;
using Bit.Core.Models.Api; using Bit.Core.Models.Api;

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.Models.Api; using Bit.Core.Models.Api;
namespace Bit.Api.Models.Response; namespace Bit.Api.Models.Response;

View File

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

View File

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

View File

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

View File

@ -1,4 +1,7 @@
using Bit.Api.AdminConsole.Models.Response; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Bit.Api.AdminConsole.Models.Response;
using Bit.Api.AdminConsole.Models.Response.Providers; using Bit.Api.AdminConsole.Models.Response.Providers;
using Bit.Core.AdminConsole.Models.Data.Provider; using Bit.Core.AdminConsole.Models.Data.Provider;
using Bit.Core.Entities; using Bit.Core.Entities;

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.Models.Api; using Bit.Core.Models.Api;
using Bit.Core.Models.Business; using Bit.Core.Models.Business;
using Bit.Core.Utilities; using Bit.Core.Utilities;

View File

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

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.Platform.Installations; using Bit.Core.Platform.Installations;
using Bit.Core.Utilities; using Bit.Core.Utilities;

View File

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

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 System.Text.Json;
using Bit.Core.Context; using Bit.Core.Context;
using Bit.Core.Exceptions; using Bit.Core.Exceptions;

View File

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

View File

@ -1,4 +1,7 @@
using System.Net; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.Net;
using Bit.Api.Models.Public.Request; using Bit.Api.Models.Public.Request;
using Bit.Api.Models.Public.Response; using Bit.Api.Models.Public.Response;
using Bit.Core.Context; using Bit.Core.Context;

View File

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

View File

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

View File

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

View File

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

View File

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

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.SecretsManager.Entities; using Bit.Core.SecretsManager.Entities;
using Bit.Core.Utilities; using Bit.Core.Utilities;

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.Api.SecretsManager.Models.Request; namespace Bit.Api.SecretsManager.Models.Request;
public class GetSecretsRequestModel : IValidatableObject public class GetSecretsRequestModel : IValidatableObject

View File

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

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.SecretsManager.Entities; using Bit.Core.SecretsManager.Entities;
using Bit.Core.Utilities; using Bit.Core.Utilities;

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.SecretsManager.Entities; using Bit.Core.SecretsManager.Entities;
using Bit.Core.Utilities; using Bit.Core.Utilities;

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.Api.SecretsManager.Models.Request; namespace Bit.Api.SecretsManager.Models.Request;

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;
public class RevokeAccessTokensRequest public class RevokeAccessTokensRequest
{ {

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.SecretsManager.Commands.Porting; using Bit.Core.SecretsManager.Commands.Porting;
using Bit.Core.Utilities; using Bit.Core.Utilities;

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.SecretsManager.Entities; using Bit.Core.SecretsManager.Entities;
using Bit.Core.Utilities; using Bit.Core.Utilities;

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.SecretsManager.Entities; using Bit.Core.SecretsManager.Entities;
using Bit.Core.Utilities; using Bit.Core.Utilities;

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.SecretsManager.Entities; using Bit.Core.SecretsManager.Entities;
using Bit.Core.Utilities; using Bit.Core.Utilities;

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.SecretsManager.Entities; using Bit.Core.SecretsManager.Entities;
using Bit.Core.Utilities; using Bit.Core.Utilities;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

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.Messaging.EventGrid; using Azure.Messaging.EventGrid;
using Azure.Messaging.EventGrid.SystemEvents; using Azure.Messaging.EventGrid.SystemEvents;
using Bit.Core.Exceptions; using Bit.Core.Exceptions;

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.Api.Utilities; namespace Bit.Api.Utilities;

View File

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

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 Bit.Api.Tools.Models.Request; using Bit.Api.Tools.Models.Request;
using Microsoft.AspNetCore.Http.Features; using Microsoft.AspNetCore.Http.Features;
using Microsoft.AspNetCore.WebUtilities; using Microsoft.AspNetCore.WebUtilities;

View File

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

View File

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

Some files were not shown because too many files have changed in this diff Show More