You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

rules.ts 2.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /*
  2. * SonarQube
  3. * Copyright (C) 2009-2024 SonarSource SA
  4. * mailto:info AT sonarsource DOT com
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU Lesser General Public
  8. * License as published by the Free Software Foundation; either
  9. * version 3 of the License, or (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * Lesser General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Lesser General Public License
  17. * along with this program; if not, write to the Free Software Foundation,
  18. * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  19. */
  20. export enum RuleStatus {
  21. Ready = 'READY',
  22. Beta = 'BETA',
  23. Deprecated = 'DEPRECATED',
  24. Removed = 'REMOVED',
  25. }
  26. export interface SearchRulesQuery {
  27. activation?: boolean | string;
  28. active_severities?: string;
  29. asc?: boolean | string;
  30. available_since?: string;
  31. cleanCodeAttributeCategories?: string;
  32. cwe?: string;
  33. f?: string;
  34. facets?: string;
  35. include_external?: boolean | string;
  36. inheritance?: string;
  37. is_template?: boolean | string;
  38. languages?: string;
  39. owaspTop10?: string;
  40. ['owaspTop10-2021']?: string;
  41. p?: number;
  42. ps?: number;
  43. q?: string;
  44. qprofile?: string;
  45. repositories?: string;
  46. rule_key?: string;
  47. s?: string;
  48. impactSoftwareQualities?: string;
  49. impactSeverities?: string;
  50. sonarsourceSecurity?: string;
  51. statuses?: string;
  52. tags?: string;
  53. template_key?: string;
  54. types?: string;
  55. }
  56. export enum RulesFacetName {
  57. AvailableSince = 'availableSince',
  58. CleanCodeAttributeCategories = 'cleanCodeAttributeCategories',
  59. Cwe = 'cwe',
  60. Inheritance = 'inheritance',
  61. ImpactSoftwareQualities = 'impactSoftwareQualities',
  62. ImpactSeverities = 'impactSeverities',
  63. Languages = 'languages',
  64. Profile = 'profile',
  65. Repositories = 'repositories',
  66. Statuses = 'statuses',
  67. Tags = 'tags',
  68. Template = 'template',
  69. Types = 'types',
  70. }