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

Sonar clean bomtools #312

Merged
merged 17 commits into from
Aug 9, 2018
Merged

Sonar clean bomtools #312

merged 17 commits into from
Aug 9, 2018

Conversation

rottebds
Copy link
Contributor

@rottebds rottebds commented Aug 7, 2018

Updating a few bomtools to clean up some sonar smells.

Conflicts:
	build.gradle
	hub-detect/src/main/groovy/com/blackducksoftware/integration/hub/detect/bomtool/yarn/YarnLockBomTool.java
	hub-detect/src/main/groovy/com/blackducksoftware/integration/hub/detect/workflow/project/BdioManager.java
Conflicts:
	hub-detect/src/main/groovy/com/blackducksoftware/integration/hub/detect/BeanConfiguration.java
	hub-detect/src/main/groovy/com/blackducksoftware/integration/hub/detect/workflow/hub/HubManager.java
	hub-detect/src/main/groovy/com/blackducksoftware/integration/hub/detect/workflow/hub/OfflineScanner.java
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.3%) to 22.736% when pulling bd9e16c on sonar-clean-bomtools into 7f5a9b1 on master.

final DependencyGraph dependencyGraph = yarnListParser.parseYarnList(designedYarnLock, testLines);

final List<ExternalId> tempList = new ArrayList<>(dependencyGraph.getRootDependencyExternalIds());

assertEquals(0, tempList.size());
assertEquals(1, tempList.size());
Copy link
Contributor

Choose a reason for hiding this comment

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

Did we change the meaning of this test?

Copy link
Contributor Author

@rottebds rottebds Aug 9, 2018

Choose a reason for hiding this comment

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

Yes, and it was deliberate! Yarn's logic changed and a majority of these tests were verifying the old (and incorrect) behavior of Yarn.

The test before was: If it's not in the yarn lock, make sure we don't add it to the list.
The test now is: if it's not in the yarn lock, make sure we add it to the list.

@rottebds rottebds merged commit 745ea69 into master Aug 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants