Skip to content

Commit

Permalink
exclude 'id' from identifier_name
Browse files Browse the repository at this point in the history
  • Loading branch information
jpsim committed May 15, 2017
1 parent 8989889 commit 27d44ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ file_header:
\/\/ Created by .*? on \d{1,2}\/\d{1,2}\/\d{2}\.
\/\/ Copyright © \d{4} Realm\. All rights reserved\.
\/\/
identifier_name:
excluded:
- id
line_length: 120
number_separator:
minimum_length: 5
3 changes: 1 addition & 2 deletions Source/swiftlint/Helpers/Benchmark.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Foundation
import SourceKittenFramework

struct BenchmarkEntry {
let id: String // swiftlint:disable:this identifier_name
let id: String
let time: Double
}

Expand All @@ -22,7 +22,6 @@ struct Benchmark {
self.name = name
}

// swiftlint:disable:next identifier_name
mutating func record(id: String, time: Double) {
entries.append(BenchmarkEntry(id: id, time: time))
}
Expand Down

0 comments on commit 27d44ec

Please sign in to comment.