Skip to content
This repository was archived by the owner on Nov 21, 2019. It is now read-only.

Conversation

@thewilkybarkid
Copy link
Contributor

Not yet complete.

@thewilkybarkid thewilkybarkid added the feature New feature or request label Nov 15, 2018
@thewilkybarkid thewilkybarkid added this to the 0.4.0 milestone Nov 15, 2018
@thewilkybarkid thewilkybarkid requested a review from a team as a code owner November 15, 2018 13:31
---MESSAGES---
6:1 Squiz.Commenting.BlockComment.NoEmptyLineBefore
16:1 Squiz.Commenting.BlockComment.CloserSameLine
16:1 Squiz.Commenting.BlockComment.NoEmptyLineAfter
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Shame these aren't fixed.

// Foo
// Bar
echo 'baz'; // qux
// quux
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Would rather the extra spaces before these two were removed.

Copy link
Contributor Author

@thewilkybarkid thewilkybarkid Nov 26, 2018

Choose a reason for hiding this comment

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

Looks like Squiz.Commenting.InlineComment should fix at least the latter. Doesn't do indentation.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Generic.WhiteSpace.ScopeIndent can be configured to fix the latter.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Setting the exact value to true fixes it, but creates problems elsewhere. For example, indentation of array elements in removed. There is Generic.Arrays.ArrayIndent which can be used, but they seem to conflict.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Looks problematic to try and resolve, let's not hold up the rest.

<element value="@api"/>
<element value="@author"/>
<element value="@category"/>
<element value="@copyright"/>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@thewilkybarkid thewilkybarkid changed the title [WIP] Remove meaningless comments and normalise formatting Remove meaningless comments and normalise formatting Nov 26, 2018
@thewilkybarkid thewilkybarkid merged commit 2b4d010 into libero:master Feb 15, 2019
@thewilkybarkid thewilkybarkid deleted the comments branch February 15, 2019 11:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants