Skip to content

Instantly share code, notes, and snippets.

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