https://github.com/chrismattmann/drat
The Distributed Release Audit Tool (DRAT) for code analysis and verification.
https://github.com/chrismattmann/drat
license-checking mime oss rat tika tika-python
Last synced: 7 months ago
JSON representation
The Distributed Release Audit Tool (DRAT) for code analysis and verification.
- Host: GitHub
- URL: https://github.com/chrismattmann/drat
- Owner: chrismattmann
- License: apache-2.0
- Created: 2020-08-15T19:00:20.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-07-20T08:52:41.000Z (about 2 years ago)
- Last Synced: 2025-03-21T16:11:07.132Z (7 months ago)
- Topics: license-checking, mime, oss, rat, tika, tika-python
- Language: JavaScript
- Homepage: http://chrismattmann.github.io/drat/
- Size: 94.7 MB
- Stars: 9
- Watchers: 0
- Forks: 1
- Open Issues: 21
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Distributed Release Audit Tool (DRAT)
====
A distributed, parallelized (Map Reduce) wrapper around [Apache RAT™](http://creadur.apache.org/rat/) (Release Audit Tool). RAT is used to check for proper licensing in software projects. However, RAT takes a prohibitively long time to analyze large repositories of code, since it can only run on one JVM. Furthermore, RAT isn't customizable by file type or file size and provides no incremental output. This wrapper dramatically speeds up the process by leveraging Apache OODT™ to parallelize and workflow the following components:1. Apache Solr™ based exploration of a CM repository (e.g., Git, SVN, etc.) and classification of that repository based on MIME type using Apache Tika™.
2. A MIME partitioner that uses Apache Tika™ to automatically deduce and classify by file type and then partition Apache RAT™ jobs based on sets of 100 files per type (configurable) -- the M/R "partitioner"
3. A throttle wrapper for RAT to MIME targeted Apache™ RAT. -- the M/R "mapper"
4. A reducer to "combine" the produced RAT logs together into a global RAT report that can be used for stats generation. -- the M/R "reducer"See the wiki for more information on installing and running DRAT:
* [Installation instructions](https://github.com/chrismattmann/drat/wiki/Installation)
* [How to run](https://github.com/chrismattmann/drat/wiki/How-to-Run)
* [How to re-run](https://github.com/chrismattmann/drat/wiki/Re-running-DRAT)
* [How to interact with DRAT](https://github.com/chrismattmann/drat/wiki/Interacting-with-DRAT)
* [Vagrant setup](https://github.com/chrismattmann/drat/wiki/Vagrant)
* [Excluding files from analysis](https://github.com/chrismattmann/drat/wiki/RegEx-exclude-file)
* [Running DRAT on multiple repositories](https://github.com/chrismattmann/drat/wiki/DRAT-Sequential)
* [Running the DRAT Proteus GUI](https://github.com/chrismattmann/drat/wiki/Proteus---A-GUI-for-DRAT)You can clone the wiki by running
`git clone https://github.com/chrismattmann/drat.wiki.git`Visit our new website [chrismattmann.github.io/drat](https://chrismattmann.github.io/drat/) at [Github](https://github.com/).
---
Current build status: [](https://travis-ci.org/chrismattmann/drat)