Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix static analysis issues #968

Merged
merged 12 commits into from
Apr 6, 2020
Merged

Conversation

kinow
Copy link
Collaborator

@kinow kinow commented Apr 3, 2020

Left multiple commits for now in-case we need to drop some. But happy to squash (or OK if somebody else squashes them) commits. Had some time today while another thing was running, so went through the code, the static analysis issues reported in SonarCloud and PhpStorm and fixed a few ones.

Cheers
Bruno

@sonarcloud
Copy link

sonarcloud bot commented Apr 3, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@kinow
Copy link
Collaborator Author

kinow commented Apr 3, 2020

Hm, not sure why that unit test failed. Can't tell if related to this change or not.

@osma
Copy link
Member

osma commented Apr 6, 2020

Thanks @kinow! Looks good! I will test locally and if everything works fine after the changes, I will merge this. No need to squash - it's good to have small, descriptive commits.

One of the Travis jobs failed, probably just some random transient issue. I restarted it.

@codecov
Copy link

codecov bot commented Apr 6, 2020

Codecov Report

Merging #968 into master will decrease coverage by 0.01%.
The diff coverage is 0.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #968      +/-   ##
============================================
- Coverage     58.80%   58.79%   -0.02%     
  Complexity     1505     1505              
============================================
  Files            32       32              
  Lines          4207     4208       +1     
============================================
  Hits           2474     2474              
- Misses         1733     1734       +1     
Impacted Files Coverage Δ Complexity Δ
controller/Controller.php 13.33% <0.00%> (-0.15%) 38.00 <0.00> (ø)
controller/WebController.php 17.75% <ø> (ø) 95.00 <0.00> (ø)
model/Model.php 81.52% <ø> (ø) 105.00 <0.00> (ø)
model/VocabularyConfig.php 92.30% <ø> (ø) 75.00 <0.00> (ø)

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 17361d5...aac5f85. Read the comment docs.

@osma osma merged commit f1de0df into NatLibFi:master Apr 6, 2020
@osma
Copy link
Member

osma commented Apr 6, 2020

Couldn't find any issues, and the Travis CI job passed on the second attempt. Thanks again!

@osma osma added this to the 2.5 milestone Apr 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants