Skip to content
This repository has been archived by the owner on Jan 17, 2019. It is now read-only.

Fix simple OCLint warnings #337

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Fix simple OCLint warnings #337

wants to merge 8 commits into from

Conversation

dflems
Copy link
Contributor

@dflems dflems commented May 3, 2017

OCLint is another static analysis tool that focuses on reducing complexity, confusion, and redundant code. It has a ton of rules. This PR knocks out some of the simpler ones.

The tool also handles analyzing cyclomatic complexity and npath complexity, which could help identify places that could probably use a refactor or reduction in complexity.

Many of the rules are conventional but could also be useful (method length, line length, class length, etc.)

@spotify-ci-bot
Copy link

3 Messages
📖 Executed 385 tests, with 0 failures (0 unexpected) in 6.809 (7.352) seconds
📖 Executed 381 tests, with 0 failures (0 unexpected) in 6.306 (6.780) seconds
📖 Executed 11 tests, with 0 failures (0 unexpected) in 217.134 (217.143) seconds

Generated by 🚫 Danger

@codecov-io
Copy link

codecov-io commented May 3, 2017

Codecov Report

Merging #337 into master will increase coverage by 0.07%.
The diff coverage is 90.21%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #337      +/-   ##
==========================================
+ Coverage   80.08%   80.16%   +0.07%     
==========================================
  Files          84       84              
  Lines        4510     4496      -14     
==========================================
- Hits         3612     3604       -8     
+ Misses        898      892       -6
Impacted Files Coverage Δ
...rces/HUBViewControllerExperimentalImplementation.m 5.27% <0%> (+0.01%) ⬆️
sources/HUBAutoEquatable.m 100% <100%> (ø) ⬆️
sources/HUBViewModelRenderer.m 95.38% <100%> (ø) ⬆️
sources/HUBComponentWrapper.m 71.42% <100%> (-0.12%) ⬇️
sources/HUBLiveServiceFactory.m 100% <100%> (+25%) ⬆️
sources/HUBViewControllerFactoryImplementation.m 100% <100%> (ø) ⬆️
sources/HUBViewControllerImplementation.m 88.37% <100%> (-0.04%) ⬇️
sources/HUBViewModelDiff.m 96.4% <100%> (-0.05%) ⬇️
sources/HUBDefaultConnectivityStateResolver.m 72.54% <100%> (-0.53%) ⬇️
sources/HUBComponentModelBuilderImplementation.m 96.75% <100%> (ø) ⬆️
... and 6 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9ebdb44...56404ca. Read the comment docs.

Copy link
Contributor

@rastersize rastersize left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👔

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
4 participants