星期一, 十一月 18, 2019

Overview:

FauxPasinspectsyouriOSorMacapp’sXcodeprojectandwarnsaboutpossiblebugs,aswellasaboutmaintainabilityandstyleissues。

WhattheClangStaticAnalyzeristoyourcode,FauxPasistoyourwholeXcodeproject。

FauxPasdoesn’tjustlookatyourcode-itinspectsalltheelementsofyourXcodeprojecttogether。

Thisallowsittofindcompletelynewclassesofpotentialissues。



Tamelatentbugs-Ruleslikethesealertyoutoissuesinyourprojectthatmightmanifestasbugslaterdowntheline:



Findresourcefileerrors-Areyousureyoudidn’tmakeatypointhefilenameargumentto[UIImageimageNamed:]?

Didyouremembertoupdateallrelevantcodewhenyourenamedthatfile?

Areyoushippinganyresourcefilesthatareprobablyunused?

FauxPascomeswith12differentrulesthatcheckforerrorsrelatedtoresourcefileusage。



Findlocalizationerrors-IsNSLocalizedString()referringtoakeythatdoesnotexist?

Thatexistsforonelocalebutnotanother?

Doalloftheformatspecifiersinallthedifferenttranslationsmatch?

FauxPascomeswith10differentrulesthatcheckforlocalizationerrors。



Findversioncontrolerrors-Isyourprojectreferencingafilethatisoutsidetheversioncontrolroot?

OrafilethatisignoredbytheVCS?

FauxPascomeswith4differentrulesthatcheckforversioncontrolerrors。



Learnandenforcebestpractices-Overriding+initializeinacategory?

SpecifyingUIViewControllerNIBnameoutsideofitsimplementation?

AccessingtheaddressbookwithoutspecifyinganNSContactsUsageDescription?

FauxPasisusefulevenforexperiencediOS/Macdevelopers,butit’sespeciallygreatfornewcomerstoApple’splatforms。



Enforcecodestyle-Doyouwanttoenforcetheusageofdotsyntaxwheneverpossible?

Orjustuseitforpropertiesdeclaredwith@property?

WhataboutNSNumberliterals,boxedexpressions,containerliterals,andobjectsubscripting?

FauxPascomeswith12differentrulesthathelpyouenforcestylisticconstraints。



Getachecklistforcodeaudits-Areyouauditingortakingoveranexistingcodebase?

FauxPaswillgiveyouaniceoverviewofpotentialissuesyoumightwanttopayattentionto。



Choosefrom93differentrules-FauxPascomeswith93rules,categorizedusingtagslikeResources,Style,orConfig。

Youcanchoosewhichrulesyouwanttoapply,andconfigurethemtomatchyourpreferences。



UseGUIorCLI-FauxPashasbothagraphicaluserinterfaceandacommand-lineinterface。



RunduringXcodebuilds-InvokeFauxPasinaRunScriptbuildphaseinXcode,andseetheemitteddiagnosticsinXcode’sIssueNavigator(aswellasinlinewiththecode,justlikeregularcompilererrors)。



Connecttoexternaltools-FauxPascanoutputdiagnosticsinJSONorPropertyListformats。

Processtheminanywayyouwantwithcustomscripts。

YoucanalsorunFauxPasoncontinuousintegrationservers。



Configure-Selectrulesbytags,andexcludeindividualrules。

Setgeneralandrule-specificoptions。

SaveintoJSONconfigurationfiles。




This is a Sidebar position. Add your widgets in this position using Default Sidebar or a custom sidebar.