A command-line app for the Belugas feature detection analysis platform
2.4K
belugas is a command line interface for the Project Feature detection analysis platform. It allows you to run feature detector engines on your local machine inside of Docker containers.
Belugas general architecture was inspired by Code Climate CLI.
belugas is part of the Whales ecosystem: A set of tools to automatically dockerize your applications.
Belugas has a micro-service oriented architecture conformed by the following engines:
Each of these engines is focus to detect multiple features on a project based on a code static analysis.
A feature is an application attribute detected during the static analysis. This analysis is the act of derivating data from code such as programming language, frameworks, service dependencies and so on.
A feature has the following format:
{
"type":"feature",
"name":"Ruby",
"version":"2.4",
"description":"The application uses Ruby code",
"content":"",
"categories":["Gemfile","Gemfile.lock","Rakefile", ...],
"cue_locations":[""],
"engines":["belugas","belugas-ruby"]
}
Where:
The Belugas CLI is distributed and run as a Docker image, so you only need to have Docker installed and running on your machine. The engines that perform the actual analyses are also Docker images.
Fire up your terminal and run
docker pull gueils/belugas:latest
And that's it!
Here's where the magic begins, first of all in your terminal go to the project directory you want to analyze:
cd code/path_to_project/
And then just execute the following command:
docker run \
--interactive --tty --rm \
--env BELUGAS_CODE="$PWD" \
--volume "$PWD":/code \
--volume /var/run/docker.sock:/var/run/docker.sock \
--volume /tmp/fdet:/tmp/fdet \
gueils/belugas:latest analyze . -f json
And voilá! The terminal will stream a json output for each of the features detected
Everyone is freely to collaborate, just make sure you follow our code of conduct. Thank you contributors!
Find a bug and don't know how to fix it? Have trouble following the documentation or have a question about the project? Then by all means, please create an issue.
Just please make sure you check existing issues to see if what you're running into has been addressed already.
That's great! Just follow this steps:
masterOnce you've created a pull request, mainteners will chime in to review your proposed changes and to merged it if everything is right :tada:
That's great also! We already have some open issues for you to dive in.
See LICENSE

Belugas is maintained by Icalia Labs
Content type
Image
Digest
Size
81.1 MB
Last updated
over 8 years ago
docker pull icalialabs/belugas