Follow up for #1912946: Clean up comments in comment.views.inc node.views.inc user.views.inc and comment #9

Problem/Motivation

Comments are not meeting the standards: http://drupal.org/node/1354

Proposed resolution

Clean up the comments, removing the un-needed ones, making others complete sentences, and moving inline comments to their own lines, etc.

The following files need to be reviewed:

  • core/modules/action/action.views.inc
  • core/modules/contextual/contextual.views.inc
  • core/modules/field/field.views.inc
  • core/modules/file/file.views.inc
  • core/modules/history/history.views.inc
  • core/modules/image/image.views.inc
  • core/modules/language/language.views.inc
  • core/modules/statistics/statistics.views.inc
  • core/modules/system/tests/modules/entity_test/entity_test.views.inc
  • core/modules/taxonomy/taxonomy.views.inc
  • core/modules/views/tests/views_test_data/views_test_data.views.inc
  • core/modules/views/views.views.inc

Remaining tasks

Cleanup comments in the above files.

User interface changes

No UI changes.

API changes

No API changes.

Comments

damiankloip’s picture

Status: Needs work » Postponed

I would like comments to wait until nearer code freeze. As we will still be changing/refactoring/moving/removing things.

mitron’s picture

Assigned: mitron » Unassigned
mitron’s picture

This is a work in progress patch in case it might be useful if/when this issue is again made active.

dawehner’s picture

Well, it's just the .views.inc files, are we sure there is something changed in there?

benelori’s picture

Issue summary: View changes
StatusFileSize
new980 bytes

Minor corrections to comments in views.view.inc file.

benelori’s picture

Cleaned up comments in files.views.inc file.

dawehner’s picture

Status: Postponed » Needs review

Lets ensure that it is also tested/reviewed.

Anonymous’s picture

I just reviewed the patch and it looks OK. Only comments are modified and they conform to API doc standards.

rootwork’s picture

Status: Needs review » Reviewed & tested by the community

Agreed -- only comments updated, and they now conform to the standards.

+++ b/core/modules/file/file.views.inc
@@ -196,39 +196,44 @@ function file_views_data() {
+    // Link ourself to the {node} table

I'm not sure about the non-word (as far as I'm concerned) "ourself" but looking through D8 core, it's used elsewhere (/core/includes/authorize.inc, /core/modules/views/lib/Drupal/views/Plugin/views/argument/ArgumentPluginBase.php, /core/modules/views/views.theme.inc) so I guess it's consistent. Setting to RTBC.

alexpott’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: +Needs reroll

clean_up_file_views_comments-1921970-6.patch no longer applies.

error: patch failed: core/modules/views/views.views.inc:114
error: core/modules/views/views.views.inc: patch does not apply

ishadakota’s picture

Status: Needs work » Needs review
StatusFileSize
new14.96 KB

rerolled.

longwave’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: -Needs reroll
ishadakota’s picture

Status: Reviewed & tested by the community » Needs review
StatusFileSize
new14.96 KB
new524 bytes

While we were at it, fixed a typo and grammatical issue in views.views.inc.

-  // #global is a special flag which let's a table appear all the time.
+  // #global is a special flag which allows a table to appear all the time.

Status: Needs review » Needs work

The last submitted patch, 13: clean_up_file_views_comments-1921970-13.patch, failed testing.

ishadakota’s picture

The last submitted patch, 13: clean_up_file_views_comments-1921970-13.patch, failed testing.

longwave’s picture

ishadakota’s picture

Status: Needs work » Needs review
rbomhof’s picture

biggm’s picture

Reviewing.

biggm’s picture

Status: Needs review » Reviewed & tested by the community
alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed 7a291c9 and pushed to 8.x. Thanks!

  • Commit 7a291c9 on 8.x by alexpott:
    Issue #1921970 by IshaDakota, benelori, mitron: Clean up comments in...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.