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

Format Comments in Common props, targets and tasks #6160

Closed
wants to merge 4 commits into from
Closed

Format Comments in Common props, targets and tasks #6160

wants to merge 4 commits into from

Conversation

Nirmal4G
Copy link
Contributor

@Nirmal4G Nirmal4G commented Feb 16, 2021

Fixes #TBA

Context

Make Common props, targets and tasks easier to read and understand.

The Comments in Common props, targets and tasks doesn't have a clear format.
Also, some comments got messed up really bad that they appear next line to source instead of before.
Thus, I propose a simple comment style and format comments according to that.

Part of the larger refactoring that'll lead into #1686

Changes Made

Fixup the Comments across Common props, targets and tasks files

Ensure they follow consistent formatting

E.g.: 2-space indent

  <!-- Single Line Comment Text -->
  <!--
    Multi Line Comment Text
    Another Comment Text

    Title:
      Indented Comment Text
      Subtitle:
        Indented Comment Text
  -->

Testing

NIL

Notes

I'll update the style patterns one by one as I do the formatting.
I'll also separate the commits by comment style or by code block and/or by file to make reviewing easier.

For now, I'm placing this in Draft since there are many comments to be formatted.

Please hold up your reviews until it's out of draft.

Base automatically changed from master to main March 15, 2021 20:09
@Nirmal4G Nirmal4G changed the base branch from main to vs16.10 May 13, 2021 11:39
@Nirmal4G Nirmal4G changed the base branch from vs16.10 to vs16.11 May 29, 2021 08:06
@Nirmal4G Nirmal4G changed the base branch from vs16.11 to main July 13, 2021 17:10
Add charset, defaulting to UTF-8
Categorically separate source files
Don't insert new-line at end of file
Remove trailing whitespace
Adjust New Lines where necessary
Follow uniform Indentation format
For shipping XML/XAML files, add missing file header comment
based on the comment text equivalent to what is specified in
the other XML/XAML files.

Also, Try to provide a short description of the file's form and function.
Follow 2-space indent everywhere

For Multi-line comments, text starting between
comment tags should be 4-space and extra 2-space
for the text that follows from the previous line.

Example:
```xml
  <!-- Single Line Comment Text -->
  <!--
      Multi Line Comment Text
      Another Comment Text
        Indented Comment Text
  -->
```

Ensure they follow consistent formatting
@Nirmal4G
Copy link
Contributor Author

Closing this since I re-forked the repo, the branch ref to this PR was removed as well. I'll open a new PR soon.

@Nirmal4G Nirmal4G closed this Apr 21, 2022
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.

None yet

1 participant