Skip to content

socoboy/OCLint-Configuration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OCLint-Configuration

This is configuration for OCLint integrate with Xcode projects

##Prerequisite: * oclint v10.3 and above installed (brew install oclint) * xcpretty installed (gem install xcpretty)

##How-to: ###Manual: * Copy .oclint, analysis_script.sh and .rules file to your project folder: from oclint-configuration directory, call command: cp .oclint {your_project_folder}/.oclint cp analysis_script.sh {your_project_folder}/analysis_script.sh cp -R .rules {your_project_folder}/.rules ###Auto: * run script: from oclint-configuration directory, call command: chmod +x install_script.sh ./install_script.sh -p={your_project_folder}

* Edit SCHEME and WORKSPACE inside analysis_script.sh inside your project folder

* chmod +x analysis_script.sh inside your project folder

* run ./analysis_script.sh

* Append these lines to .gitignore
	compile_commands.json
	report.html
	analysis_script.sh
	.oclint
	.rules

##Current configs: * Currently enable these rules: - BitwiseOperatorInConditional - BrokenNullCheck - BrokenNilCheck - BrokenOddnessCheck - CollapsibleIfStatements - ConstantConditionalOperator - ConstantIfExpression - DeadCode - DoubleNegative - ForLoopShouldBeWhileLoop - GotoStatement - JumbledIncrementer - LongClass - LongLine - LongMethod - MisplacedNullCheck - MisplacedNilCheck - MultipleUnaryOperator - UseEarlyExitsAndContinue - ReturnFromFinallyBlock - ShortVariableName - ThrowExceptionFromFinallyBlock

Rules references at here

About

This is configuration for OCLint integrate with Xcode projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages