Methods and apparatus for implementing checkin policies in source code control systems
First Claim
1. A method for use in a computer system, the computer system comprising a source code repository that stores checked in source code, at least one checkin policy, at least one policy plugin, and at least one source code file to be submitted to the source code repository, the method comprising acts of:
- (A) creating a policy definition based on user input defining the at least one checkin policy, the policy definition being based on a policy plugin on a policy definition client computer;
(B) storing the policy definition in a policy definition store and subsequently transmitting the policy definition to a policy evaluation client computer;
(C) automatically evaluating compliance of the at least one source code file with the at least one checkin policy at the policy evaluation client computer, the at least one policy plugin being identified based on the policy definition, and the at least one policy plugin performing the act (C);
(D) providing information to a user about compliance or non-compliance of the at least one source code file with the at least one checkin policy;
(E) providing to the user an option to enable a non-compliant source code file to be checked in to the source code repository;
(F) in response to the user selecting the option to enable the non-compliant source code file to be checked into the source code repository, checking in the non-compliant source code file into the source code repository and providing notification to at least one notification subscriber of the checkin of the non-compliant source code file into the source code repository; and
(G) automatically evaluating compliance of the at least one source code file with at least one additional checkin policy, wherein the computer system further comprises an extensible framework enabling the installation of an additional policy plugin, the additional policy plugin performing the act (G).
2 Assignments
0 Petitions
Accused Products
Abstract
In one embodiment, a method and apparatus for automatically evaluating compliance of at least one source code file against at least one checkin policy. In a further embodiment, providing information about the compliance or non-compliance of the at least one source code file with the at least one checkin policy. In another embodiment, providing an option to override a policy failure and submit the at least one source code file to a source code repository. In one embodiment, in response to an override of a policy failure, providing a notification about the override of the policy failure. In some embodiments, an extensible framework enabling the installation of at least one checkin policy plugin, and providing a notification that at least one checkin policy plugin is not installed. In further embodiments, providing and using a work item association policy plugin, a unit tests policy plugin, and a static analysis policy plugin.
-
Citations
10 Claims
-
1. A method for use in a computer system, the computer system comprising a source code repository that stores checked in source code, at least one checkin policy, at least one policy plugin, and at least one source code file to be submitted to the source code repository, the method comprising acts of:
-
(A) creating a policy definition based on user input defining the at least one checkin policy, the policy definition being based on a policy plugin on a policy definition client computer; (B) storing the policy definition in a policy definition store and subsequently transmitting the policy definition to a policy evaluation client computer; (C) automatically evaluating compliance of the at least one source code file with the at least one checkin policy at the policy evaluation client computer, the at least one policy plugin being identified based on the policy definition, and the at least one policy plugin performing the act (C); (D) providing information to a user about compliance or non-compliance of the at least one source code file with the at least one checkin policy; (E) providing to the user an option to enable a non-compliant source code file to be checked in to the source code repository; (F) in response to the user selecting the option to enable the non-compliant source code file to be checked into the source code repository, checking in the non-compliant source code file into the source code repository and providing notification to at least one notification subscriber of the checkin of the non-compliant source code file into the source code repository; and (G) automatically evaluating compliance of the at least one source code file with at least one additional checkin policy, wherein the computer system further comprises an extensible framework enabling the installation of an additional policy plugin, the additional policy plugin performing the act (G). - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. At least one computer readable-medium encoded with a plurality of instructions in a computer system, the computer system comprising a source code repository that stores checked in source code, at least one checkin policy, and at least one source code file to be submitted to the source code repository, the plurality of instructions, when executed, performing a method comprising acts of:
-
(A) creating a policy definition based on user input defining the at least one checkin policy, the policy definition being based on a policy plugin on a policy definition client computer; (B) storing the policy definition in a policy definition store and subsequently transmitting the policy definition to a policy evaluation client computer; (C) identifying based on the policy definition the at least one policy plugin and automatically evaluating compliance of the at least one source code file with the at least one checkin policy; (D) providing information to a user about compliance or non-compliance of the at least one source code file with the at least one checkin policy; (E) providing to a user an option to enable a non-compliant source code file to be checked in to the source code repository; and (F) in response to the user selecting the option to enable the non-compliant source code file to be checked into the source code repository, checking in the non-compliant source code file into the source code repository and providing notification to at least one notification subscriber of the checkin of the non-compliant source code file into the source code repository, wherein the computer system further comprises an extensible framework enabling the installation of the at least one policy plugin, the at least one policy plugin performing the act (C).
-
-
10. A plurality of computers for use with a computer system comprising a source code repository that stores checked in source code, at least one checkin policy, and at least one source code file to be submitted to the source code repository, the plurality of computers comprising at least one processor programmed to:
-
create a policy definition based on user input defining the at least one checkin policy, the policy definition being based on a policy plugin on a policy definition client computer; store the policy definition in a policy definition store and subsequently transmitting the policy definition to a policy evaluation client computer; identify based on the policy definition the at least one policy plugin and automatically evaluate compliance of the at least one source code file with the at least one checkin policy; provide a user information about compliance or non-compliance of the at least one source code file with the at least one checkin policy; provide to a user an option to enable a non-compliant source code file to be checked in to the source code repository; and in response to the user selecting the option to enable the non-compliant source code file to be checked into the source code repository, check in the non-compliant source code file into the source code repository and provide notification to at least one notification subscriber of the checkin of the non-compliant source code file into the source code repository, wherein the computer system further comprises an extensible framework enabling the installation of at least one policy plugin, the at least one policy plugin enabling the automatic evaluation of compliance of the at least one source code file with the at least one checkin policy.
-
Specification