yiisoft / yii-core

Yii Framework 3.0 core

Home Page:https://www.yiiframework.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[meta] Remove @author from source

SamMousa opened this issue · comments

Currently some source files have an @author PHPDoc.
In an open source project where each file can have a lot of contributors over time I don't see the value of having this.
If we want to know who added the file we can check the git history; also essentially it means nothing since your commits are already strongly connected to you.

git history does not cover all cases. e.g. splitting the repos made the original source hidden in the yii3 repos: https://github.com/yiisoft/yii-core/commits/master/src/base/Action.php

I agree that this is not ideal as it is not clear how much changes are needed by a person to be counted as co-author for a file. Still having a reference that is kept regardless of where the file is copied seems useful to me.

splitting the repos made the original source hidden in the yii3 repos

This goes for all contributors, not just the original author. But I think adding everyone who contributes in the source doesn't make sense.

I agree that this is not ideal as it is not clear how much changes are needed by a person to be counted as co-author for a file.

This exactly; just because I created a file doesn't make me more relevant in my opinion. If I create a file and over time it changes significantly is it really relevant that I happened to create it?

While my preference is to remove it because it doesn't do anything, I feel that if we leave it there should be some guidelines / rules at least.

I'm for removing it. While it was necessary for early stages where there was no easy git blame, in my opinion, it is confusing nowadays as @SamMousa said. Code belongs to Yii community overall and is created and maintained for our common good.

okay, agree.

We can automate it via https://github.com/yiisoft/yii2/blob/2.0.15/build/controllers/PhpDocController.php
no need to manually work through the code, these changes are applied at least before every release.

I'm removing the @author tag in log packages, and crediting people in composer.json authors field, I think this is the cleanest way to do it.

Agreed? If so, let's change this issue status.

Mostly done. If there are still files with these, they'll be cleaned up later.