xcode - Disable "Documentation Comments" warning for selected files -


xcode has ability check documentation comments issues , report warnings when not quite right. instance, i've added facebook sdk project using cocoapods. @ point in file fberror.h there's following code:

/*!  @typedef ns_enum (nsinteger, fberrorcategory)   @abstract indicates facebook sdk classification error   @discussion  */ 

note @discussion parameter empty, , xcode generate warning accordingly:

empty paragraph passed '@discussion' command

however, facebook sdk not library i've added project, , issues tab full of other documentation related warnings 3rd party files, pods installed.

i'd know how suppress kind of warning files.

you can use snippet suppress warnings:

#pragma clang diagnostic push #pragma clang diagnostic ignored "-wdocumentation"  #import <yourheader.h>  #pragma clang diagnostic pop 

see cocoapod-issue details: https://github.com/cocoapods/cocoapods/issues/1481 (snippet comes there)


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -