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 some codacy advisories #2393

Merged
merged 4 commits into from
Oct 14, 2021
Merged

Conversation

mikee47
Copy link
Contributor

@mikee47 mikee47 commented Oct 13, 2021

Been looking through the logs trying to fixup some of these warnings.
Not sure about messing with some of those script files though - difficult to test!

Sure there's more to add here.

@slaff slaff added this to the 4.5.0 milestone Oct 14, 2021
@slaff
Copy link
Contributor

slaff commented Oct 14, 2021

@mikee47 Do you plan to add some more here or I should merge it as it is?

@mikee47
Copy link
Contributor Author

mikee47 commented Oct 14, 2021

@slaff No, done for now. If you're happy with the changes to the shell scripts, not my area of expertise!

@@ -41,7 +41,7 @@ PACKAGES_TO_CHANGE="sming sming.source"

for PACKAGE in $PACKAGES_TO_CHANGE;
do
xmlstarlet ed --inplace -N "ns=http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd" -u "/ns:package/ns:metadata/ns:version" -v "$TAG" packages/$PACKAGE/*.nuspec;
xmlstarlet ed --inplace -N "ns=http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd" -u "/ns:package/ns:metadata/ns:version" -v "$TAG" "packages/$PACKAGE/*.nuspec";
Copy link
Contributor

Choose a reason for hiding this comment

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

This line will not work as expected. You can replace the last parameter:

"packages/$PACKAGE/*.nuspec"

with

"packages/$PACKAGE/$PACKAGE.nuspec"

@slaff slaff changed the title [WIP] Fix some codacy advisories Fix some codacy advisories Oct 14, 2021
@slaff slaff merged commit 25066b1 into SmingHub:develop Oct 14, 2021
@mikee47 mikee47 deleted the fix/codacy-advisories branch October 14, 2021 10:35
@slaff slaff mentioned this pull request Oct 15, 2021
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants