{"id":15954366,"url":"https://github.com/froque/sonar-switch-parse-error","last_synced_at":"2026-04-29T14:33:37.136Z","repository":{"id":87255186,"uuid":"589702889","full_name":"froque/sonar-switch-parse-error","owner":"froque","description":null,"archived":false,"fork":false,"pushed_at":"2023-02-16T16:33:23.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-09T17:17:18.940Z","etag":null,"topics":["maven","sonarqube"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/froque.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-16T18:30:37.000Z","updated_at":"2023-01-17T11:16:00.000Z","dependencies_parsed_at":"2023-05-27T03:15:07.592Z","dependency_job_id":null,"html_url":"https://github.com/froque/sonar-switch-parse-error","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/froque%2Fsonar-switch-parse-error","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/froque%2Fsonar-switch-parse-error/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/froque%2Fsonar-switch-parse-error/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/froque%2Fsonar-switch-parse-error/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/froque","download_url":"https://codeload.github.com/froque/sonar-switch-parse-error/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247128737,"owners_count":20888234,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["maven","sonarqube"],"created_at":"2024-10-07T13:17:12.092Z","updated_at":"2026-04-29T14:33:32.106Z","avatar_url":"https://github.com/froque.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n## To reproduce\n\n * https://community.sonarsource.com/t/error-unable-to-parse-source-file-a-switch-expression-should-have-a-default-case/81431\n \n### Start SonarQube\n```\ndocker run -d --rm \\\n    --name sonarqube \\\n    -e SONAR_ES_BOOTSTRAP_CHECKS_DISABLE=true \\\n    -p 9000:9000 \\\n    sonarqube:9.8.0-community\n```\n\n### Unable to parse source file error\n\n```\n/opt/maven/apache-maven-3.8.7/bin/mvn -q clean package\n/opt/maven/apache-maven-3.8.7/bin/mvn -q sonar:sonar \\\n    -Dsonar.host.url=http://localhost:9000 \\\n    -Dsonar.login=admin \\\n    -Dsonar.password=admin\n[ERROR] Unable to parse source file : 'module2/src/main/java/org/example/module2/Foo1.java'\n[ERROR] Parse error at line 8 column 17: A switch expression should have a default case\n```\n\n### No error\n\n```\n/opt/maven/apache-maven-3.8.7/bin/mvn -q clean package sonar:sonar \\\n    -Dsonar.host.url=http://localhost:9000 \\\n    -Dsonar.login=admin \\\n    -Dsonar.password=admin\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffroque%2Fsonar-switch-parse-error","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffroque%2Fsonar-switch-parse-error","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffroque%2Fsonar-switch-parse-error/lists"}