@enjoys/context-engine 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/data/commands/adb.json +322 -0
- package/data/commands/alembic.json +301 -0
- package/data/commands/artisan.json +277 -0
- package/data/commands/atlas.json +426 -0
- package/data/commands/auth0.json +648 -0
- package/data/commands/bat.json +84 -0
- package/data/commands/btop.json +59 -0
- package/data/commands/bundle.json +321 -0
- package/data/commands/composer.json +507 -0
- package/data/commands/dart.json +216 -0
- package/data/commands/dbmate.json +257 -0
- package/data/commands/docker-compose.json +384 -0
- package/data/commands/drizzle-kit.json +217 -0
- package/data/commands/expo.json +65 -0
- package/data/commands/fastlane.json +243 -0
- package/data/commands/fd.json +86 -0
- package/data/commands/flutter.json +298 -0
- package/data/commands/flyway.json +261 -0
- package/data/commands/fzf.json +103 -0
- package/data/commands/gem.json +267 -0
- package/data/commands/htop.json +56 -0
- package/data/commands/jq.json +100 -0
- package/data/commands/k9s.json +62 -0
- package/data/commands/linux.json +3007 -0
- package/data/commands/liquibase.json +399 -0
- package/data/commands/manifest.json +619 -0
- package/data/commands/minikube.json +60 -0
- package/data/commands/ng.json +64 -0
- package/data/commands/nuxt.json +60 -0
- package/data/commands/nvim.json +91 -0
- package/data/commands/php.json +157 -0
- package/data/commands/pm2.json +259 -0
- package/data/commands/pod.json +175 -0
- package/data/commands/prisma.json +257 -0
- package/data/commands/rails.json +372 -0
- package/data/commands/rake.json +360 -0
- package/data/commands/react-native.json +57 -0
- package/data/commands/rg.json +103 -0
- package/data/commands/rspec.json +257 -0
- package/data/commands/ruby.json +108 -0
- package/data/commands/screen.json +101 -0
- package/data/commands/sequelize.json +342 -0
- package/data/commands/snyk.json +442 -0
- package/data/commands/sonar-scanner.json +219 -0
- package/data/commands/stripe.json +314 -0
- package/data/commands/symfony.json +449 -0
- package/data/commands/tmux.json +197 -0
- package/data/commands/top.json +61 -0
- package/data/commands/trivy.json +367 -0
- package/data/commands/twilio.json +382 -0
- package/data/commands/typeorm.json +262 -0
- package/data/commands/vim.json +85 -0
- package/data/commands/vue.json +60 -0
- package/data/commands/wp.json +857 -0
- package/data/commands/xcodebuild.json +141 -0
- package/data/commands/yq.json +57 -0
- package/data/completion/bash.json +1184 -0
- package/data/completion/c.json +1067 -0
- package/data/completion/cpp.json +824 -0
- package/data/completion/csharp.json +860 -0
- package/data/completion/dockerfile.json +536 -0
- package/data/completion/go.json +1346 -0
- package/data/completion/html.json +806 -0
- package/data/completion/java.json +1112 -0
- package/data/completion/javascript.json +914 -0
- package/data/completion/lua.json +968 -0
- package/data/completion/php.json +1535 -0
- package/data/completion/python.json +1427 -0
- package/data/completion/ruby.json +1531 -0
- package/data/completion/rust.json +698 -0
- package/data/completion/sql.json +887 -0
- package/data/completion/toml.json +428 -0
- package/data/completion/typescript.json +338 -0
- package/data/completion/yaml.json +563 -0
- package/data/defination/bash.json +565 -0
- package/data/defination/c.json +865 -0
- package/data/defination/cpp.json +348 -0
- package/data/defination/csharp.json +144 -0
- package/data/defination/dockerfile.json +113 -0
- package/data/defination/go.json +561 -0
- package/data/defination/html.json +559 -0
- package/data/defination/java.json +184 -0
- package/data/defination/javascript.json +265 -0
- package/data/defination/lua.json +181 -0
- package/data/defination/php.json +726 -0
- package/data/defination/python.json +717 -0
- package/data/defination/ruby.json +670 -0
- package/data/defination/rust.json +207 -0
- package/data/defination/sql.json +473 -0
- package/data/defination/toml.json +251 -0
- package/data/defination/typescript.json +29 -0
- package/data/defination/yaml.json +197 -0
- package/data/hover/bash.json +245 -0
- package/data/hover/c.json +265 -0
- package/data/hover/cpp.json +210 -0
- package/data/hover/csharp.json +290 -0
- package/data/hover/dockerfile.json +145 -0
- package/data/hover/go.json +580 -0
- package/data/hover/html.json +250 -0
- package/data/hover/java.json +395 -0
- package/data/hover/javascript.json +330 -0
- package/data/hover/lua.json +265 -0
- package/data/hover/php.json +300 -0
- package/data/hover/python.json +380 -0
- package/data/hover/ruby.json +265 -0
- package/data/hover/rust.json +275 -0
- package/data/hover/sql.json +230 -0
- package/data/hover/toml.json +145 -0
- package/data/hover/typescript.json +120 -0
- package/data/hover/yaml.json +165 -0
- package/data/manifest.json +242 -0
- package/package.json +1 -1
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "sonar-scanner",
|
|
3
|
+
"description": "SonarQube/SonarCloud code quality and security scanner for static analysis, code coverage tracking, and quality gate enforcement across 30+ programming languages",
|
|
4
|
+
"category": "security",
|
|
5
|
+
"platforms": ["linux", "macos", "windows"],
|
|
6
|
+
"shells": ["bash", "zsh", "fish", "powershell"],
|
|
7
|
+
"subcommands": [
|
|
8
|
+
{
|
|
9
|
+
"name": "scan",
|
|
10
|
+
"description": "Run the default SonarQube/SonarCloud analysis on the project (sonar-scanner is primarily invoked as a single command with -D property options)",
|
|
11
|
+
"args": [],
|
|
12
|
+
"options": [
|
|
13
|
+
{ "name": "-Dsonar.projectKey", "description": "Unique key identifying the project in SonarQube/SonarCloud", "type": "string" },
|
|
14
|
+
{ "name": "-Dsonar.organization", "description": "Organization key for SonarCloud", "type": "string" },
|
|
15
|
+
{ "name": "-Dsonar.host.url", "description": "URL of the SonarQube server (e.g., https://sonarcloud.io or http://localhost:9000)", "type": "string" },
|
|
16
|
+
{ "name": "-Dsonar.token", "description": "Authentication token for the scanner", "type": "string" },
|
|
17
|
+
{ "name": "-Dsonar.login", "description": "Authentication token or login (deprecated, use sonar.token)", "type": "string" },
|
|
18
|
+
{ "name": "-Dsonar.projectName", "description": "Display name for the project", "type": "string" },
|
|
19
|
+
{ "name": "-Dsonar.projectVersion", "description": "Version of the project being analyzed", "type": "string" },
|
|
20
|
+
{ "name": "-Dsonar.sources", "description": "Comma-separated paths to source directories (relative to project base)", "type": "string" },
|
|
21
|
+
{ "name": "-Dsonar.tests", "description": "Comma-separated paths to test source directories", "type": "string" },
|
|
22
|
+
{ "name": "-Dsonar.language", "description": "Language of the source files (auto-detected if omitted)", "type": "string" },
|
|
23
|
+
{ "name": "-Dsonar.sourceEncoding", "description": "Source file encoding (e.g., UTF-8)", "type": "string" },
|
|
24
|
+
{ "name": "-Dsonar.java.binaries", "description": "Comma-separated paths to compiled Java bytecode directories (required for Java analysis)", "type": "string" },
|
|
25
|
+
{ "name": "-Dsonar.exclusions", "description": "Comma-separated file path patterns to exclude from analysis", "type": "string" },
|
|
26
|
+
{ "name": "-Dsonar.inclusions", "description": "Comma-separated file path patterns to include in analysis", "type": "string" },
|
|
27
|
+
{ "name": "-Dsonar.test.exclusions", "description": "Comma-separated patterns to exclude from test analysis", "type": "string" },
|
|
28
|
+
{ "name": "-Dsonar.coverage.exclusions", "description": "Comma-separated patterns to exclude from code coverage calculation", "type": "string" },
|
|
29
|
+
{ "name": "-Dsonar.cpd.exclusions", "description": "Comma-separated patterns to exclude from duplication detection", "type": "string" },
|
|
30
|
+
{ "name": "-Dsonar.qualitygate.wait", "description": "Wait for the quality gate result (true/false)", "type": "string" },
|
|
31
|
+
{ "name": "-Dsonar.qualitygate.timeout", "description": "Timeout in seconds to wait for quality gate result (default: 300)", "type": "string" },
|
|
32
|
+
{ "name": "-Dsonar.verbose", "description": "Enable verbose/debug logging (true/false)", "type": "string" },
|
|
33
|
+
{ "name": "-Dsonar.log.level", "description": "Log level: TRACE, DEBUG, INFO, WARN", "type": "string" },
|
|
34
|
+
{ "name": "-Dsonar.working.directory", "description": "Working directory for the scanner (default: .scannerwork)", "type": "string" },
|
|
35
|
+
{ "name": "-Dsonar.scm.provider", "description": "SCM provider: git, svn, tfvc", "type": "string" },
|
|
36
|
+
{ "name": "-Dsonar.scm.revision", "description": "SCM revision to associate with the analysis", "type": "string" },
|
|
37
|
+
{ "name": "-Dsonar.scm.forceReloadAll", "description": "Force reload of all SCM data (true/false)", "type": "string" },
|
|
38
|
+
{ "name": "-Dsonar.pullrequest.key", "description": "Pull request identifier for PR decoration", "type": "string" },
|
|
39
|
+
{ "name": "-Dsonar.pullrequest.branch", "description": "Pull request source branch name", "type": "string" },
|
|
40
|
+
{ "name": "-Dsonar.pullrequest.base", "description": "Pull request target/base branch name", "type": "string" },
|
|
41
|
+
{ "name": "-Dsonar.pullrequest.provider", "description": "Pull request platform: github, gitlab, azure, bitbucket", "type": "string" },
|
|
42
|
+
{ "name": "-Dsonar.pullrequest.github.repository", "description": "GitHub repository slug (owner/repo)", "type": "string" },
|
|
43
|
+
{ "name": "-Dsonar.branch.name", "description": "Branch name for branch analysis", "type": "string" },
|
|
44
|
+
{ "name": "-Dsonar.newCode.referenceBranch", "description": "Reference branch for new code definition", "type": "string" }
|
|
45
|
+
],
|
|
46
|
+
"examples": [
|
|
47
|
+
"sonar-scanner -Dsonar.projectKey=my-project -Dsonar.host.url=http://localhost:9000 -Dsonar.token=sqp_xxxxx",
|
|
48
|
+
"sonar-scanner -Dsonar.projectKey=my-project -Dsonar.organization=my-org -Dsonar.host.url=https://sonarcloud.io -Dsonar.token=sqp_xxxxx",
|
|
49
|
+
"sonar-scanner -Dsonar.projectKey=my-project -Dsonar.sources=src -Dsonar.tests=test -Dsonar.host.url=http://localhost:9000 -Dsonar.token=sqp_xxxxx",
|
|
50
|
+
"sonar-scanner -Dsonar.projectKey=my-java-app -Dsonar.sources=src/main/java -Dsonar.java.binaries=target/classes -Dsonar.host.url=http://localhost:9000 -Dsonar.token=sqp_xxxxx"
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "quality-gate",
|
|
55
|
+
"description": "Run analysis with quality gate enforcement that blocks CI pipelines on failure",
|
|
56
|
+
"args": [],
|
|
57
|
+
"options": [
|
|
58
|
+
{ "name": "-Dsonar.projectKey", "description": "Project key", "type": "string" },
|
|
59
|
+
{ "name": "-Dsonar.host.url", "description": "SonarQube server URL", "type": "string" },
|
|
60
|
+
{ "name": "-Dsonar.token", "description": "Authentication token", "type": "string" },
|
|
61
|
+
{ "name": "-Dsonar.qualitygate.wait", "description": "Wait for quality gate: true", "type": "string" },
|
|
62
|
+
{ "name": "-Dsonar.qualitygate.timeout", "description": "Quality gate timeout seconds", "type": "string" }
|
|
63
|
+
],
|
|
64
|
+
"examples": [
|
|
65
|
+
"sonar-scanner -Dsonar.projectKey=my-project -Dsonar.host.url=http://localhost:9000 -Dsonar.token=sqp_xxxxx -Dsonar.qualitygate.wait=true",
|
|
66
|
+
"sonar-scanner -Dsonar.projectKey=my-project -Dsonar.host.url=http://localhost:9000 -Dsonar.token=sqp_xxxxx -Dsonar.qualitygate.wait=true -Dsonar.qualitygate.timeout=600"
|
|
67
|
+
]
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"name": "pull-request",
|
|
71
|
+
"description": "Run analysis scoped to a pull request for PR decoration and review comments",
|
|
72
|
+
"args": [],
|
|
73
|
+
"options": [
|
|
74
|
+
{ "name": "-Dsonar.projectKey", "description": "Project key", "type": "string" },
|
|
75
|
+
{ "name": "-Dsonar.host.url", "description": "SonarQube server URL", "type": "string" },
|
|
76
|
+
{ "name": "-Dsonar.token", "description": "Authentication token", "type": "string" },
|
|
77
|
+
{ "name": "-Dsonar.pullrequest.key", "description": "PR number/identifier", "type": "string" },
|
|
78
|
+
{ "name": "-Dsonar.pullrequest.branch", "description": "PR source branch", "type": "string" },
|
|
79
|
+
{ "name": "-Dsonar.pullrequest.base", "description": "PR target branch", "type": "string" },
|
|
80
|
+
{ "name": "-Dsonar.pullrequest.provider", "description": "Platform: github, gitlab, azure, bitbucket", "type": "string" },
|
|
81
|
+
{ "name": "-Dsonar.pullrequest.github.repository", "description": "GitHub repo slug", "type": "string" }
|
|
82
|
+
],
|
|
83
|
+
"examples": [
|
|
84
|
+
"sonar-scanner -Dsonar.projectKey=my-project -Dsonar.host.url=http://localhost:9000 -Dsonar.token=sqp_xxxxx -Dsonar.pullrequest.key=42 -Dsonar.pullrequest.branch=feature/new-api -Dsonar.pullrequest.base=main",
|
|
85
|
+
"sonar-scanner -Dsonar.projectKey=my-project -Dsonar.organization=my-org -Dsonar.host.url=https://sonarcloud.io -Dsonar.token=sqp_xxxxx -Dsonar.pullrequest.key=42 -Dsonar.pullrequest.branch=feature/auth -Dsonar.pullrequest.base=main -Dsonar.pullrequest.provider=github -Dsonar.pullrequest.github.repository=myorg/myrepo"
|
|
86
|
+
]
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"name": "branch",
|
|
90
|
+
"description": "Run analysis for a specific branch (for SonarQube branch analysis or SonarCloud)",
|
|
91
|
+
"args": [],
|
|
92
|
+
"options": [
|
|
93
|
+
{ "name": "-Dsonar.projectKey", "description": "Project key", "type": "string" },
|
|
94
|
+
{ "name": "-Dsonar.host.url", "description": "SonarQube server URL", "type": "string" },
|
|
95
|
+
{ "name": "-Dsonar.token", "description": "Authentication token", "type": "string" },
|
|
96
|
+
{ "name": "-Dsonar.branch.name", "description": "Branch name to analyze", "type": "string" },
|
|
97
|
+
{ "name": "-Dsonar.newCode.referenceBranch", "description": "Reference branch for new code comparison", "type": "string" }
|
|
98
|
+
],
|
|
99
|
+
"examples": [
|
|
100
|
+
"sonar-scanner -Dsonar.projectKey=my-project -Dsonar.host.url=http://localhost:9000 -Dsonar.token=sqp_xxxxx -Dsonar.branch.name=develop",
|
|
101
|
+
"sonar-scanner -Dsonar.projectKey=my-project -Dsonar.host.url=http://localhost:9000 -Dsonar.token=sqp_xxxxx -Dsonar.branch.name=release/v2 -Dsonar.newCode.referenceBranch=main"
|
|
102
|
+
]
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"name": "coverage",
|
|
106
|
+
"description": "Run analysis with external coverage reports (language-specific coverage properties)",
|
|
107
|
+
"args": [],
|
|
108
|
+
"options": [
|
|
109
|
+
{ "name": "-Dsonar.projectKey", "description": "Project key", "type": "string" },
|
|
110
|
+
{ "name": "-Dsonar.host.url", "description": "SonarQube server URL", "type": "string" },
|
|
111
|
+
{ "name": "-Dsonar.token", "description": "Authentication token", "type": "string" },
|
|
112
|
+
{ "name": "-Dsonar.javascript.lcov.reportPaths", "description": "Paths to LCOV coverage reports for JS/TS", "type": "string" },
|
|
113
|
+
{ "name": "-Dsonar.python.coverage.reportPaths", "description": "Paths to Python coverage XML reports", "type": "string" },
|
|
114
|
+
{ "name": "-Dsonar.java.coveragePlugin", "description": "Java coverage plugin: jacoco", "type": "string" },
|
|
115
|
+
{ "name": "-Dsonar.coverage.jacoco.xmlReportPaths", "description": "Paths to JaCoCo XML coverage reports", "type": "string" },
|
|
116
|
+
{ "name": "-Dsonar.go.coverage.reportPaths", "description": "Paths to Go coverage reports", "type": "string" },
|
|
117
|
+
{ "name": "-Dsonar.cs.opencover.reportsPaths", "description": "Paths to C# OpenCover reports", "type": "string" },
|
|
118
|
+
{ "name": "-Dsonar.php.coverage.reportPaths", "description": "Paths to PHP Clover coverage reports", "type": "string" },
|
|
119
|
+
{ "name": "-Dsonar.ruby.coverage.reportPaths", "description": "Paths to Ruby SimpleCov JSON reports", "type": "string" },
|
|
120
|
+
{ "name": "-Dsonar.coverage.exclusions", "description": "Patterns to exclude from coverage", "type": "string" }
|
|
121
|
+
],
|
|
122
|
+
"examples": [
|
|
123
|
+
"sonar-scanner -Dsonar.projectKey=my-js-app -Dsonar.host.url=http://localhost:9000 -Dsonar.token=sqp_xxxxx -Dsonar.javascript.lcov.reportPaths=coverage/lcov.info",
|
|
124
|
+
"sonar-scanner -Dsonar.projectKey=my-java-app -Dsonar.host.url=http://localhost:9000 -Dsonar.token=sqp_xxxxx -Dsonar.coverage.jacoco.xmlReportPaths=target/site/jacoco/jacoco.xml -Dsonar.java.binaries=target/classes",
|
|
125
|
+
"sonar-scanner -Dsonar.projectKey=my-py-app -Dsonar.host.url=http://localhost:9000 -Dsonar.token=sqp_xxxxx -Dsonar.python.coverage.reportPaths=coverage.xml",
|
|
126
|
+
"sonar-scanner -Dsonar.projectKey=my-go-app -Dsonar.host.url=http://localhost:9000 -Dsonar.token=sqp_xxxxx -Dsonar.go.coverage.reportPaths=coverage.out"
|
|
127
|
+
]
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"name": "exclusions",
|
|
131
|
+
"description": "Run analysis with specific file/directory exclusion patterns",
|
|
132
|
+
"args": [],
|
|
133
|
+
"options": [
|
|
134
|
+
{ "name": "-Dsonar.projectKey", "description": "Project key", "type": "string" },
|
|
135
|
+
{ "name": "-Dsonar.host.url", "description": "SonarQube server URL", "type": "string" },
|
|
136
|
+
{ "name": "-Dsonar.token", "description": "Authentication token", "type": "string" },
|
|
137
|
+
{ "name": "-Dsonar.sources", "description": "Source directories", "type": "string" },
|
|
138
|
+
{ "name": "-Dsonar.exclusions", "description": "Patterns to exclude from analysis (e.g., **/*.test.js, **/vendor/**)", "type": "string" },
|
|
139
|
+
{ "name": "-Dsonar.inclusions", "description": "Patterns to include in analysis", "type": "string" },
|
|
140
|
+
{ "name": "-Dsonar.test.exclusions", "description": "Patterns to exclude from test analysis", "type": "string" },
|
|
141
|
+
{ "name": "-Dsonar.coverage.exclusions", "description": "Patterns to exclude from coverage", "type": "string" },
|
|
142
|
+
{ "name": "-Dsonar.cpd.exclusions", "description": "Patterns to exclude from duplication detection", "type": "string" }
|
|
143
|
+
],
|
|
144
|
+
"examples": [
|
|
145
|
+
"sonar-scanner -Dsonar.projectKey=my-project -Dsonar.host.url=http://localhost:9000 -Dsonar.token=sqp_xxxxx -Dsonar.exclusions='**/vendor/**,**/node_modules/**,**/*.test.js'",
|
|
146
|
+
"sonar-scanner -Dsonar.projectKey=my-project -Dsonar.host.url=http://localhost:9000 -Dsonar.token=sqp_xxxxx -Dsonar.coverage.exclusions='**/test/**,**/mock/**' -Dsonar.cpd.exclusions='**/generated/**'"
|
|
147
|
+
]
|
|
148
|
+
}
|
|
149
|
+
],
|
|
150
|
+
"globalOptions": [
|
|
151
|
+
{ "name": "--help", "short": "-h", "description": "Show help information" },
|
|
152
|
+
{ "name": "--version", "description": "Show scanner version" },
|
|
153
|
+
{ "name": "-Dsonar.projectKey", "description": "Unique project identifier in SonarQube/SonarCloud", "type": "string" },
|
|
154
|
+
{ "name": "-Dsonar.organization", "description": "Organization key (required for SonarCloud)", "type": "string" },
|
|
155
|
+
{ "name": "-Dsonar.host.url", "description": "SonarQube server or SonarCloud URL", "type": "string" },
|
|
156
|
+
{ "name": "-Dsonar.token", "description": "Authentication token", "type": "string" },
|
|
157
|
+
{ "name": "-Dsonar.sources", "description": "Comma-separated source directories (relative)", "type": "string" },
|
|
158
|
+
{ "name": "-Dsonar.tests", "description": "Comma-separated test directories", "type": "string" },
|
|
159
|
+
{ "name": "-Dsonar.exclusions", "description": "File patterns to exclude from analysis", "type": "string" },
|
|
160
|
+
{ "name": "-Dsonar.verbose", "description": "Enable verbose/debug logging (true/false)", "type": "string" },
|
|
161
|
+
{ "name": "-Dsonar.log.level", "description": "Log verbosity: TRACE, DEBUG, INFO, WARN", "type": "string" },
|
|
162
|
+
{ "name": "-Dsonar.qualitygate.wait", "description": "Block until quality gate computed (true/false)", "type": "string" },
|
|
163
|
+
{ "name": "-Dsonar.working.directory", "description": "Scanner working directory", "type": "string" },
|
|
164
|
+
{ "name": "-Dsonar.projectBaseDir", "description": "Base directory of the project to analyze", "type": "string" },
|
|
165
|
+
{ "name": "-Dproject.settings", "description": "Path to sonar-project.properties file", "type": "string" }
|
|
166
|
+
],
|
|
167
|
+
"examples": [
|
|
168
|
+
"sonar-scanner -Dsonar.projectKey=my-project -Dsonar.host.url=http://localhost:9000 -Dsonar.token=sqp_xxxxx",
|
|
169
|
+
"sonar-scanner -Dsonar.projectKey=my-project -Dsonar.organization=my-org -Dsonar.host.url=https://sonarcloud.io -Dsonar.token=sqp_xxxxx",
|
|
170
|
+
"sonar-scanner -Dsonar.projectKey=my-project -Dsonar.sources=src -Dsonar.tests=test -Dsonar.host.url=http://localhost:9000 -Dsonar.token=sqp_xxxxx",
|
|
171
|
+
"sonar-scanner -Dsonar.projectKey=my-project -Dsonar.host.url=http://localhost:9000 -Dsonar.token=sqp_xxxxx -Dsonar.qualitygate.wait=true",
|
|
172
|
+
"sonar-scanner -Dsonar.projectKey=my-project -Dsonar.host.url=http://localhost:9000 -Dsonar.token=sqp_xxxxx -Dsonar.pullrequest.key=42 -Dsonar.pullrequest.branch=feature/x -Dsonar.pullrequest.base=main",
|
|
173
|
+
"sonar-scanner -Dsonar.projectKey=my-project -Dsonar.host.url=http://localhost:9000 -Dsonar.token=sqp_xxxxx -Dsonar.branch.name=develop",
|
|
174
|
+
"sonar-scanner -Dsonar.projectKey=my-project -Dsonar.host.url=http://localhost:9000 -Dsonar.token=sqp_xxxxx -Dsonar.exclusions='**/vendor/**,**/node_modules/**'",
|
|
175
|
+
"sonar-scanner -Dsonar.projectKey=my-js-app -Dsonar.host.url=http://localhost:9000 -Dsonar.token=sqp_xxxxx -Dsonar.javascript.lcov.reportPaths=coverage/lcov.info",
|
|
176
|
+
"sonar-scanner -Dsonar.projectKey=my-java-app -Dsonar.host.url=http://localhost:9000 -Dsonar.token=sqp_xxxxx -Dsonar.java.binaries=target/classes -Dsonar.coverage.jacoco.xmlReportPaths=target/site/jacoco/jacoco.xml",
|
|
177
|
+
"sonar-scanner -Dsonar.projectKey=my-project -Dsonar.host.url=http://localhost:9000 -Dsonar.token=sqp_xxxxx -Dsonar.verbose=true -Dsonar.log.level=DEBUG"
|
|
178
|
+
],
|
|
179
|
+
"relatedCommands": ["eslint", "prettier", "trivy"],
|
|
180
|
+
"contextEngine": {
|
|
181
|
+
"detectors": [
|
|
182
|
+
{
|
|
183
|
+
"name": "sonar_properties",
|
|
184
|
+
"description": "Detect sonar-project.properties configuration file",
|
|
185
|
+
"command": "test -f sonar-project.properties && cat sonar-project.properties || echo 'not found'",
|
|
186
|
+
"parser": "lines",
|
|
187
|
+
"cacheFor": 30
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"name": "sonar_scanner_version",
|
|
191
|
+
"description": "Detect installed sonar-scanner version",
|
|
192
|
+
"command": "sonar-scanner --version 2>/dev/null || sonar-scanner.bat --version 2>/dev/null",
|
|
193
|
+
"parser": "lines",
|
|
194
|
+
"cacheFor": 300
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"name": "sonar_project_key",
|
|
198
|
+
"description": "Extract project key from sonar-project.properties",
|
|
199
|
+
"command": "grep 'sonar.projectKey' sonar-project.properties 2>/dev/null",
|
|
200
|
+
"parser": "lines",
|
|
201
|
+
"cacheFor": 60
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"name": "sonar_host_url",
|
|
205
|
+
"description": "Extract SonarQube host URL from configuration",
|
|
206
|
+
"command": "grep 'sonar.host.url' sonar-project.properties 2>/dev/null",
|
|
207
|
+
"parser": "lines",
|
|
208
|
+
"cacheFor": 60
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"name": "project_languages",
|
|
212
|
+
"description": "Detect project languages for scanner configuration hints",
|
|
213
|
+
"command": "ls *.java *.py *.js *.ts *.go *.cs *.rb *.php 2>/dev/null | head -10 || find src -maxdepth 2 -name '*.java' -o -name '*.py' -o -name '*.js' -o -name '*.ts' -o -name '*.go' 2>/dev/null | head -10",
|
|
214
|
+
"parser": "lines",
|
|
215
|
+
"cacheFor": 60
|
|
216
|
+
}
|
|
217
|
+
]
|
|
218
|
+
}
|
|
219
|
+
}
|
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "stripe",
|
|
3
|
+
"description": "Stripe CLI - interact with Stripe via the command line",
|
|
4
|
+
"category": "api-security",
|
|
5
|
+
"platforms": [
|
|
6
|
+
"linux",
|
|
7
|
+
"macos",
|
|
8
|
+
"windows"
|
|
9
|
+
],
|
|
10
|
+
"shells": [
|
|
11
|
+
"bash",
|
|
12
|
+
"zsh",
|
|
13
|
+
"fish",
|
|
14
|
+
"powershell"
|
|
15
|
+
],
|
|
16
|
+
"subcommands": [
|
|
17
|
+
{
|
|
18
|
+
"name": "login",
|
|
19
|
+
"description": "Login to your Stripe Account",
|
|
20
|
+
"args": [],
|
|
21
|
+
"options": [
|
|
22
|
+
{
|
|
23
|
+
"name": "--interactive",
|
|
24
|
+
"short": "-i",
|
|
25
|
+
"description": "Login using the console instead of the browser"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "--project-name",
|
|
29
|
+
"short": "-p",
|
|
30
|
+
"description": "Store configuration under a specific project",
|
|
31
|
+
"type": "string"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"examples": [
|
|
35
|
+
"stripe login",
|
|
36
|
+
"stripe login --interactive"
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"name": "listen",
|
|
41
|
+
"description": "Listen for webhook events",
|
|
42
|
+
"args": [],
|
|
43
|
+
"options": [
|
|
44
|
+
{
|
|
45
|
+
"name": "--events",
|
|
46
|
+
"short": "-e",
|
|
47
|
+
"description": "A comma-separated list of events to listen for (e.g., 'charge.succeeded,customer.created')",
|
|
48
|
+
"type": "string"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "--forward-to",
|
|
52
|
+
"short": "-f",
|
|
53
|
+
"description": "The URL to forward webhook events to (e.g., 'http://localhost:3000/webhook')",
|
|
54
|
+
"type": "string"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "--forward-connect-to",
|
|
58
|
+
"short": "-c",
|
|
59
|
+
"description": "The URL to forward Connect webhook events to",
|
|
60
|
+
"type": "string"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "--print-json",
|
|
64
|
+
"short": "-j",
|
|
65
|
+
"description": "Format output as JSON"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"name": "--skip-verify",
|
|
69
|
+
"short": "-s",
|
|
70
|
+
"description": "Skip certificate verification when forwarding to HTTPS endpoints"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"name": "--use-configured-webhooks",
|
|
74
|
+
"description": "Load webhook endpoint configuration from the API"
|
|
75
|
+
}
|
|
76
|
+
],
|
|
77
|
+
"examples": [
|
|
78
|
+
"stripe listen --forward-to localhost:3000/webhook",
|
|
79
|
+
"stripe listen --events charge.succeeded,charge.failed"
|
|
80
|
+
]
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"name": "trigger",
|
|
84
|
+
"description": "Trigger specific webhook events",
|
|
85
|
+
"args": [
|
|
86
|
+
{
|
|
87
|
+
"name": "<event>",
|
|
88
|
+
"type": "string",
|
|
89
|
+
"required": true,
|
|
90
|
+
"description": "The event to trigger (e.g. charge.succeeded)"
|
|
91
|
+
}
|
|
92
|
+
],
|
|
93
|
+
"options": [
|
|
94
|
+
{
|
|
95
|
+
"name": "--add",
|
|
96
|
+
"description": "A comma-separated list of overrides to apply to the generated payload",
|
|
97
|
+
"type": "string"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"name": "--api-version",
|
|
101
|
+
"description": "The API version to use for the generated event",
|
|
102
|
+
"type": "string"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"name": "--override",
|
|
106
|
+
"description": "A comma-separated list of paths to JSON files containing payload overrides",
|
|
107
|
+
"type": "string"
|
|
108
|
+
}
|
|
109
|
+
],
|
|
110
|
+
"examples": [
|
|
111
|
+
"stripe trigger payment_intent.succeeded",
|
|
112
|
+
"stripe trigger charge.failed --add charge:amount=500"
|
|
113
|
+
]
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"name": "logs",
|
|
117
|
+
"description": "Tail API request logs",
|
|
118
|
+
"args": [
|
|
119
|
+
{
|
|
120
|
+
"name": "tail",
|
|
121
|
+
"type": "string",
|
|
122
|
+
"required": true,
|
|
123
|
+
"description": "Tail the logs"
|
|
124
|
+
}
|
|
125
|
+
],
|
|
126
|
+
"options": [
|
|
127
|
+
{
|
|
128
|
+
"name": "--format",
|
|
129
|
+
"description": "Specifies the output format (default, JSON)",
|
|
130
|
+
"type": "string"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"name": "--filter-account",
|
|
134
|
+
"description": "Filter by account ID",
|
|
135
|
+
"type": "string"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"name": "--filter-api-version",
|
|
139
|
+
"description": "Filter by API version",
|
|
140
|
+
"type": "string"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"name": "--filter-http-method",
|
|
144
|
+
"description": "Filter by HTTP method",
|
|
145
|
+
"type": "string"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"name": "--filter-http-status",
|
|
149
|
+
"description": "Filter by HTTP status",
|
|
150
|
+
"type": "string"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"name": "--filter-request-path",
|
|
154
|
+
"description": "Filter by request path",
|
|
155
|
+
"type": "string"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"name": "--filter-source-ip",
|
|
159
|
+
"description": "Filter by source IP",
|
|
160
|
+
"type": "string"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"name": "--filter-status",
|
|
164
|
+
"description": "Filter by status (succeeded, failed)",
|
|
165
|
+
"type": "string"
|
|
166
|
+
}
|
|
167
|
+
],
|
|
168
|
+
"examples": [
|
|
169
|
+
"stripe logs tail",
|
|
170
|
+
"stripe logs tail --filter-http-method POST --filter-status failed"
|
|
171
|
+
]
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"name": "events",
|
|
175
|
+
"description": "List or replay events",
|
|
176
|
+
"args": [
|
|
177
|
+
{
|
|
178
|
+
"name": "resend",
|
|
179
|
+
"type": "string",
|
|
180
|
+
"required": false,
|
|
181
|
+
"description": "Resend an event"
|
|
182
|
+
}
|
|
183
|
+
],
|
|
184
|
+
"options": [
|
|
185
|
+
{
|
|
186
|
+
"name": "--event",
|
|
187
|
+
"description": "The ID of the event to resend",
|
|
188
|
+
"type": "string"
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"name": "--webhook-endpoint",
|
|
192
|
+
"description": "The ID of the webhook endpoint to resend the event to",
|
|
193
|
+
"type": "string"
|
|
194
|
+
}
|
|
195
|
+
],
|
|
196
|
+
"examples": [
|
|
197
|
+
"stripe events resend evt_12345"
|
|
198
|
+
]
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"name": "customers",
|
|
202
|
+
"description": "Manage customers",
|
|
203
|
+
"args": [
|
|
204
|
+
{
|
|
205
|
+
"name": "create|list|retrieve|update|delete",
|
|
206
|
+
"type": "string",
|
|
207
|
+
"required": true,
|
|
208
|
+
"description": "Action to perform"
|
|
209
|
+
}
|
|
210
|
+
],
|
|
211
|
+
"options": [],
|
|
212
|
+
"examples": [
|
|
213
|
+
"stripe customers list",
|
|
214
|
+
"stripe customers create --email 'test@example.com'"
|
|
215
|
+
]
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"name": "prices",
|
|
219
|
+
"description": "Manage prices",
|
|
220
|
+
"args": [
|
|
221
|
+
{
|
|
222
|
+
"name": "create|list|retrieve|update|delete",
|
|
223
|
+
"type": "string",
|
|
224
|
+
"required": true,
|
|
225
|
+
"description": "Action to perform"
|
|
226
|
+
}
|
|
227
|
+
],
|
|
228
|
+
"options": [],
|
|
229
|
+
"examples": [
|
|
230
|
+
"stripe prices list"
|
|
231
|
+
]
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"name": "products",
|
|
235
|
+
"description": "Manage products",
|
|
236
|
+
"args": [
|
|
237
|
+
{
|
|
238
|
+
"name": "create|list|retrieve|update|delete",
|
|
239
|
+
"type": "string",
|
|
240
|
+
"required": true,
|
|
241
|
+
"description": "Action to perform"
|
|
242
|
+
}
|
|
243
|
+
],
|
|
244
|
+
"options": [],
|
|
245
|
+
"examples": [
|
|
246
|
+
"stripe products list",
|
|
247
|
+
"stripe products create --name 'T-shirt'"
|
|
248
|
+
]
|
|
249
|
+
}
|
|
250
|
+
],
|
|
251
|
+
"globalOptions": [
|
|
252
|
+
{
|
|
253
|
+
"name": "--api-key",
|
|
254
|
+
"description": "Your API key to use for the command",
|
|
255
|
+
"type": "string"
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"name": "--config",
|
|
259
|
+
"description": "Path to your CLI configuration file",
|
|
260
|
+
"type": "path"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"name": "--device-name",
|
|
264
|
+
"description": "A customized device name for your CLI",
|
|
265
|
+
"type": "string"
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"name": "--color",
|
|
269
|
+
"description": "Turn on/off color output (on, off, auto)",
|
|
270
|
+
"type": "string"
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"name": "--log-level",
|
|
274
|
+
"description": "The logging level to use (debug, info, warn, error)",
|
|
275
|
+
"type": "string"
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"name": "--project-name",
|
|
279
|
+
"short": "-p",
|
|
280
|
+
"description": "The project name to read from for config",
|
|
281
|
+
"type": "string"
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"name": "--help",
|
|
285
|
+
"short": "-h",
|
|
286
|
+
"description": "Help for stripe"
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"name": "--version",
|
|
290
|
+
"short": "-v",
|
|
291
|
+
"description": "Version for stripe"
|
|
292
|
+
}
|
|
293
|
+
],
|
|
294
|
+
"examples": [
|
|
295
|
+
"stripe login",
|
|
296
|
+
"stripe listen --forward-to localhost:4242/webhook",
|
|
297
|
+
"stripe trigger payment_intent.succeeded",
|
|
298
|
+
"stripe logs tail"
|
|
299
|
+
],
|
|
300
|
+
"relatedCommands": [
|
|
301
|
+
"curl"
|
|
302
|
+
],
|
|
303
|
+
"contextEngine": {
|
|
304
|
+
"detectors": [
|
|
305
|
+
{
|
|
306
|
+
"name": "stripe_config",
|
|
307
|
+
"description": "Stripe CLI Config",
|
|
308
|
+
"command": "cat ~/.config/stripe/config.toml 2>/dev/null",
|
|
309
|
+
"parser": "text",
|
|
310
|
+
"cacheFor": 3600
|
|
311
|
+
}
|
|
312
|
+
]
|
|
313
|
+
}
|
|
314
|
+
}
|