Skip to content

Update SwiftLint file header rule #1281

@defagos

Description

@defagos

Description

As a Pillarbox developer I want the file_header rule pattern to exactly match the expected header format. Refactoring made in SwiftLint 0.60 broke our existing rule.

Acceptance criteria

The rule in our .swiftlint.yml file has been restored to:

file_header:
  required_pattern: |
    \/\/
    \/\/  Copyright \(c\) SRG SSR. All rights reserved.
    \/\/
    \/\/  License information is available from the LICENSE file.
    \/\/

and validates:

//
//  Copyright (c) SRG SSR. All rights reserved.
//
//  License information is available from the LICENSE file.
//

With SwiftLint 0.60.0 the last line of the pattern has to be dropped, otherwise validation fails.

Tasks

  • Open a SwiftLint issue or PR.
  • Update Pillarbox SwiftLint configuration file.
  • Update Castor SwiftLint configuration file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    📋 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions