This repository has been archived by the owner. It is now read-only.
Tooling & Docker Definition for running Ameba on Codacy
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs Upgrade to Ameba v0.9.0 Jan 9, 2019
spec Handle unparsable files Dec 24, 2018
src Handle unparsable files Dec 24, 2018
.dockerignore Cover all patterns by tests Dec 24, 2018
.editorconfig Initial commit Nov 25, 2018
.gitignore Generate descriptions.json Dec 8, 2018
.travis.yml Enable all rules Dec 24, 2018
Dockerfile Use crystal official image as a builder Dec 24, 2018
LICENSE Initial commit Nov 25, 2018
README.md Upgrade to Ameba v0.9.0 Jan 9, 2019
shard.lock Upgrade to Ameba v0.9.0 Jan 9, 2019
shard.yml Upgrade to Ameba v0.9.0 Jan 9, 2019

README.md

Codacy Ameba

Build Status Codacy Badge

Tooling & Docker Definition for running Ameba on Codacy

Implements the Tool Developer Guide

Usage

Build the docker image

docker build . -t ameba/codacy

Run on a project

docker run -it -v $srcDir:/src ameba/codacy

Regenerate docs folder:

shards install
crystal src/generate.cr

Testing

Run regular unit tests: crystal spec

Run Codacy Plugin Tests against the docker image:

# In codacy-ameba
docker build . -t ameba/codacy:latest

# in codacy-plugins-test
sbt "runMain codacy.plugins.DockerTest all ameba/codacy:latest"

Bump versions

  • Crystal version should be updated in Dockerfile file (version of the image).
  • Ameba version should be updated in shard.yml/shard.lock files.

What is Codacy

Codacy is an Automated Code Review Tool that monitors your technical debt, helps you improve your code quality, teaches best practices to your developers, and helps you save time in Code Reviews.

Among Codacy’s features

  • Identify new Static Analysis issues
  • Commit and Pull Request Analysis with GitHub, BitBucket/Stash, GitLab (and also direct git repositories)
  • Auto-comments on Commits and Pull Requests
  • Integrations with Slack, HipChat, Jira, YouTrack
  • Track issues in Code Style, Security, Error Proneness, Performance, Unused Code and other categories

Codacy also helps keep track of Code Coverage, Code Duplication, and Code Complexity.

Codacy supports PHP, Python, Ruby, Java, JavaScript, and Scala, among others.

Contributing

  1. Fork it (https://github.com/your-github-user/codacy-ameba/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors