1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
/*
* SonarQube
* Copyright (C) 2009-2024 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
import { Dict } from '../../types/types';
export const ALM_INTEGRATION_CATEGORY = 'almintegration';
export const AUTHENTICATION_CATEGORY = 'authentication';
export const ANALYSIS_SCOPE_CATEGORY = 'exclusions';
export const LANGUAGES_CATEGORY = 'languages';
export const NEW_CODE_PERIOD_CATEGORY = 'new_code_period';
export const PULL_REQUEST_DECORATION_BINDING_CATEGORY = 'pull_request_decoration_binding';
export const CATEGORY_OVERRIDES: Dict<string> = {
abap: LANGUAGES_CATEGORY,
apex: LANGUAGES_CATEGORY,
'c / c++ / objective-c': LANGUAGES_CATEGORY,
'c#': LANGUAGES_CATEGORY,
cloudformation: LANGUAGES_CATEGORY,
cobol: LANGUAGES_CATEGORY,
css: LANGUAGES_CATEGORY,
docker: LANGUAGES_CATEGORY,
flex: LANGUAGES_CATEGORY,
go: LANGUAGES_CATEGORY,
html: LANGUAGES_CATEGORY,
java: LANGUAGES_CATEGORY,
javascript: LANGUAGES_CATEGORY,
'javascript / typescript': LANGUAGES_CATEGORY,
json: LANGUAGES_CATEGORY,
kotlin: LANGUAGES_CATEGORY,
kubernetes: LANGUAGES_CATEGORY,
php: LANGUAGES_CATEGORY,
'pl/i': LANGUAGES_CATEGORY,
'pl/sql': LANGUAGES_CATEGORY,
python: LANGUAGES_CATEGORY,
rpg: LANGUAGES_CATEGORY,
ruby: LANGUAGES_CATEGORY,
secrets: LANGUAGES_CATEGORY,
scala: LANGUAGES_CATEGORY,
swift: LANGUAGES_CATEGORY,
't-sql': LANGUAGES_CATEGORY,
terraform: LANGUAGES_CATEGORY,
typescript: LANGUAGES_CATEGORY,
'vb.net': LANGUAGES_CATEGORY,
'visual basic': LANGUAGES_CATEGORY,
xml: LANGUAGES_CATEGORY,
yaml: LANGUAGES_CATEGORY,
};
// As per Bitbucket Cloud's documentation, Workspace ID's can only contain lowercase letters,
// numbers, dashes, and underscores.
export const BITBUCKET_CLOUD_WORKSPACE_ID_FORMAT = /^[a-z0-9\-_]+$/;
|