This module contains all runners for analyzers from the repository. We separated the runners from analyzers since we use the IntelliJ Platform, and the module with runners extensions points should be separated.
The plugin to run various project analysis from the CLI:
- Kotlin's analysers:
java-reflections-analysis
- search for Kava reflections callskotlin-clones-analysis
- command process code clones analysiskotlin-dependencies-analysis
- command process project dependencies and imports analysiskotlin-gradle-dependencies-analysis
- command process Gradle dependencies and imports analysiskotlin-gradle-dependencies-by-modules-analysis
- command process Gradle dependencies and imports analysis by each module in the projectskotlin-gradle-plugins-analysis
- command process Gradle pluginskotlin-gradle-properties-analysis
- command process Gradle propertieskotlin-project-metrics-analysis
- command process projects metricskotlin-ranges-analysis
- command process various ranges implementations usage analysiskotlin-project-tags-analysis
- command process projects from dataset tagging according to theme or content
- Python's analysers:
python-call-expressions-analysis
- command process python call expressions analysispython-imports-analysis
- command process python imports analysis
To run analysis execute task 'cli' with analysis runner name and args:
gradle :lupa-runner:cli -Prunner="analysis-key" -Pinput="path/to/dir/with/projects" -Poutput="path/to/dir/with/results"
where analysis-key
is a key from the list of the analysers.
- Python's analysers:
-
python-call-expressions-analysis
:gradle :lupa-runner:python-cli -Prunner="python-call-expressions-analysis" -Pinput="path/to/dir/with/projects" -Poutput="path/to/dir/with/results" -Pvenv="path/to/venv"
Note: if you don't want to run the analysis with a virtual environment, just pass an empty string as path. For example:
-Pvenv=""
.Note: if an empty string is passed to the
--Pvenv
argument and the project root contains the.venv
folder, the virtual environment will be set up from it. -
gradle :lupa-runner:cli -Prunner="python-imports-analysis" -Pinput="path/to/dir/with/projects" -Poutput="path/to/dir/with/results"
-