{"id":27958078,"url":"https://github.com/ericsson/codecheckereclipseplugin","last_synced_at":"2025-07-11T01:39:59.138Z","repository":{"id":53765253,"uuid":"62384106","full_name":"Ericsson/CodeCheckerEclipsePlugin","owner":"Ericsson","description":"This is an Eclipse plugin that shows C/C++  static analysis results found by Clang Static Analyzer and Clang Tidy","archived":false,"fork":false,"pushed_at":"2020-01-23T17:55:33.000Z","size":1663,"stargazers_count":32,"open_issues_count":43,"forks_count":13,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-05-07T18:16:18.591Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"epl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Ericsson.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-07-01T10:06:31.000Z","updated_at":"2025-02-20T15:31:02.000Z","dependencies_parsed_at":"2022-09-14T13:00:33.448Z","dependency_job_id":null,"html_url":"https://github.com/Ericsson/CodeCheckerEclipsePlugin","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/Ericsson/CodeCheckerEclipsePlugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ericsson%2FCodeCheckerEclipsePlugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ericsson%2FCodeCheckerEclipsePlugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ericsson%2FCodeCheckerEclipsePlugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ericsson%2FCodeCheckerEclipsePlugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ericsson","download_url":"https://codeload.github.com/Ericsson/CodeCheckerEclipsePlugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ericsson%2FCodeCheckerEclipsePlugin/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264705600,"owners_count":23652156,"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":[],"created_at":"2025-05-07T18:16:16.236Z","updated_at":"2025-07-11T01:39:59.090Z","avatar_url":"https://github.com/Ericsson.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CodeChecker Eclipse Plugin\n\n[![Build Status](https://travis-ci.org/Ericsson/CodeCheckerEclipsePlugin.svg?branch=master)](https://travis-ci.org/Ericsson/CodeCheckerEclipsePlugin)\n\nThis is a C/C++ code analysis plugin for Eclipse that shows bugs detected by the [Clang Static Analyzer](http://clang-analyzer.llvm.org/) and [Clang Tidy](http://clang.llvm.org/extra/clang-tidy/) analyzers, using [CodeChecker](https://github.com/Ericsson/codechecker) as a backend,\n\n## Requirements\n\n* Linux operating system\n\n* Recent [CodeChecker](https://github.com/Ericsson/codechecker) (6.8.0 and up)\n\n* Every eclipse version since [Phtoton](https://www.eclipse.org/downloads/packages/release/photon/r) (v4.8.0) is supported\n  * Should work with v4.7.0 Oxygen, but this version is untested currently.\n\n* Eclipse CDT\n\n* Java SE 1.8 (for building, an equivalent jdk).\n\n## Build and install CodeChecker Eclipse Plugin\n\n### Build\n\nRun `mvn -f mavendeps/pom.xml p2:site \u0026\u0026 mvn clean verify` in the root of the project.\n\n### Install\n\n* Add the generated update site thats located under `path/to/cloned/project/releng/org.codechecker.eclipse.update/target/repository/` to `Help -\u003e Install New Software...` in Eclipse\n  * Alternatively, use the archive from the Releases page, as an update site.\n* Select the newly added repository if not already selected\n* Mark CodeChecker Eclipse Plugin then hit next.\n* If an alert box comes up with unsigned content. Just accept it.\n\n## How to use\nMake sure that before staring Eclipse:\n\n* CodeChecker/bin directory is included in PATH (e.g.: `export PATH=\"/home/\u003cusername\u003e/CodeChecker/bin/:$PATH\"`)\n\n__Currently the plugin is only usable with a CDT project.__\n\n#### 1. Setup Perspective\nIn Eclipse, select Window, Perspectives, and activate the CodeChecker perspective.\nAlternatively, you can manually add the two windows under the CodeChecker category into any perspective, using the Window - Views menu.  \n__Make sure to check if CDT is installed properly if you do not see the CodeChecker perspective on the list!__\n\n![Window-\u003ePerspective-\u003eOpen Perspective-\u003eOther](docs/allperspective.png)\n\n#### 2. Setup Nature\nThe plugin is activated on a per project basis, first you have to add the __CodeChecker Nature__ to a CDT project using the projects context menu in the project explorer with `Add CodeChecker Nature` command.\n\n![CodeChecker Nature Add](docs/nature.png)\n\n#### 3. Configure CodeChecker and checkers\n\nAfter the __CodeChecker Nature__  is added to the the project, the plugin can be configured globally in `Window -\u003e Preferences -\u003e CodeChecker` panel, or for the individual project, from the `right click context menu -\u003e Properties -\u003e CodeChecker` page.\nIn the first section, you select how and which CodeChecker will be used. After that set some analysis related settings. You should build CodeChecker in a __standalone package__ configuration.\n\n``` bash\ncd codechecker\nmake standalone_package\nexport PATH=$PWD/build/CodeChecker/bin:$PATH\n```\n\nThen add it to the PATH environment variable, and use the Search in PATH option. Alternatively you can specify a different instance with the Pre built package option. But be aware that the plugin not supports virtual environment, that CodeChecker needs in the default configuration. You can download and compile CodeChecker from [here](https://github.com/Ericsson/codechecker).\n\nTo specify checkers or profiles, please add them to the Extra analysis options field.\n\nAt the bottom the command that is similar to that to be executed is displayed, for easier commandline reproduction.\n\n![CodeChecker Configure](docs/config.png)\n\nAfter the plugin is successfully configured for a project, it'll listen to build events, and automatically rechecks the project with CodeChecker when needed.\n\n#### 4. Analyze C/C++ project and view results\n\nBy default the plugin displays the problems related to the currently selected file on the current file reports view. Here the viewer can decide to check the individual reports selected from the reports tree, and view the related bug-path. Double clicking on a bug-path item will jump and set the cursor to that line in the editor.\n\nThe analysis is triggered when opening a file, or on a file save event, for that particular file. Currently there is no full project analysis. *Please note that codechecker will only show analysis results for files that you built. in the Current project View*\n\n![CodeChecker Runtime Example](docs/example.png)\n\n## Contributing\n\nFor further information see [developer documentation](docs/developer.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericsson%2Fcodecheckereclipseplugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericsson%2Fcodecheckereclipseplugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericsson%2Fcodecheckereclipseplugin/lists"}