Skip to main content

source-inspector

Project description

source-inspector is a set of utilities to inspect and analyze source code and collect interesting data using various tools such as code symbols and strings. This is also a ScanCode-toolkit plugin.

Homepage: https://github.com/nexB/source-inspector License: Apache-2.0

Requirements

This utility is designed to work on Linux and POSIX OS with these utilities:

  • xgettext that comes with GNU gettext.

  • universal ctags, version 5.9 or higher, built with JSON support.

On Debian systems run this:

sudo apt-get install universal-ctags gettext

On MacOS systems run this:

brew install universal-ctags gettext

To get started:

  1. Clone this repo

  2. Run:

    ./configure --dev
    source venv/bin/activate
  3. Run tests with:

    pytest -vvs
  4. Run a basic scan to collect symbols and display as YAML on screen:

    scancode --source-symbol tests/data/symbols_ctags/test3.cpp --yaml -
  5. Run a basic scan to collect strings and display as YAML on screen:

    scancode --source-string tests/data/symbols_ctags/test3.cpp --yaml -

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

source_inspector-0.5.0.tar.gz (449.6 kB view hashes)

Uploaded Source

Built Distribution

source_inspector-0.5.0-py3-none-any.whl (17.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page