-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpackage.json
128 lines (128 loc) · 6.46 KB
/
package.json
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
{
"$schema": "https://raw.githubusercontent.com/sourcegraph/sourcegraph/main/client/shared/src/schema/extension.schema.json",
"name": "sonarqube",
"description": "Show SonarQube issues when browsing files on Sourcegraph",
"publisher": "sourcegraph",
"icon": "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 512 512'%3E%3Cdefs/%3E%3Crect width='512' height='512' fill='%23549dd0'/%3E%3Cdefs%3E%3Crect id='a' y='0' width='512' height='512'/%3E%3C/defs%3E%3CclipPath id='b'%3E%3Cuse xlink:href='%23a' overflow='visible'/%3E%3C/clipPath%3E%3Cpath d='M409 448h-22c0-179-148-325-330-325v-22c194 0 352 155 352 347' clip-path='url(%23b)' fill='%23fff'/%3E%3Cg%3E%3Cdefs%3E%3Crect id='c' y='0' width='512' height='512'/%3E%3C/defs%3E%3CclipPath id='d'%3E%3Cuse xlink:href='%23c' overflow='visible'/%3E%3C/clipPath%3E%3Cpath d='M424 329A335 335 0 00192 89l5-18a354 354 0 01245 253l-18 5z' clip-path='url(%23d)' fill='%23fff'/%3E%3C/g%3E%3Cg%3E%3Cdefs%3E%3Crect id='e' y='0' width='512' height='512'/%3E%3C/defs%3E%3CclipPath id='f'%3E%3Cuse xlink:href='%23e' overflow='visible'/%3E%3C/clipPath%3E%3Cpath d='M441 223c-27-60-74-113-132-148l8-12c60 36 109 91 138 154l-14 6z' clip-path='url(%23f)' fill='%23fff'/%3E%3C/g%3E%3C/svg%3E",
"activationEvents": [
"*"
],
"wip": false,
"categories": [
"External services"
],
"tags": [
"SonarQube"
],
"contributes": {
"actions": [
{
"id": "sonarqube.showIssuesOnCodeViews.toggle",
"command": "updateConfiguration",
"commandArguments": [
[
"sonarqube.showIssuesOnCodeViews"
],
"${!(config.sonarqube.showIssuesOnCodeViews !== false)}",
null,
"json"
],
"title": "${get(context, 'sonarqube.errorMessage') || (config.sonarqube.showIssuesOnCodeViews && \"Hide inline Sonarqube issues\" || \"Show inline Sonarqube issues\")}",
"category": "SonarQube",
"actionItem": {
"description": "${get(context, 'sonarqube.errorMessage') || (config.sonarqube.showIssuesOnCodeViews && \"Hide inline Sonarqube issues\" || \"Show inline Sonarqube issues\")}",
"iconURL": "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 512 512'%3E%3Cdefs/%3E%3Crect width='512' height='512' fill='%23${get(context, 'sonarqube.errorMessage') && \"999\" || \"549dd0\"}'/%3E%3Cdefs%3E%3Crect id='a' y='0' width='512' height='512'/%3E%3C/defs%3E%3CclipPath id='b'%3E%3Cuse xlink:href='%23a' overflow='visible'/%3E%3C/clipPath%3E%3Cpath d='M409 448h-22c0-179-148-325-330-325v-22c194 0 352 155 352 347' clip-path='url(%23b)' fill='%23fff'/%3E%3Cg%3E%3Cdefs%3E%3Crect id='c' y='0' width='512' height='512'/%3E%3C/defs%3E%3CclipPath id='d'%3E%3Cuse xlink:href='%23c' overflow='visible'/%3E%3C/clipPath%3E%3Cpath d='M424 329A335 335 0 00192 89l5-18a354 354 0 01245 253l-18 5z' clip-path='url(%23d)' fill='%23fff'/%3E%3C/g%3E%3Cg%3E%3Cdefs%3E%3Crect id='e' y='0' width='512' height='512'/%3E%3C/defs%3E%3CclipPath id='f'%3E%3Cuse xlink:href='%23e' overflow='visible'/%3E%3C/clipPath%3E%3Cpath d='M441 223c-27-60-74-113-132-148l8-12c60 36 109 91 138 154l-14 6z' clip-path='url(%23f)' fill='%23fff'/%3E%3C/g%3E%3C/svg%3E",
"pressed": "config.sonarqube.showIssuesOnCodeViews"
}
}
],
"menus": {
"editor/title": [
{
"action": "sonarqube.showIssuesOnCodeViews.toggle",
"when": "resource"
}
],
"commandPalette": []
},
"configuration": {
"type": "object",
"properties": {
"sonarqube.showIssuesOnCodeViews": {
"description": "Whether to show SonarQube issues inline on code views.",
"type": "boolean",
"default": true
},
"sonarqube.instanceUrl": {
"description": "The URL to the SonarQube instance.",
"type": "string",
"default": "https://sonarcloud.io/"
},
"sonarqube.apiToken": {
"description": "The API authentication token for the SonarQube instance, if needed.",
"type": "string"
},
"sonarqube.corsAnywhereUrl": {
"description": "The URL to a CORS proxy. Set to null to opt out of using a CORS proxy.",
"type": [
"string",
"null"
],
"default": "https://cors-anywhere.sgdev.org"
},
"sonarqube.repositoryNamePattern": {
"description": "Regular expression with that is matched on the repository name to extract the capture groups for organization and project key templates.",
"type": "string",
"format": "regex",
"default": "(?:^|/)([^/]+)/([^/]+)$"
},
"sonarqube.organizationKeyTemplate": {
"description": "Replace string to build the organization key from the repository name pattern, using $n references for capture groups. By default just uses the first capture group",
"type": "string",
"default": "$1"
},
"sonarqube.projectKeyTemplate": {
"description": "Replace string to build the project key from the repository name pattern, using $n references for capture groups.",
"type": "string",
"default": "$1_$2"
}
}
}
},
"version": "0.0.0-DEVELOPMENT",
"license": "Apache-2.0",
"main": "dist/sonarqube.js",
"repository": {
"type": "git",
"url": "https://github.com/sourcegraph/sourcegraph-sonarqube"
},
"scripts": {
"eslint": "eslint 'src/**/*.ts'",
"typecheck": "tsc -p tsconfig.json",
"build": "parcel build --out-file dist/sonarqube.js src/sonarqube.ts --no-minify",
"symlink-package": "mkdirp dist && lnfs ./package.json ./dist/package.json",
"serve": "yarn run symlink-package && parcel serve --no-hmr --out-file dist/sonarqube.js src/sonarqube.ts",
"watch:typecheck": "tsc -p tsconfig.json -w",
"watch:build": "tsc -p tsconfig.dist.json -w",
"sourcegraph:prepublish": "yarn run typecheck && yarn run build"
},
"browserslist": [
"last 1 Chrome versions",
"last 1 Firefox versions",
"last 1 Edge versions",
"last 1 Safari versions"
],
"devDependencies": {
"@sourcegraph/eslint-config": "^0.20.11",
"@sourcegraph/tsconfig": "^4.0.1",
"eslint": "^7.11.0",
"lnfs-cli": "^2.1.0",
"mkdirp": "^1.0.4",
"parcel-bundler": "^1.12.4",
"sourcegraph": "^24.7.0",
"typescript": "^4.0.3"
},
"dependencies": {
"rxjs": "^6.6.3"
}
}