public static List<PropertyDefinition> all() {
    return asList(
      PropertyDefinition.builder(PurgeConstants.HOURS_BEFORE_KEEPING_ONLY_ONE_SNAPSHOT_BY_DAY)
        .defaultValue("24")
        .name("Keep only one analysis a day after")
        .description("After this number of hours, if there are several analyses during the same day, "
          + "the DbCleaner keeps the most recent one and fully deletes the other ones.")
        .type(PropertyType.INTEGER)
        .onQualifiers(Qualifiers.PROJECT)
        .category(CoreProperties.CATEGORY_HOUSEKEEPING)
        .subCategory(CoreProperties.SUBCATEGORY_GENERAL)
        .index(1)
        .build(),

      PropertyDefinition.builder(PurgeConstants.WEEKS_BEFORE_KEEPING_ONLY_ONE_SNAPSHOT_BY_WEEK)
        .defaultValue("4")
        .name("Keep only one analysis a week after")
        .description("After this number of weeks, if there are several analyses during the same week, "
          + "the DbCleaner keeps the most recent one and fully deletes the other ones")
        .type(PropertyType.INTEGER)
        .onQualifiers(Qualifiers.PROJECT)
        .category(CoreProperties.CATEGORY_HOUSEKEEPING)
        .subCategory(CoreProperties.SUBCATEGORY_GENERAL)
        .index(2)
        .build(),

      PropertyDefinition.builder(PurgeConstants.WEEKS_BEFORE_KEEPING_ONLY_ONE_SNAPSHOT_BY_MONTH)
        .defaultValue("52")
        .name("Keep only one analysis a month after")
        .description("After this number of weeks, if there are several analyses during the same month, "
          + "the DbCleaner keeps the most recent one and fully deletes the other ones.")
        .type(PropertyType.INTEGER)
        .onQualifiers(Qualifiers.PROJECT)
        .category(CoreProperties.CATEGORY_HOUSEKEEPING)
        .subCategory(CoreProperties.SUBCATEGORY_GENERAL)
        .index(3)
        .build(),

      PropertyDefinition.builder(PurgeConstants.WEEKS_BEFORE_KEEPING_ONLY_ANALYSES_WITH_VERSION)
        .defaultValue("104")
        .name("Keep only analyses with a version event after")
        .description("After this number of weeks, the DbCleaner keeps only analyses with a version event associated.")
        .type(PropertyType.INTEGER)
        .onQualifiers(Qualifiers.PROJECT)
        .category(CoreProperties.CATEGORY_HOUSEKEEPING)
        .subCategory(CoreProperties.SUBCATEGORY_GENERAL)
        .index(4)
        .build(),

      PropertyDefinition.builder(PurgeConstants.WEEKS_BEFORE_DELETING_ALL_SNAPSHOTS)
        .defaultValue("260")
        .name("Delete all analyses after")
        .description("After this number of weeks, all analyses are fully deleted.")
        .type(PropertyType.INTEGER)
        .onQualifiers(Qualifiers.PROJECT)
        .category(CoreProperties.CATEGORY_HOUSEKEEPING)
        .subCategory(CoreProperties.SUBCATEGORY_GENERAL)
        .index(5)
        .build(),

      PropertyDefinition.builder(PurgeConstants.DAYS_BEFORE_DELETING_CLOSED_ISSUES)
        .defaultValue("30")
        .name("Delete closed issues after")
        .description("Issues that have been closed for more than this number of days will be deleted.")
        .type(PropertyType.INTEGER)
        .onQualifiers(Qualifiers.PROJECT)
        .category(CoreProperties.CATEGORY_HOUSEKEEPING)
        .subCategory(CoreProperties.SUBCATEGORY_GENERAL)
        .index(6)
        .build(),

      PropertyDefinition.builder(PurgeConstants.DAYS_BEFORE_DELETING_ANTICIPATED_TRANSITIONS)
        .defaultValue("30")
        .name("Delete anticipated transitions after")
        .description("Anticipated transitions that have not been applied for more than this number of days will be deleted.")
        .type(PropertyType.INTEGER)
        .onQualifiers(Qualifiers.PROJECT)
        .category(CoreProperties.CATEGORY_HOUSEKEEPING)
        .subCategory(CoreProperties.SUBCATEGORY_GENERAL)
        .index(7)
        .build());
  }
@Test
  public void shouldGetExtensions() {
    assertThat(PurgeProperties.all()).hasSize(7);
  }