mirror of
https://github.com/bitwarden/ios.git
synced 2025-12-11 13:54:06 -06:00
[PM-24348] Update type_name lint rule max length from 40 to 50 (#1826)
This commit is contained in:
parent
63291d4b3a
commit
40201dd9fc
@ -79,6 +79,9 @@ type_contents_order:
|
|||||||
- other_method
|
- other_method
|
||||||
- subscript
|
- subscript
|
||||||
|
|
||||||
|
type_name:
|
||||||
|
max_length: 50
|
||||||
|
|
||||||
identifier_name:
|
identifier_name:
|
||||||
excluded:
|
excluded:
|
||||||
- id
|
- id
|
||||||
|
|||||||
@ -4,7 +4,7 @@ import XCTest
|
|||||||
|
|
||||||
@testable import BitwardenShared
|
@testable import BitwardenShared
|
||||||
|
|
||||||
class MasterPasswordPolicyOptionsExtensionsTests: BitwardenTestCase { // swiftlint:disable:this type_name
|
class MasterPasswordPolicyOptionsExtensionsTests: BitwardenTestCase {
|
||||||
// MARK: Tests
|
// MARK: Tests
|
||||||
|
|
||||||
/// `isInEffect` returns `false` if none of the policy options apply.
|
/// `isInEffect` returns `false` if none of the policy options apply.
|
||||||
|
|||||||
@ -4,7 +4,7 @@ import Networking
|
|||||||
|
|
||||||
/// The response returned from the API when requesting the auto-enroll status for an organization.
|
/// The response returned from the API when requesting the auto-enroll status for an organization.
|
||||||
///
|
///
|
||||||
struct OrganizationAutoEnrollStatusResponseModel: JSONResponse, Equatable { // swiftlint:disable:this type_name
|
struct OrganizationAutoEnrollStatusResponseModel: JSONResponse, Equatable {
|
||||||
// MARK: Properties
|
// MARK: Properties
|
||||||
|
|
||||||
/// The organization's ID.
|
/// The organization's ID.
|
||||||
|
|||||||
@ -4,7 +4,7 @@ import Networking
|
|||||||
|
|
||||||
/// A networking request to enroll the user in password reset for an organization.
|
/// A networking request to enroll the user in password reset for an organization.
|
||||||
///
|
///
|
||||||
struct OrganizationUserResetPasswordEnrollmentRequest: Request { // swiftlint:disable:this type_name
|
struct OrganizationUserResetPasswordEnrollmentRequest: Request {
|
||||||
typealias Response = EmptyResponse
|
typealias Response = EmptyResponse
|
||||||
|
|
||||||
// MARK: Properties
|
// MARK: Properties
|
||||||
|
|||||||
@ -5,7 +5,7 @@ import XCTest
|
|||||||
|
|
||||||
@testable import BitwardenShared
|
@testable import BitwardenShared
|
||||||
|
|
||||||
class ASPasskeyCredentialRequestExtensionsTests: BitwardenTestCase { // swiftlint:disable:this type_name
|
class ASPasskeyCredentialRequestExtensionsTests: BitwardenTestCase {
|
||||||
// MARK: Tests
|
// MARK: Tests
|
||||||
|
|
||||||
/// `excludedCredentialsList()` gets the excluded credential list using the
|
/// `excludedCredentialsList()` gets the excluded credential list using the
|
||||||
|
|||||||
@ -4,7 +4,7 @@ import XCTest
|
|||||||
import BitwardenResources
|
import BitwardenResources
|
||||||
@testable import BitwardenShared
|
@testable import BitwardenShared
|
||||||
|
|
||||||
class Fido2CredentialAutofillViewExtensionsTests: BitwardenTestCase { // swiftlint:disable:this type_name
|
class Fido2CredentialAutofillViewExtensionsTests: BitwardenTestCase {
|
||||||
// MARK: Tests
|
// MARK: Tests
|
||||||
|
|
||||||
/// `toFido2CredentialIdentity()` returns the converted `ASPasskeyCredentialIdentity`.
|
/// `toFido2CredentialIdentity()` returns the converted `ASPasskeyCredentialIdentity`.
|
||||||
|
|||||||
@ -6,7 +6,6 @@ import XCTest
|
|||||||
|
|
||||||
// MARK: - ASAuthorizationPublicKeyCredentialDescriptorExtensionTests
|
// MARK: - ASAuthorizationPublicKeyCredentialDescriptorExtensionTests
|
||||||
|
|
||||||
// swiftlint:disable:next type_name
|
|
||||||
class PublicKeyCredentialDescriptorExtensionsTests: BitwardenTestCase {
|
class PublicKeyCredentialDescriptorExtensionsTests: BitwardenTestCase {
|
||||||
// MARK: Tests
|
// MARK: Tests
|
||||||
|
|
||||||
@ -26,8 +25,6 @@ class PublicKeyCredentialDescriptorExtensionsTests: BitwardenTestCase {
|
|||||||
|
|
||||||
/// A mock of `ASAuthorizationPublicKeyCredentialDescriptor`.
|
/// A mock of `ASAuthorizationPublicKeyCredentialDescriptor`.
|
||||||
class MockASAuthorizationPublicKeyCredentialDescriptor: NSObject, ASAuthorizationPublicKeyCredentialDescriptor {
|
class MockASAuthorizationPublicKeyCredentialDescriptor: NSObject, ASAuthorizationPublicKeyCredentialDescriptor {
|
||||||
// swiftlint:disable:previous type_name
|
|
||||||
|
|
||||||
// MARK: Properties
|
// MARK: Properties
|
||||||
|
|
||||||
static var supportsSecureCoding = false
|
static var supportsSecureCoding = false
|
||||||
|
|||||||
@ -3,7 +3,7 @@ import XCTest
|
|||||||
|
|
||||||
@testable import BitwardenShared
|
@testable import BitwardenShared
|
||||||
|
|
||||||
class PublicKeyCredentialParametersExtensionsTests: BitwardenTestCase { // swiftlint:disable:this type_name
|
class PublicKeyCredentialParametersExtensionsTests: BitwardenTestCase {
|
||||||
let publicKeyType = "public-key"
|
let publicKeyType = "public-key"
|
||||||
|
|
||||||
// MARK: Tests
|
// MARK: Tests
|
||||||
|
|||||||
@ -8,7 +8,7 @@ import XCTest
|
|||||||
|
|
||||||
// MARK: - BitwardenSdk.CipherType
|
// MARK: - BitwardenSdk.CipherType
|
||||||
|
|
||||||
class BitwardenSdkVaultBitwardenCipherTypeTests: BitwardenTestCase { // swiftlint:disable:this type_name
|
class BitwardenSdkVaultBitwardenCipherTypeTests: BitwardenTestCase {
|
||||||
// MARK: Tests
|
// MARK: Tests
|
||||||
|
|
||||||
/// `init(type:)` initializes the SDK cipher type based on the cipher type.
|
/// `init(type:)` initializes the SDK cipher type based on the cipher type.
|
||||||
@ -44,7 +44,7 @@ class BitwardenSdkVaultCipherTests: BitwardenTestCase {
|
|||||||
|
|
||||||
// MARK: - CipherDetailsResponseModel
|
// MARK: - CipherDetailsResponseModel
|
||||||
|
|
||||||
class BitwardenSdkVaultCipherDetailsResponseModelTests: BitwardenTestCase { // swiftlint:disable:this type_name
|
class BitwardenSdkVaultCipherDetailsResponseModelTests: BitwardenTestCase {
|
||||||
// MARK: Tests
|
// MARK: Tests
|
||||||
|
|
||||||
/// `init(cipher:)` Inits a cipher details response model from an SDK cipher without id throws.
|
/// `init(cipher:)` Inits a cipher details response model from an SDK cipher without id throws.
|
||||||
@ -266,7 +266,7 @@ class CipherViewTests: BitwardenTestCase {
|
|||||||
|
|
||||||
// MARK: - Collection
|
// MARK: - Collection
|
||||||
|
|
||||||
class BitwardenSdkVaultBitwardenCollectionTests: BitwardenTestCase { // swiftlint:disable:this type_name
|
class BitwardenSdkVaultBitwardenCollectionTests: BitwardenTestCase {
|
||||||
/// `init(collectionDetailsResponseModel:)` sets `manage` with the value in the model
|
/// `init(collectionDetailsResponseModel:)` sets `manage` with the value in the model
|
||||||
/// if the server sent a value
|
/// if the server sent a value
|
||||||
func test_init_manageNotNull() {
|
func test_init_manageNotNull() {
|
||||||
|
|||||||
@ -13,8 +13,6 @@ protocol VaultListPreparedDataBuilderFactory { // sourcery: AutoMockable
|
|||||||
|
|
||||||
/// The default implementation of `VaultListPreparedDataBuilderFactory`.
|
/// The default implementation of `VaultListPreparedDataBuilderFactory`.
|
||||||
struct DefaultVaultListPreparedDataBuilderFactory: VaultListPreparedDataBuilderFactory {
|
struct DefaultVaultListPreparedDataBuilderFactory: VaultListPreparedDataBuilderFactory {
|
||||||
// swiftlint:disable:previous type_name
|
|
||||||
|
|
||||||
/// The service used by the application to handle encryption and decryption tasks.
|
/// The service used by the application to handle encryption and decryption tasks.
|
||||||
let clientService: ClientService
|
let clientService: ClientService
|
||||||
/// The service used by the application to report non-fatal errors.
|
/// The service used by the application to report non-fatal errors.
|
||||||
|
|||||||
@ -333,7 +333,7 @@ class Fido2CredentialStoreServiceTests: BitwardenTestCase { // swiftlint:disable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class DebuggingFido2CredentialStoreServiceTests: BitwardenTestCase { // swiftlint:disable:this type_name
|
class DebuggingFido2CredentialStoreServiceTests: BitwardenTestCase {
|
||||||
// MARK: Properties
|
// MARK: Properties
|
||||||
|
|
||||||
var fido2CredentialStore: MockFido2CredentialStore!
|
var fido2CredentialStore: MockFido2CredentialStore!
|
||||||
|
|||||||
@ -421,7 +421,7 @@ class Fido2UserVerificationMediatorTests: BitwardenTestCase { // swiftlint:disab
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class MockFido2UserVerificationMediatorDelegate: // swiftlint:disable:this type_name
|
class MockFido2UserVerificationMediatorDelegate:
|
||||||
MockUserVerificationHelperDelegate,
|
MockUserVerificationHelperDelegate,
|
||||||
Fido2UserVerificationMediatorDelegate {
|
Fido2UserVerificationMediatorDelegate {
|
||||||
var onNeedsUserInteractionCalled = false
|
var onNeedsUserInteractionCalled = false
|
||||||
|
|||||||
@ -153,7 +153,6 @@ class PendingAppIntentActionMediatorTests: BitwardenTestCase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class MockPendingAppIntentActionMediatorDelegate: PendingAppIntentActionMediatorDelegate {
|
class MockPendingAppIntentActionMediatorDelegate: PendingAppIntentActionMediatorDelegate {
|
||||||
// swiftlint:disable:previous type_name
|
|
||||||
var onPendingAppIntentActionSuccessAction: PendingAppIntentAction?
|
var onPendingAppIntentActionSuccessAction: PendingAppIntentAction?
|
||||||
var onPendingAppIntentActionSuccessData: Any?
|
var onPendingAppIntentActionSuccessData: Any?
|
||||||
|
|
||||||
|
|||||||
@ -9,7 +9,7 @@ import XCTest
|
|||||||
@testable import BitwardenShared
|
@testable import BitwardenShared
|
||||||
|
|
||||||
@available(iOS 18.0, *)
|
@available(iOS 18.0, *)
|
||||||
class VaultAutofillListProcessorAutofillModeAllTests: BitwardenTestCase { // swiftlint:disable:this type_name line_length
|
class VaultAutofillListProcessorAutofillModeAllTests: BitwardenTestCase {
|
||||||
// MARK: Properties
|
// MARK: Properties
|
||||||
|
|
||||||
var appExtensionDelegate: MockAutofillAppExtensionDelegate!
|
var appExtensionDelegate: MockAutofillAppExtensionDelegate!
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user