★ wanayoo — archive 1999 https://github.com/PowerShell/platyPS/pull/332Nouvelle recherche | Portail wanayoo
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

.NET Core and xUnit cleanup for v0.9 #332

Merged

Conversation

@BernieWhite
Copy link
Contributor

@BernieWhite BernieWhite commented Dec 29, 2017

  • Minor clean ups to resolve compiler warnings and remove files no longer required by newer project files.
  • Exposing internal visible classes to xUnit tests and marking RenderCleaner internal.
@vors
vors approved these changes Dec 29, 2017
Copy link
Collaborator

@vors vors left a comment

nice, should we include a change to turn warnings into errors to avoid regressions in warnings in the future?

@@ -0,0 +1,3 @@
using System.Runtime.CompilerServices;

[assembly: InternalsVisibleToAttribute("Markdown.MAML.Test")]

This comment has been minimized.

@vors

vors Dec 29, 2017
Collaborator

nit: new line at the end of the file

This comment has been minimized.

@BernieWhite

BernieWhite Dec 29, 2017
Author Contributor

@vors I don't see a new line at the end of the file, and can't see it in the commit, so I'm going to assume you mean line 2.

This comment has been minimized.

@vors

vors Dec 29, 2017
Collaborator

nope, I mean the end of the file, see https://stackoverflow.com/questions/5813311/no-newline-at-end-of-file
Git and GitHub are not super happy when dealing with files that doesn't have this extra new line (same goes for C/C++ compilers)

This comment has been minimized.

@vors

vors Dec 29, 2017
Collaborator

Github uses this icon with a red arrow and crossed circle to mark this problems

This comment has been minimized.

@BernieWhite

BernieWhite Dec 30, 2017
Author Contributor

@vors Thanks for explaining. Didn't know this.

This comment has been minimized.

@BernieWhite

BernieWhite Dec 30, 2017
Author Contributor

Done

@vors
Copy link
Collaborator

@vors vors commented Dec 29, 2017

it's good to be merged as is, let me know if you want to merge it or hold for comments.

@BernieWhite
Copy link
Contributor Author

@BernieWhite BernieWhite commented Dec 29, 2017

Yes we should change warnings to errors. I left one warning about an unassigned variable. It been bugging me so I really should fit it. I'll fix and re-push.

@@ -16,4 +20,4 @@
<ItemGroup>
<ProjectReference Include="..\..\src\Markdown.MAML\Markdown.MAML.csproj" />
</ItemGroup>
</Project>
</Project>

This comment has been minimized.

@vors

vors Dec 29, 2017
Collaborator

same: new line at the end of the file

<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard1.6' ">
<PackageReference Include="System.Collections.NonGeneric" Version="4.3.0" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="YamlDotNet" Version="4.2.3" />
</ItemGroup>
</Project>
</Project>

This comment has been minimized.

@vors

vors Dec 29, 2017
Collaborator

same: new line

New-MarkdownHelp -Command New-MyCommandHelp
```

Under the hood, the following tranformations happen:

[MAML XML file] --> [Help Object + Get-Command object] --> [MAML Model] --> [Markdown file]

# Making a new release
## Making a new release

This comment has been minimized.

@vors

vors Dec 29, 2017
Collaborator

Why changing header level? I think release section is outside of Contributing to platyPS

This comment has been minimized.

@BernieWhite

BernieWhite Dec 29, 2017
Author Contributor

Shouldn't there be only one level one header at the top of the document? Releasing is still contributing, but will change it if you like.

This comment has been minimized.

@vors

vors Jan 1, 2018
Collaborator

No, it's a platyPS specific things about one header, markdown in general doesn't care

@@ -58,6 +58,7 @@ public MarkdownParser(Action<int, int> progressCallback, Action<string> infoCall
public MarkdownParser(Action<int, int> progressCallback, int reportByteCount)
{
_progressCallback = progressCallback;
_reportByteCount = reportByteCount;

This comment has been minimized.

@vors

vors Dec 29, 2017
Collaborator

good catch

@BernieWhite
Copy link
Contributor Author

@BernieWhite BernieWhite commented Dec 30, 2017

@vors Should be everything.

@vors vors merged commit 6048cd6 into PowerShell:master Jan 1, 2018
1 of 3 checks passed
1 of 3 checks passed
continuous-integration/appveyor/pr Waiting for AppVeyor build to complete
Details
continuous-integration/travis-ci/pr The Travis CI build is in progress
Details
license/cla All CLA requirements met.
Details
@BernieWhite BernieWhite deleted the BernieWhite:bewhite/coreclr-xunit-cleanup-v0.9 branch Jan 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.