×

Automatically expiring out source code comments

  • US 9,760,368 B2
  • Filed: 06/09/2016
  • Issued: 09/12/2017
  • Est. Priority Date: 12/14/2015
  • Status: Active Grant
First Claim
Patent Images

1. A method for expiring out source code comments, the method comprising:

  • determining, by an automated version control system, that a code build process that includes an edited source code has completed without errors;

    performing, by a processor, based on determining that the code build process that includes the edited source code has completed without errors;

    wherein the performing comprises;

    parsing the edited source code to locate one or more comments;

    performing, for each of the one or more comments;

    determining whether the comment specifies expiration criteria, wherein the expiration criteria specifies a version number of the edited source code at the time that the comment was added to the edited source code and an integrated development environment (IDE) phase in process at the time that the comment was added to the edited source code;

    based on the comment specifying expiration criteria;

    determining whether the expiration criteria meets an expiration threshold, wherein the expiration threshold specifies that any comments added to the edited source code prior to a particular version number should be deleted and that any comments added to the edited source code prior to a particular IDE phase should be deleted; and

    deleting the comment from the edited source code based on determining that the expiration criteria meets the expiration threshold, the deleting resulting in updated source code; and

    storing the updated source code.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×