opencode-sonarqube 0.1.1 → 0.1.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.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -20167,7 +20167,7 @@ After fixing, I will re-run the analysis to verify.`;
20167
20167
  });
20168
20168
  if (config2.autoFix && lastAnalysisResult) {
20169
20169
  const state = await getProjectState(getDirectory());
20170
- if (state) {
20170
+ if (state && state.projectKey) {
20171
20171
  const api2 = createSonarQubeAPI(config2, state);
20172
20172
  const issues = await api2.issues.getFormattedIssues({
20173
20173
  projectKey: state.projectKey,
@@ -20238,7 +20238,7 @@ ${statusNote}`;
20238
20238
  }
20239
20239
  try {
20240
20240
  const state = await getProjectState(getDirectory());
20241
- if (!state)
20241
+ if (!state || !state.projectKey)
20242
20242
  return;
20243
20243
  const api2 = createSonarQubeAPI(config2, state);
20244
20244
  const counts = await api2.issues.getCounts(state.projectKey);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-sonarqube",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "OpenCode Plugin for SonarQube integration - Enterprise-level code quality from the start",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",