Skip to content

Instantly share code, notes, and snippets.

@mzeeshanid
Last active December 5, 2023 06:11
Show Gist options
  • Save mzeeshanid/996739cdf53e8c6caadf7f852d0715f6 to your computer and use it in GitHub Desktop.
Save mzeeshanid/996739cdf53e8c6caadf7f852d0715f6 to your computer and use it in GitHub Desktop.
swiftlint custom rule non triggering example for 1 declaration per file
class Car {
var make: String
var model: String
init(make: String, model: String) {
self.make = make
self.model = model
}
}
extension Car {
func drive() {
}
func stop() {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment