Skip to content

refactor: run source code analysis by default #1107

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions docs/source/pages/cli_usage/command_analyze.rst
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,7 @@ Options

.. option:: --force-analyze-source

Forces PyPI sourcecode analysis to run regardless of other heuristic results. Requires '--analyze-source'.

.. option:: --analyze-source

For improved malware detection, analyze the source code of the (PyPI) package using a textual scan and dataflow analysis.
Forces PyPI sourcecode analysis to run regardless of other heuristic results.

-----------
Environment
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ macaron.code\_analyzer package

.. automodule:: macaron.code_analyzer
:members:
:undoc-members:
:show-inheritance:
:undoc-members:

Submodules
----------
Expand All @@ -14,5 +14,5 @@ macaron.code\_analyzer.call\_graph module

.. automodule:: macaron.code_analyzer.call_graph
:members:
:undoc-members:
:show-inheritance:
:undoc-members:
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ macaron.config package

.. automodule:: macaron.config
:members:
:undoc-members:
:show-inheritance:
:undoc-members:

Submodules
----------
Expand All @@ -14,21 +14,21 @@ macaron.config.defaults module

.. automodule:: macaron.config.defaults
:members:
:undoc-members:
:show-inheritance:
:undoc-members:

macaron.config.global\_config module
------------------------------------

.. automodule:: macaron.config.global_config
:members:
:undoc-members:
:show-inheritance:
:undoc-members:

macaron.config.target\_config module
------------------------------------

.. automodule:: macaron.config.target_config
:members:
:undoc-members:
:show-inheritance:
:undoc-members:
10 changes: 5 additions & 5 deletions docs/source/pages/developers_guide/apidoc/macaron.database.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ macaron.database package

.. automodule:: macaron.database
:members:
:undoc-members:
:show-inheritance:
:undoc-members:

Submodules
----------
Expand All @@ -14,29 +14,29 @@ macaron.database.database\_manager module

.. automodule:: macaron.database.database_manager
:members:
:undoc-members:
:show-inheritance:
:undoc-members:

macaron.database.db\_custom\_types module
-----------------------------------------

.. automodule:: macaron.database.db_custom_types
:members:
:undoc-members:
:show-inheritance:
:undoc-members:

macaron.database.table\_definitions module
------------------------------------------

.. automodule:: macaron.database.table_definitions
:members:
:undoc-members:
:show-inheritance:
:undoc-members:

macaron.database.views module
-----------------------------

.. automodule:: macaron.database.views
:members:
:undoc-members:
:show-inheritance:
:undoc-members:
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ macaron.dependency\_analyzer package

.. automodule:: macaron.dependency_analyzer
:members:
:undoc-members:
:show-inheritance:
:undoc-members:

Submodules
----------
Expand All @@ -14,29 +14,29 @@ macaron.dependency\_analyzer.cyclonedx module

.. automodule:: macaron.dependency_analyzer.cyclonedx
:members:
:undoc-members:
:show-inheritance:
:undoc-members:

macaron.dependency\_analyzer.cyclonedx\_gradle module
-----------------------------------------------------

.. automodule:: macaron.dependency_analyzer.cyclonedx_gradle
:members:
:undoc-members:
:show-inheritance:
:undoc-members:

macaron.dependency\_analyzer.cyclonedx\_mvn module
--------------------------------------------------

.. automodule:: macaron.dependency_analyzer.cyclonedx_mvn
:members:
:undoc-members:
:show-inheritance:
:undoc-members:

macaron.dependency\_analyzer.cyclonedx\_python module
-----------------------------------------------------

.. automodule:: macaron.dependency_analyzer.cyclonedx_python
:members:
:undoc-members:
:show-inheritance:
:undoc-members:
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ macaron.malware\_analyzer.pypi\_heuristics.metadata package

.. automodule:: macaron.malware_analyzer.pypi_heuristics.metadata
:members:
:undoc-members:
:show-inheritance:
:undoc-members:

Submodules
----------
Expand All @@ -14,61 +14,69 @@ macaron.malware\_analyzer.pypi\_heuristics.metadata.anomalous\_version module

.. automodule:: macaron.malware_analyzer.pypi_heuristics.metadata.anomalous_version
:members:
:undoc-members:
:show-inheritance:
:undoc-members:

macaron.malware\_analyzer.pypi\_heuristics.metadata.closer\_release\_join\_date module
--------------------------------------------------------------------------------------

.. automodule:: macaron.malware_analyzer.pypi_heuristics.metadata.closer_release_join_date
:members:
:undoc-members:
:show-inheritance:
:undoc-members:

macaron.malware\_analyzer.pypi\_heuristics.metadata.empty\_project\_link module
-------------------------------------------------------------------------------

.. automodule:: macaron.malware_analyzer.pypi_heuristics.metadata.empty_project_link
:members:
:undoc-members:
:show-inheritance:
:undoc-members:

macaron.malware\_analyzer.pypi\_heuristics.metadata.high\_release\_frequency module
-----------------------------------------------------------------------------------

.. automodule:: macaron.malware_analyzer.pypi_heuristics.metadata.high_release_frequency
:members:
:undoc-members:
:show-inheritance:
:undoc-members:

macaron.malware\_analyzer.pypi\_heuristics.metadata.one\_release module
-----------------------------------------------------------------------

.. automodule:: macaron.malware_analyzer.pypi_heuristics.metadata.one_release
:members:
:undoc-members:
:show-inheritance:
:undoc-members:

macaron.malware\_analyzer.pypi\_heuristics.metadata.source\_code\_repo module
-----------------------------------------------------------------------------

.. automodule:: macaron.malware_analyzer.pypi_heuristics.metadata.source_code_repo
:members:
:show-inheritance:
:undoc-members:

macaron.malware\_analyzer.pypi\_heuristics.metadata.typosquatting\_presence module
----------------------------------------------------------------------------------

.. automodule:: macaron.malware_analyzer.pypi_heuristics.metadata.typosquatting_presence
:members:
:show-inheritance:
:undoc-members:

macaron.malware\_analyzer.pypi\_heuristics.metadata.unchanged\_release module
-----------------------------------------------------------------------------

.. automodule:: macaron.malware_analyzer.pypi_heuristics.metadata.unchanged_release
:members:
:undoc-members:
:show-inheritance:
:undoc-members:

macaron.malware\_analyzer.pypi\_heuristics.metadata.wheel\_absence module
-------------------------------------------------------------------------

.. automodule:: macaron.malware_analyzer.pypi_heuristics.metadata.wheel_absence
:members:
:undoc-members:
:show-inheritance:
:undoc-members:
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ macaron.malware\_analyzer.pypi\_heuristics package

.. automodule:: macaron.malware_analyzer.pypi_heuristics
:members:
:undoc-members:
:show-inheritance:
:undoc-members:

Subpackages
-----------
Expand All @@ -23,13 +23,13 @@ macaron.malware\_analyzer.pypi\_heuristics.base\_analyzer module

.. automodule:: macaron.malware_analyzer.pypi_heuristics.base_analyzer
:members:
:undoc-members:
:show-inheritance:
:undoc-members:

macaron.malware\_analyzer.pypi\_heuristics.heuristics module
------------------------------------------------------------

.. automodule:: macaron.malware_analyzer.pypi_heuristics.heuristics
:members:
:undoc-members:
:show-inheritance:
:undoc-members:
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ macaron.malware\_analyzer.pypi\_heuristics.sourcecode package

.. automodule:: macaron.malware_analyzer.pypi_heuristics.sourcecode
:members:
:undoc-members:
:show-inheritance:
:undoc-members:

Submodules
----------
Expand All @@ -14,13 +14,13 @@ macaron.malware\_analyzer.pypi\_heuristics.sourcecode.pypi\_sourcecode\_analyzer

.. automodule:: macaron.malware_analyzer.pypi_heuristics.sourcecode.pypi_sourcecode_analyzer
:members:
:undoc-members:
:show-inheritance:
:undoc-members:

macaron.malware\_analyzer.pypi\_heuristics.sourcecode.suspicious\_setup module
------------------------------------------------------------------------------

.. automodule:: macaron.malware_analyzer.pypi_heuristics.sourcecode.suspicious_setup
:members:
:undoc-members:
:show-inheritance:
:undoc-members:
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ macaron.malware\_analyzer package

.. automodule:: macaron.malware_analyzer
:members:
:undoc-members:
:show-inheritance:
:undoc-members:

Subpackages
-----------
Expand All @@ -22,5 +22,5 @@ macaron.malware\_analyzer.datetime\_parser module

.. automodule:: macaron.malware_analyzer.datetime_parser
:members:
:undoc-members:
:show-inheritance:
:undoc-members:
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ macaron.output\_reporter package

.. automodule:: macaron.output_reporter
:members:
:undoc-members:
:show-inheritance:
:undoc-members:

Submodules
----------
Expand All @@ -14,29 +14,29 @@ macaron.output\_reporter.jinja2\_extensions module

.. automodule:: macaron.output_reporter.jinja2_extensions
:members:
:undoc-members:
:show-inheritance:
:undoc-members:

macaron.output\_reporter.reporter module
----------------------------------------

.. automodule:: macaron.output_reporter.reporter
:members:
:undoc-members:
:show-inheritance:
:undoc-members:

macaron.output\_reporter.results module
---------------------------------------

.. automodule:: macaron.output_reporter.results
:members:
:undoc-members:
:show-inheritance:
:undoc-members:

macaron.output\_reporter.scm module
-----------------------------------

.. automodule:: macaron.output_reporter.scm
:members:
:undoc-members:
:show-inheritance:
:undoc-members:
10 changes: 5 additions & 5 deletions docs/source/pages/developers_guide/apidoc/macaron.parsers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ macaron.parsers package

.. automodule:: macaron.parsers
:members:
:undoc-members:
:show-inheritance:
:undoc-members:

Subpackages
-----------
Expand All @@ -22,29 +22,29 @@ macaron.parsers.actionparser module

.. automodule:: macaron.parsers.actionparser
:members:
:undoc-members:
:show-inheritance:
:undoc-members:

macaron.parsers.bashparser module
---------------------------------

.. automodule:: macaron.parsers.bashparser
:members:
:undoc-members:
:show-inheritance:
:undoc-members:

macaron.parsers.github\_workflow\_model module
----------------------------------------------

.. automodule:: macaron.parsers.github_workflow_model
:members:
:undoc-members:
:show-inheritance:
:undoc-members:

macaron.parsers.pomparser module
--------------------------------

.. automodule:: macaron.parsers.pomparser
:members:
:undoc-members:
:show-inheritance:
:undoc-members:
Loading
Loading