Lines Matching refs:warn

266 def warn(clazz, detail, rule, msg):  function
294warn(clazz, f, "C8", "If min/max could change in future, make them dynamic methods")
312 warn(clazz, None, "S1", "Class names with acronyms should be Mtp not MTP")
327warn(clazz, m, "S1", "Method names with acronyms should be getMtu() instead of getMTU()")
341 warn(clazz, None, "L1", "Class should be named FooCallback")
569warn(clazz, m, "FW1", "Methods creating an Intent should be named createFooIntent()")
615warn(clazz, m, None, "Methods implemented by developers should be named onFoo()")
617warn(clazz, m, None, "If implemented by developer, should be named onFoo(); otherwise consider mar…
627 warn(clazz, None, None, "Builder should be defined as inner class")
639 warn(clazz, m, None, "Builder methods names should use setFoo() style")
643 warn(clazz, m, "M4", "Methods must return the builder object")
646 warn(clazz, None, None, "Missing build() method")
693 warn(clazz, f, "FW6", "Field type violates package layering")
698 warn(clazz, m, "FW6", "Method return type violates package layering")
702 warn(clazz, m, "FW6", "Method argument type violates package layering")
771 warn(clazz, f, "C1", "Found overlapping flag constant value")
790warn(clazz, m, "S1", "Methods taking no arguments should throw IllegalStateException")
911warn(clazz, m, "M2", "Expected common arguments [%s] at beginning of overloaded method" % (", ".jo…
966warn(clazz, f, "L1", "Registration methods should have overload that accepts delivery Executor")
991 warn(clazz, m, "M3", "Listeners should always be at end of argument list")
1039warn(clazz, m, "M10", "Methods accepting File should also accept FileDescriptor or streams")
1049warn(clazz, m, None, "Methods should return List<? extends Parcelable> instead of Parcelable[] to …
1057warn(clazz, None, None, "Abstract inner classes should be static to improve testability")
1133warn(clazz, m, None, "Returned time values are strongly encouraged to be in milliseconds unless yo…
1157warn(clazz, m, None, "Classes that release resources should implement AutoClosable and CloseGuard")
1202 warn(clazz, m, None, "Method can be invoked as a unary operator from Kotlin")
1208warn(clazz, m, None, "Method can be invoked as a pre/postfix inc/decrement operator from Kotlin")
1212 warn(clazz, m, None, "Method can be invoked as a binary operator from Kotlin")
1217 warn(clazz, m, None, "Method can be invoked as a 'in' operator from Kotlin")
1221 warn(clazz, m, None, "Method can be invoked with an indexing operator from Kotlin")
1225 warn(clazz, m, None, "Method can be invoked with function call syntax from Kotlin")
1231warn(clazz, m, None, "Method can be invoked as a compound assignment operator from Kotlin")
1241warn(clazz, m, None, "Method should return Collection<> (or subclass) instead of raw array")
1244warn(clazz, m, None, "Method argument should be Collection<> (or subclass) instead of raw array")
1259warn(clazz, m, None, "Method taking UserHandle should be named 'doFooAsUser' or 'queryFooForUser'")
1296 warn(clazz, m, None, "Unexpected tense; probably meant 'enabled'")
1327warn(clazz, m, None, "Type %s should be replaced with richer ICU type %s" % (arg, better[arg]))