在签入 TFS 之前,如何为我的远程对等方设置代码审查流程?
How can I set up a code review process to my remote peers before checking in to TFS?
我的开发环境是通过远程 VM 在企业代理后面设置的。我们使用 Visual Studio 作为代码开发的主要平台,因此我们的代码审查过程没有问题,因为 Team Foundation Server 具有此功能。
但是最近,我们切换到 Eclipse,同时仍然在 TFS 中维护项目。 Eclipse 有 TFS 插件,这很好,因为我们可以毫不费力地继续我们之前的轨道。唯一缺少的是代码审查。
那么,有没有人在公司代理后面的离线模式下使用 TFS 和 eclipse,有另一种方法来进行代码审查,就像 visual studio + TFS。
这取决于您的团队使用的版本控制系统。
如果您使用 GIT 作为源代码控制。
目前,用于 Eclipse 的 Team Foundation Server 插件(Team Explorer Everywhere)支持pull requests审查代码并与团队成员协作。
Collaborate
Work and code together
Use pull requests to review code and collaborate with members of your
team. Triage and track comments at each stage of the work to ensure no
feedback gets lost. Finally, configure merge, build, and review
policies for your Git branches and stay up-to-date with alerts.
Source: Team Explorer Everywhere
如果您使用 TFVC 作为源代码控制。
直接在插件中没有这个功能。您可能需要使用 3 方代码审查插件来实现它。比如SonarLint, Checkstyle Plug-in...
如果您想在 TFS 服务器签入之前强制执行代码审查。您可能需要使用 check-in policies 来评估挂起的更改是否满足验证要求,然后才能将它们签入服务器。因此,如果可以以编程方式调用通过 Sonar 进行的代码审查,那么您可以构建一个 自定义签入策略,在 Evaluate 方法中调用 Sonar。
我的开发环境是通过远程 VM 在企业代理后面设置的。我们使用 Visual Studio 作为代码开发的主要平台,因此我们的代码审查过程没有问题,因为 Team Foundation Server 具有此功能。
但是最近,我们切换到 Eclipse,同时仍然在 TFS 中维护项目。 Eclipse 有 TFS 插件,这很好,因为我们可以毫不费力地继续我们之前的轨道。唯一缺少的是代码审查。
那么,有没有人在公司代理后面的离线模式下使用 TFS 和 eclipse,有另一种方法来进行代码审查,就像 visual studio + TFS。
这取决于您的团队使用的版本控制系统。
如果您使用 GIT 作为源代码控制。
目前,用于 Eclipse 的 Team Foundation Server 插件(Team Explorer Everywhere)支持pull requests审查代码并与团队成员协作。
Collaborate
Work and code togetherUse pull requests to review code and collaborate with members of your team. Triage and track comments at each stage of the work to ensure no feedback gets lost. Finally, configure merge, build, and review policies for your Git branches and stay up-to-date with alerts.
Source: Team Explorer Everywhere
如果您使用 TFVC 作为源代码控制。
直接在插件中没有这个功能。您可能需要使用 3 方代码审查插件来实现它。比如SonarLint, Checkstyle Plug-in...
如果您想在 TFS 服务器签入之前强制执行代码审查。您可能需要使用 check-in policies 来评估挂起的更改是否满足验证要求,然后才能将它们签入服务器。因此,如果可以以编程方式调用通过 Sonar 进行的代码审查,那么您可以构建一个 自定义签入策略,在 Evaluate 方法中调用 Sonar。