Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Correct handling of warnOnMissingMethodArgument to suppress missing, …

…rather then unknown warning.
  • Loading branch information...
commit d582469f9690505c9566fba5fd744f0a83b6272b 1 parent 6f0df51
@chuckhoupt chuckhoupt authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 Processing/GBProcessor.m
View
4 Processing/GBProcessor.m
@@ -226,7 +226,7 @@ - (void)processParametersFromComment:(GBComment *)comment matchingMethod:(GBMeth
[names enumerateObjectsUsingBlock:^(NSString *name, NSUInteger idx, BOOL *stop) {
GBCommentArgument *parameter = [parameters objectForKey:name];
if (!parameter) {
- if (method.includeInOutput)
+ if (self.settings.warnOnMissingMethodArgument && method.includeInOutput)
GBLogXWarn(comment.sourceInfo, @"%@: Description for parameter '%@' missing for %@!", comment.sourceInfo, name, method);
return;
}
@@ -240,7 +240,7 @@ - (void)processParametersFromComment:(GBComment *)comment matchingMethod:(GBMeth
[description appendString:parameter.argumentName];
[sorted addObject:parameter];
}];
- if (self.settings.warnOnMissingMethodArgument && method.includeInOutput) GBLogXWarn(comment.sourceInfo, @"%@: %ld unknown parameter descriptions (%@) found for %@", comment.sourceInfo, [parameters count], description, method);
+ if (method.includeInOutput) GBLogXWarn(comment.sourceInfo, @"%@: %ld unknown parameter descriptions (%@) found for %@", comment.sourceInfo, [parameters count], description, method);
}
// Finaly re-register parameters to the comment if necessary (no need if there's only one parameter).
Please sign in to comment.
Something went wrong with that request. Please try again.