X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=.swiftlint.yml;h=d9d50c3a17947d2ab7f5d45d65a317a102090648;hb=8e23b39a7f8534e7d68924e0355cc897eb7a3526;hp=0674134fa2dcd3d16bbe4a254d27c5cbb4938494;hpb=23b2f7803da77fea0a7fb9878c3124f8e0e7703f;p=kcd%2FKCD.git diff --git a/.swiftlint.yml b/.swiftlint.yml index 0674134f..d9d50c3a 100644 --- a/.swiftlint.yml +++ b/.swiftlint.yml @@ -46,3 +46,12 @@ cyclomatic_complexity: warning: 25 error: 60 + +custom_rules: + use_nsmanagedobjectcontext: + excluded: "ServerDataStore|ResourceHistoryDataStore|LocalDataStore|TemporaryDataStore|BookmarkDataStore|CoreDataManager|CoreDataCore|MOCGenerator" + name: "Positive using NSManagedObjectContext" + regex: "NSManagedObjectContext\\s" + severity: error + private_iboutlet: + regex: "@IBOutlet\\s+(?!private[(\\s])" \ No newline at end of file