@@ -39,9 +39,9 @@ private Keyword not_keyword_only_arg(Call call, FunctionValue func) {
3939}
4040
4141/** Gets the count of arguments that are passed as positional parameters even if they
42- * are named in the call.
43- * This is the sum of the number of positional arguments, the number of elements in any explicit tuple passed as *arg
44- * plus the number of keyword arguments that do not match keyword-only arguments (if the function does not take **kwargs).
42+ * are named in the call.
43+ * This is the sum of the number of positional arguments, the number of elements in any explicit tuple passed as *arg
44+ * plus the number of keyword arguments that do not match keyword-only arguments (if the function does not take **kwargs).
4545 */
4646
4747private int positional_arg_count_for_call_objectapi ( Call call , Object callable ) {
@@ -59,9 +59,9 @@ private int positional_arg_count_for_call_objectapi(Call call, Object callable)
5959}
6060
6161/** Gets the count of arguments that are passed as positional parameters even if they
62- * are named in the call.
63- * This is the sum of the number of positional arguments, the number of elements in any explicit tuple passed as *arg
64- * plus the number of keyword arguments that do not match keyword-only arguments (if the function does not take **kwargs).
62+ * are named in the call.
63+ * This is the sum of the number of positional arguments, the number of elements in any explicit tuple passed as *arg
64+ * plus the number of keyword arguments that do not match keyword-only arguments (if the function does not take **kwargs).
6565 */
6666
6767private int positional_arg_count_for_call ( Call call , Value callable ) {
@@ -139,10 +139,9 @@ predicate too_few_args_objectapi(Call call, Object callable, int limit) {
139139 arg_count_objectapi ( call ) < limit and
140140 exists ( FunctionObject func | func = get_function_or_initializer_objectapi ( callable ) |
141141 call = func .getAFunctionCall ( ) .getNode ( ) and limit = func .minParameters ( ) and
142- /* The combination of misuse of `mox.Mox().StubOutWithMock()`
143- * and a bug in mox's implementation of methods results in having to
144- * pass 1 too few arguments to the mocked function.
145- */
142+ // The combination of misuse of `mox.Mox().StubOutWithMock()`
143+ // and a bug in mox's implementation of methods results in having to
144+ // pass 1 too few arguments to the mocked function.
146145 not ( useOfMoxInModule ( call .getEnclosingModule ( ) ) and func .isNormalMethod ( ) )
147146 or
148147 call = func .getAMethodCall ( ) .getNode ( ) and limit = func .minParameters ( ) - 1
@@ -160,10 +159,9 @@ predicate too_few_args(Call call, Value callable, int limit) {
160159 arg_count ( call ) < limit and
161160 exists ( FunctionValue func | func = get_function_or_initializer ( callable ) |
162161 call = func .getACall ( ) .getNode ( ) and limit = func .minParameters ( ) and
163- /* The combination of misuse of `mox.Mox().StubOutWithMock()`
164- * and a bug in mox's implementation of methods results in having to
165- * pass 1 too few arguments to the mocked function.
166- */
162+ // The combination of misuse of `mox.Mox().StubOutWithMock()`
163+ // and a bug in mox's implementation of methods results in having to
164+ // pass 1 too few arguments to the mocked function.
167165 not ( useOfMoxInModule ( call .getEnclosingModule ( ) ) and func .isNormalMethod ( ) )
168166 or
169167 call = func .getACall ( ) .getNode ( ) and limit = func .minParameters ( ) - 1
0 commit comments