{"id":15398514,"url":"https://github.com/antiagainst/codeclimate-cppcheck","last_synced_at":"2025-04-15T22:30:41.544Z","repository":{"id":38205821,"uuid":"51974661","full_name":"antiagainst/codeclimate-cppcheck","owner":"antiagainst","description":"Code Climate Engine for Cppcheck","archived":false,"fork":false,"pushed_at":"2023-01-18T23:53:11.000Z","size":29,"stargazers_count":27,"open_issues_count":4,"forks_count":17,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-10T03:44:26.003Z","etag":null,"topics":["climate-engine","codeclimate","cppcheck","static-analysis"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/antiagainst.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-02-18T03:06:57.000Z","updated_at":"2024-11-05T07:52:08.000Z","dependencies_parsed_at":"2023-02-10T19:01:26.724Z","dependency_job_id":null,"html_url":"https://github.com/antiagainst/codeclimate-cppcheck","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/antiagainst%2Fcodeclimate-cppcheck","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antiagainst%2Fcodeclimate-cppcheck/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antiagainst%2Fcodeclimate-cppcheck/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antiagainst%2Fcodeclimate-cppcheck/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/antiagainst","download_url":"https://codeload.github.com/antiagainst/codeclimate-cppcheck/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249165854,"owners_count":21223334,"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":["climate-engine","codeclimate","cppcheck","static-analysis"],"created_at":"2024-10-01T15:44:23.523Z","updated_at":"2025-04-15T22:30:41.283Z","avatar_url":"https://github.com/antiagainst.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Code Climate Cppcheck Engine\n\n`codeclimate-cppcheck` is a Code Climate engine that wraps [Cppcheck][cppcheck].\nYou can run it on your command line using the Code Climate CLI, or on our\nhosted analysis platform.\n\n[Cppcheck][cppcheck] is a static analysis tool for C/C++ code.\n\n## Installation\n\n1. If you haven't already, [install the Code Climate CLI][codeclimate-cli].\n2. [optional] Run `codeclimate engines:install cppcheck` to install the Code\n   Climate Cppcheck engine.\n3. Configure your `.codeclimate.yml` file. See example below.\n4. You're ready to analyze! Browse into your project's folder and run\n   `codeclimate analyze`. If you skipped step 2, the Cppcheck engine will\n   automatically be installed at this point, assuming it's enabled in\n   `.codeclimate.yml`.\n\n## Configuration\n\nLike the `cppcheck` command line tool itself, you can configure various\naspects of the static analysis. Right now, the following options are supported\nin `.codeclimate.yml`:\n\n* `check`: issue categories to check. \n  By default, no additional checks are enabled.\n  Available values are: `all`, `warning`, `style`, `performance`, `portability`,\n  `information`, `unusedFunction`, etc.\n  Refer to the `--enable=` option of `cppcheck` for more information.\n* `project`: use Visual Studio project/solution (`*.vcxproj`/`*sln`) or compile\n  database (`compile_commands.json`) for files to analyse, include paths,\n  defines, platform and undefines.\n  Refer to the `--project=` option of `cppcheck` for more information.\n* `language`: forces `cppcheck` to check all files as the given language.\n  Valid values are: `c`, `c++`.\n  Refer to the `--language=` option of `cppcheck` for more information.\n* `stds`: multiple language standards to check against.\n  Refer to the `--std=` option of `cppcheck` for more information.\n* `platform`: specifies platform specific types and sizes. Available builtin\n  platforms are: `unix32`, `unix64`, `win32A`, `win32W`, `win64`, etc.\n  Refer to the `--platform=` option of `cppcheck` for more information.\n* `library`: specifies library `cfg` files to be loaded. Refer to the \n  `--library=` option of `cppcheck` for more information.\n* `jobs`: specifies the number of jobs for execution Refer to the \n  `-j \u003cjobs\u003e` option of `cppcheck` for more information.\n* `dump`: create dump files during execution.\n  Refer to the `--dump` option of `cppcheck` for more information.\n* `defines`: define preprocessor symbols.\n  Refer to the `-D` option of `cppcheck` for more information.\n* `undefines`: undefine preprocessor symbols.\n  Refer to the `-U` option of `cppcheck` for more information.\n* `includes`: paths for searching include files. First given path is searched\n  for contained header files first. If paths are relative to source files,\n  this is not needed.\n  Refer to the `-I` option of `cppcheck` for more information.\n* `max_configs`: maximum number of configurations to check in a file before\n  skipping it. Default is 12. `max_configs` can also be set to `force`, which\n  forces `cppcheck` to check all configs.\n  Refer to the `--max-configs=` and `--force` options of `cppcheck` for more\n  information.\n* `inconclusive`: allow reporting issues that are not inconclusive.\n  Refer to the `--inconclusive` option of `cppcheck` for more information.\n* `suppressions-list`: suppress warnings listed in the file.\n  Refer to the `--suppressions-list` option of `cppcheck` for more information.\n* `inline-suppr`: allow suppression of warnings with inline comments, \n  for example: `// cppcheck-suppress arrayIndexOutOfBounds`.\n  Refer to the `--inline-suppr` option of `cppcheck` for more information\n\nAdditional options may be supported later.\n\nAn example `.codeclimate.yml` file:\n\n```yaml\nversion: \"2\"\nplugins:\n  cppcheck:\n    enabled: true\n    config:\n      check: all\n      project: compile_commands.json\n      language: c++\n      stds:\n        - c++11\n      platform: unix64\n      defines:\n      - \"DEBUG=1\"\n      - \"__cplusplus\"\n      undefines:\n      - \"DEBUG\"\n      includes:\n      - include/\n      max_configs: 42\n      inconclusive: false\n      dump: false\n      dump: false\n      suppressions-list: .cppcheck-suppressions\n      inline-suppr: true\n      jobs: 4\n      library: googletest\n```\n\n## Need help?\n\nFor help with [Cppcheck][cppcheck], check out their documentation.\n\nIf you're running into a Code Climate issue, first look over this project's\nGitHub Issues, as your question may have already been covered.\nIf not, [go ahead and open a support ticket with us][codeclimate-help].\n\n[cppcheck]: http://cppcheck.sourceforge.net/\n[codeclimate-cli]: https://github.com/codeclimate/codeclimate\n[codeclimate-help]: https://codeclimate.com/help\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantiagainst%2Fcodeclimate-cppcheck","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantiagainst%2Fcodeclimate-cppcheck","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantiagainst%2Fcodeclimate-cppcheck/lists"}