Problem/Motivation

Here's the class header:

/**
 * Represents a configuration of an index that was not yet permanently saved.
 *
 * Proxy code created with:
 * php ./core/scripts/generate-proxy-class.php 'Drupal\search_api\IndexInterface' modules/search_api/src/
 */
class UnsavedIndexConfiguration implements IndexInterface, UnsavedConfigurationInterface {

But this class doesn't look as if it has been generated with the proxy script. Probably it has been copied from somewhere?

Proposed resolution

Remove the text. Allow coding standards on this file.

Remaining tasks

None.

User interface changes

None.

API changes

None.

Data model changes

None.

CommentFileSizeAuthor
#3 2908440-2.patch702 bytesclaudiu.cristea

Comments

claudiu.cristea created an issue. See original summary.

claudiu.cristea’s picture

Status: Active » Needs review

Patch.

claudiu.cristea’s picture

StatusFileSize
new702 bytes

Ouch!

claudiu.cristea’s picture

BTW, where is this interface used? ;) EDIT: Ignore this question.

borisson_’s picture

Status: Needs review » Reviewed & tested by the community

You're right, if I run the command again, it completely changes.

$ php ./core/scripts/generate-proxy-class.php 'Drupal\search_api\IndexInterface' modules/search_api/src/

$ git diff --shortstat
 1 file changed, 931 insertions(+), 948 deletions(-)

drunken monkey’s picture

Status: Reviewed & tested by the community » Fixed

Hm, well, if it was automatically generated, we at least definitely kept working on it, improving coding standards, adding/changing methods according to the interface, etc. But it's also possible the comment was wrong to begin with. A moot point in any case, you're right, neither that comment nor the @codingStandardsIgnoreFile serve any purpose now. So, thanks a lot for the patch! Committed.

(Weird, could have sworn we already had an issue for that … Or did we just discuss it in one of the coding standards issues?)

drunken monkey’s picture

drunken monkey credited drunken monkey.

What?!? No, I didn't!

borisson_’s picture

#9, that's a new thing - the committer automatically gets credit on the issue after closing it. You'll see that popping up more frequently in issues.

drunken monkey’s picture

#9, that's a new thing - the committer automatically gets credit on the issue after closing it. You'll see that popping up more frequently in issues.

Ah, OK. Thanks for the info! (Just read about it in the "What's new" post, too.)
Then I guess I should be more generous with those credits in the future in general. (Unfair if I get a credit for a cursory review when others don't get one.)

Status: Fixed » Closed (fixed)

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