Skip to content

Latest commit

 

History

History
43 lines (26 loc) · 569 Bytes

file_header.md

File metadata and controls

43 lines (26 loc) · 569 Bytes

Pattern: Malformed file header

Issue: -

Description

Header comments should be consistent with project patterns.

Examples of correct code:

let foo = "Copyright"


let foo = 2 // Copyright


let foo = 2
 // Copyright

Examples of incorrect code:

// ↓Copyright


//
// ↓Copyright


//
//  FileHeaderRule.swift
//  SwiftLint
//
//  Created by Marcelo Fabri on 27/11/16.
//  ↓Copyright © 2016 Realm. All rights reserved.
//

Further Reading