Skip to content
This repository has been archived by the owner on Sep 6, 2018. It is now read-only.

Commit

Permalink
Merge pull request #83 from SwiftGen/feature/superfluous_disable
Browse files Browse the repository at this point in the history
Add `superfluous_disable_command` SwiftLint exception
  • Loading branch information
AliSoftware authored Oct 10, 2017
2 parents b5d27a1 + 152d89b commit ed77a61
Show file tree
Hide file tree
Showing 102 changed files with 106 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
* Documentation: Fix link to generated XCAssets example.
[Alvar Hansen](https://github.com/allu22)
[#80](https://github.com/SwiftGen/templates/pull/80)
* SwiftLint rules: Disabled the `superfluous_disable_command` rule
for all `swiftlint:disable` exceptions in all templates.
[Olivier Halligon](https://github.com/AliSoftware)
[SwiftGen/SwiftGen#334](https://github.com/SwiftGen/SwiftGen/issues/334)
[#83](https://github.com/SwiftGen/templates/pull/83)

### Breaking Changes

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import UIKit
#endif

// swiftlint:disable superfluous_disable_command
// swiftlint:disable file_length

// swiftlint:disable identifier_name line_length type_body_length
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
enum ColorName { }
#endif

// swiftlint:disable superfluous_disable_command
// swiftlint:disable file_length

// swiftlint:disable identifier_name line_length type_body_length
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
enum ColorName { }
#endif

// swiftlint:disable superfluous_disable_command
// swiftlint:disable file_length

// swiftlint:disable identifier_name line_length type_body_length
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import UIKit
#endif

// swiftlint:disable superfluous_disable_command
// swiftlint:disable file_length

// swiftlint:disable identifier_name line_length type_body_length
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
enum ColorName { }
#endif

// swiftlint:disable superfluous_disable_command
// swiftlint:disable file_length

// swiftlint:disable identifier_name line_length type_body_length
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
enum ColorName { }
#endif

// swiftlint:disable superfluous_disable_command
// swiftlint:disable file_length

// swiftlint:disable identifier_name line_length type_body_length
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
typealias XCTColor = UIColor
#endif

// swiftlint:disable superfluous_disable_command
// swiftlint:disable file_length

// swiftlint:disable operator_usage_whitespace
Expand Down
1 change: 1 addition & 0 deletions Tests/Expected/Colors/swift2-context-defaults.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
typealias Color = UIColor
#endif

// swiftlint:disable superfluous_disable_command
// swiftlint:disable file_length

// swiftlint:disable operator_usage_whitespace
Expand Down
1 change: 1 addition & 0 deletions Tests/Expected/Colors/swift2-context-multiple.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
typealias Color = UIColor
#endif

// swiftlint:disable superfluous_disable_command
// swiftlint:disable file_length

// swiftlint:disable operator_usage_whitespace
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
typealias XCTColor = UIColor
#endif

// swiftlint:disable superfluous_disable_command
// swiftlint:disable file_length

// swiftlint:disable operator_usage_whitespace
Expand Down
1 change: 1 addition & 0 deletions Tests/Expected/Colors/swift3-context-defaults.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
typealias Color = UIColor
#endif

// swiftlint:disable superfluous_disable_command
// swiftlint:disable file_length

// swiftlint:disable operator_usage_whitespace
Expand Down
1 change: 1 addition & 0 deletions Tests/Expected/Colors/swift3-context-multiple.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
typealias Color = UIColor
#endif

// swiftlint:disable superfluous_disable_command
// swiftlint:disable file_length

// swiftlint:disable operator_usage_whitespace
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
typealias XCTColor = UIColor
#endif

// swiftlint:disable superfluous_disable_command
// swiftlint:disable file_length

// swiftlint:disable operator_usage_whitespace
Expand Down
1 change: 1 addition & 0 deletions Tests/Expected/Colors/swift4-context-defaults.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
typealias Color = UIColor
#endif

// swiftlint:disable superfluous_disable_command
// swiftlint:disable file_length

// swiftlint:disable operator_usage_whitespace
Expand Down
1 change: 1 addition & 0 deletions Tests/Expected/Colors/swift4-context-multiple.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
typealias Color = UIColor
#endif

// swiftlint:disable superfluous_disable_command
// swiftlint:disable file_length

// swiftlint:disable operator_usage_whitespace
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
typealias Font = UIFont
#endif

// swiftlint:disable superfluous_disable_command
// swiftlint:disable file_length

struct FontConvertible {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
typealias Font = UIFont
#endif

// swiftlint:disable superfluous_disable_command
// swiftlint:disable file_length

struct FontConvertible {
Expand Down
1 change: 1 addition & 0 deletions Tests/Expected/Fonts/swift2-context-defaults.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
typealias Font = UIFont
#endif

// swiftlint:disable superfluous_disable_command
// swiftlint:disable file_length

struct FontConvertible {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
typealias Font = UIFont
#endif

// swiftlint:disable superfluous_disable_command
// swiftlint:disable file_length

struct FontConvertible {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
typealias Font = UIFont
#endif

// swiftlint:disable superfluous_disable_command
// swiftlint:disable file_length

struct FontConvertible {
Expand Down
1 change: 1 addition & 0 deletions Tests/Expected/Fonts/swift3-context-defaults.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
typealias Font = UIFont
#endif

// swiftlint:disable superfluous_disable_command
// swiftlint:disable file_length

struct FontConvertible {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
typealias Font = UIFont
#endif

// swiftlint:disable superfluous_disable_command
// swiftlint:disable file_length

struct FontConvertible {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
typealias Font = UIFont
#endif

// swiftlint:disable superfluous_disable_command
// swiftlint:disable file_length

struct FontConvertible {
Expand Down
1 change: 1 addition & 0 deletions Tests/Expected/Fonts/swift4-context-defaults.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
typealias Font = UIFont
#endif

// swiftlint:disable superfluous_disable_command
// swiftlint:disable file_length

struct FontConvertible {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import CustomSegue
import LocationPicker
import SlackTextViewController

// swiftlint:disable superfluous_disable_command
// swiftlint:disable file_length

protocol StoryboardType {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import UIKit
import CustomSegue
import LocationPicker

// swiftlint:disable superfluous_disable_command
// swiftlint:disable file_length

protocol StoryboardType {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import UIKit
import LocationPicker
import SlackTextViewController

// swiftlint:disable superfluous_disable_command
// swiftlint:disable file_length

protocol StoryboardType {
Expand Down
1 change: 1 addition & 0 deletions Tests/Expected/Storyboards-iOS/swift2-context-all.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import CustomSegue
import LocationPicker
import SlackTextViewController

// swiftlint:disable superfluous_disable_command
// swiftlint:disable file_length

protocol StoryboardType {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import CustomSegue
import LocationPicker
import SlackTextViewController

// swiftlint:disable superfluous_disable_command
// swiftlint:disable file_length

protocol StoryboardType {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import UIKit
import CustomSegue
import LocationPicker

// swiftlint:disable superfluous_disable_command
// swiftlint:disable file_length

protocol StoryboardType {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import UIKit
import LocationPicker
import SlackTextViewController

// swiftlint:disable superfluous_disable_command
// swiftlint:disable file_length

protocol StoryboardType {
Expand Down
1 change: 1 addition & 0 deletions Tests/Expected/Storyboards-iOS/swift3-context-all.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import CustomSegue
import LocationPicker
import SlackTextViewController

// swiftlint:disable superfluous_disable_command
// swiftlint:disable file_length

protocol StoryboardType {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import CustomSegue
import LocationPicker
import SlackTextViewController

// swiftlint:disable superfluous_disable_command
// swiftlint:disable file_length

protocol StoryboardType {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import UIKit
import CustomSegue
import LocationPicker

// swiftlint:disable superfluous_disable_command
// swiftlint:disable file_length

protocol StoryboardType {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import UIKit
import LocationPicker
import SlackTextViewController

// swiftlint:disable superfluous_disable_command
// swiftlint:disable file_length

protocol StoryboardType {
Expand Down
1 change: 1 addition & 0 deletions Tests/Expected/Storyboards-iOS/swift4-context-all.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import CustomSegue
import LocationPicker
import SlackTextViewController

// swiftlint:disable superfluous_disable_command
// swiftlint:disable file_length

protocol StoryboardType {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import Cocoa
import FadeSegue
import PrefsWindowController

// swiftlint:disable superfluous_disable_command
// swiftlint:disable file_length

protocol StoryboardType {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import Foundation
import Cocoa
import FadeSegue

// swiftlint:disable superfluous_disable_command
// swiftlint:disable file_length

protocol StoryboardType {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import Foundation
import Cocoa
import PrefsWindowController

// swiftlint:disable superfluous_disable_command
// swiftlint:disable file_length

protocol StoryboardType {
Expand Down
1 change: 1 addition & 0 deletions Tests/Expected/Storyboards-macOS/swift2-context-all.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import Cocoa
import FadeSegue
import PrefsWindowController

// swiftlint:disable superfluous_disable_command
// swiftlint:disable file_length

protocol StoryboardType {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import Cocoa
import FadeSegue
import PrefsWindowController

// swiftlint:disable superfluous_disable_command
// swiftlint:disable file_length

protocol StoryboardType {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import Foundation
import Cocoa
import FadeSegue

// swiftlint:disable superfluous_disable_command
// swiftlint:disable file_length

protocol StoryboardType {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import Foundation
import Cocoa
import PrefsWindowController

// swiftlint:disable superfluous_disable_command
// swiftlint:disable file_length

protocol StoryboardType {
Expand Down
1 change: 1 addition & 0 deletions Tests/Expected/Storyboards-macOS/swift3-context-all.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import Cocoa
import FadeSegue
import PrefsWindowController

// swiftlint:disable superfluous_disable_command
// swiftlint:disable file_length

protocol StoryboardType {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import Cocoa
import FadeSegue
import PrefsWindowController

// swiftlint:disable superfluous_disable_command
// swiftlint:disable file_length

protocol StoryboardType {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import Foundation
import Cocoa
import FadeSegue

// swiftlint:disable superfluous_disable_command
// swiftlint:disable file_length

protocol StoryboardType {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import Foundation
import Cocoa
import PrefsWindowController

// swiftlint:disable superfluous_disable_command
// swiftlint:disable file_length

protocol StoryboardType {
Expand Down
1 change: 1 addition & 0 deletions Tests/Expected/Storyboards-macOS/swift4-context-all.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import Cocoa
import FadeSegue
import PrefsWindowController

// swiftlint:disable superfluous_disable_command
// swiftlint:disable file_length

protocol StoryboardType {
Expand Down
Loading

0 comments on commit ed77a61

Please sign in to comment.