• Home
  • Raw
  • Download

Lines Matching refs:warn

753 def warn(clazz, detail, rule, msg):  function
789warn(clazz, f, "C8", "If min/max could change in future, make them dynamic methods")
807 warn(clazz, None, "S1", "Class names with acronyms should be Mtp not MTP")
823warn(clazz, m, "S1", "Method names with acronyms should be getMtu() instead of getMTU()")
837 warn(clazz, None, "L1", "Class should be named FooCallback")
1072warn(clazz, m, "FW1", "Methods creating an Intent should be named createFooIntent()")
1119warn(clazz, m, None, "Methods implemented by developers should be named onFoo()")
1121warn(clazz, m, None, "If implemented by developer, should be named onFoo(); otherwise consider mar…
1132 warn(clazz, None, None, "Builder should be defined as inner class")
1144 warn(clazz, m, None, "Builder methods names should use setFoo() style")
1148 warn(clazz, m, "M4", "Methods must return the builder object")
1151 warn(clazz, None, None, "Missing build() method")
1222 warn(clazz, f, "FW6", "Field type violates package layering")
1227 warn(clazz, m, "FW6", "Method return type violates package layering")
1231 warn(clazz, m, "FW6", "Method argument type violates package layering")
1320 warn(clazz, f, "C1", "Found overlapping flag constant value")
1340warn(clazz, m, "S1", "Methods taking no arguments should throw IllegalStateException")
1465warn(clazz, m, "M2", "Expected common arguments [%s] at beginning of overloaded method" % (", ".jo…
1521warn(clazz, f, "L1", "Registration methods should have overload that accepts delivery Executor")
1548 warn(clazz, m, "M3", "Listeners should always be at end of argument list")
1602warn(clazz, m, "M10", "Methods accepting File should also accept FileDescriptor or streams")
1613warn(clazz, m, None, "Methods should return List<? extends Parcelable> instead of Parcelable[] to …
1622warn(clazz, None, None, "Abstract inner classes should be static to improve testability")
1701warn(clazz, m, None, "Returned time values are strongly encouraged to be in milliseconds unless yo…
1726warn(clazz, m, None, "Classes that release resources should implement AutoClosable and CloseGuard")
1773 warn(clazz, m, None, "Method can be invoked as a unary operator from Kotlin")
1779warn(clazz, m, None, "Method can be invoked as a pre/postfix inc/decrement operator from Kotlin")
1783 warn(clazz, m, None, "Method can be invoked as a binary operator from Kotlin")
1788 warn(clazz, m, None, "Method can be invoked as a 'in' operator from Kotlin")
1792 warn(clazz, m, None, "Method can be invoked with an indexing operator from Kotlin")
1796 warn(clazz, m, None, "Method can be invoked with function call syntax from Kotlin")
1802warn(clazz, m, None, "Method can be invoked as a compound assignment operator from Kotlin")
1816warn(clazz, m, None, "Method should return Collection<> (or subclass) instead of raw array")
1819warn(clazz, m, None, "Method argument should be Collection<> (or subclass) instead of raw array")
1838 warn(clazz, m, None, "When a method overload is needed to target a specific "
1843 warn(clazz, m, None, "Method taking UserHandle should be named 'doFooAsUser' "
1884 warn(clazz, m, None, "Unexpected tense; probably meant 'enabled'")
1916warn(clazz, m, None, "Type %s should be replaced with richer ICU type %s" % (arg, better[arg]))
1958 warn(clazz, c, "FW12", "Should avoid odd sized primitives; use int instead")
1962 warn(clazz, f, "FW12", "Should avoid odd sized primitives; use int instead")
1966 warn(clazz, m, "FW12", "Should avoid odd sized primitives; use int instead")
1969 warn(clazz, m, "FW12", "Should avoid odd sized primitives; use int instead")