Skip to content

Seana71/fix comments#84

Merged
jkoritzinsky merged 2 commits intoSharpGenTools:masterfrom
seana71:seana71/fix-comments
Sep 21, 2018
Merged

Seana71/fix comments#84
jkoritzinsky merged 2 commits intoSharpGenTools:masterfrom
seana71:seana71/fix-comments

Conversation

@seana71
Copy link

@seana71 seana71 commented Sep 21, 2018

This change adds a "// <auto-generated/>" comment at the top of the automatically generated files (functions.cs, etc.) to prevent StyleCop from parsing them and creating hundreds of warnings/errors. StyleCop currently hasn't an easy way to disable processing of selected source files.
Another fix is to the SharpGenExternalDocs processing, wasn't examining the children of the "comments" xml node; the previous code seemed expect the external documentation files were a series of unparented "comment" nodes, which contradicts the SharpGen documentation.

… top level xml and comments nodes were examined, and not the comment children inside comments.
@codecov
Copy link

codecov bot commented Sep 21, 2018

Codecov Report

Merging #84 into master will decrease coverage by 0.02%.
The diff coverage is 27.77%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #84      +/-   ##
==========================================
- Coverage   58.51%   58.48%   -0.03%     
==========================================
  Files         150      150              
  Lines        9148     9156       +8     
  Branches     1123     1124       +1     
==========================================
+ Hits         5353     5355       +2     
- Misses       3404     3410       +6     
  Partials      391      391
Impacted Files Coverage Δ
SharpGen/Transform/ExternalDocCommentsReader.cs 41.37% <0%> (-10.8%) ⬇️
SharpGen/Generator/RoslynGenerator.cs 81.9% <100%> (+0.35%) ⬆️

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 051f18b...3cad1c9. Read the comment docs.

@jkoritzinsky
Copy link
Member

Thanks for the fixes! Sorry for not matching the documentation.

@jkoritzinsky jkoritzinsky merged commit 3dd2f28 into SharpGenTools:master Sep 21, 2018
@seana71 seana71 deleted the seana71/fix-comments branch October 3, 2018 13:46
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