AI Slop Code RIsk Monitor

google/magika

Fast and accurate AI powered file content types detection

5.3 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for google/magika, a Rust project with 18,705 GitHub stars. SynthScan examined 82,179 lines of code across 394 source files, recording 316 pattern matches distributed across 13 syntactic categories. The legacy adjusted pattern signal is 5.3 (Moderate pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

5.3
Adjusted Signal
5.3
Raw Pattern Score
100%
Time Factor
2026-10-09
Last Push
18.7K
Stars
Rust
Language
82.2K
Lines of Code
394
Files
316
Pattern Hits
2026-10-12
Scan Date
0.02
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 12.8/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 225 finding(s).

Hallucinated Dependency & Supply Chain Risk 3.1/100 · LOW

Are imports declared and package/API names verified? 37 finding(s).

Agent Over-Engineering Ratio 12.6/100 · LOW

Are wrappers, guards, and repeated structures necessary? 124 finding(s).

PR Review Velocity Impact 23.5/100 · LOW

Which changes need focused human review? 316 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 6MEDIUM 47LOW 263

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 316 distinct pattern matches across 13 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Over-Commented Block141 hits · 140 pts
SeverityFileLineSnippetContext
LOWpython/tests/test_magika_python_module.py1# Copyright 2024 Google LLCCOMMENT
LOWpython/tests/utils.py1# Copyright 2024 Google LLCCOMMENT
LOWpython/scripts/sync.py1#!/usr/bin/env python3COMMENT
LOWpython/scripts/sync.py61 update_js_content_type_files()COMMENT
LOWpython/scripts/sync.py141//COMMENT
LOWpython/scripts/run_phases_1_to_3.sh1#!/usr/bin/env bashCOMMENT
LOWpython/scripts/run_phases_1_to_3.sh21# Phase 1: Local Development & Workspace Checks (On This Machine)COMMENT
LOWpython/scripts/check_copyright.py1# Copyright 2025 Google LLCCOMMENT
LOWpython/scripts/run_quick_test_magika_module.py1#!/usr/bin/env python3COMMENT
LOWpython/scripts/check_source.sh1#!/bin/bashCOMMENT
LOWpython/scripts/check_changelog.sh1#!/bin/bashCOMMENT
LOWpython/scripts/pre_release_check.py1#!/usr/bin/env python3COMMENT
LOWpython/scripts/test_magika_model.py1#!/usr/bin/env python3COMMENT
LOWpython/scripts/build_wheel.sh1#!/bin/bashCOMMENT
LOWpython/scripts/run_quick_test_magika_cli.py1#!/usr/bin/env python3COMMENT
LOWpython/scripts/build_and_stage_cli.sh1#!/bin/bashCOMMENT
LOWpython/scripts/build_and_stage_cli.sh21# ----------------------------------------COMMENT
LOWpython/scripts/build_and_stage_cli.sh41#COMMENT
LOWpython/scripts/generate_reference.py1# Copyright 2025 Google LLCCOMMENT
LOWpython/scripts/check_documentation.py1# Copyright 2025 Google LLCCOMMENT
LOWpython/scripts/sync_dev.sh1#!/bin/bashCOMMENT
LOWpython/src/magika/magika.py1# Copyright 2024 Google LLCCOMMENT
LOWpython/src/magika/__init__.py1# Copyright 2024 Google LLCCOMMENT
LOWpython/src/magika/logger.py1# Copyright 2024 Google LLCCOMMENT
LOWpython/src/magika/colors.py1# Copyright 2024 Google LLCCOMMENT
LOWpython/src/magika/types/prediction_mode.py1# Copyright 2024 Google LLCCOMMENT
LOWpython/src/magika/types/magika_error.py1# Copyright 2025 Google LLCCOMMENT
LOWpython/src/magika/types/content_type_info.py1# Copyright 2025 Google LLCCOMMENT
LOWpython/src/magika/types/__init__.py1# Copyright 2024 Google LLCCOMMENT
LOWpython/src/magika/types/content_type_label.py1# Copyright 2024 Google LLCCOMMENT
LOWpython/src/magika/types/overwrite_reason.py1# Copyright 2024 Google LLCCOMMENT
LOWpython/src/magika/types/magika_prediction.py1# Copyright 2024 Google LLCCOMMENT
LOWpython/src/magika/types/magika_result.py1# Copyright 2024 Google LLCCOMMENT
LOWpython/src/magika/types/strenum.py1# Copyright 2025 Google LLCCOMMENT
LOWpython/src/magika/types/status.py1# Copyright 2024 Google LLCCOMMENT
LOWjs/magika-cli.ts1#! /usr/bin/env nodeCOMMENT
LOWjs/magika-node.ts1// Copyright 2024 Google LLCCOMMENT
LOWjs/magika.ts1// Copyright 2024 Google LLCCOMMENT
LOWjs/test/tfnHook.ts1// Copyright 2024 Google LLCCOMMENT
LOWjs/test/magika-cli.test.ts1// Copyright 2024 Google LLCCOMMENT
LOWjs/test/inference-vs-reference.test.ts1// Copyright 2024 Google LLCCOMMENT
LOWjs/test/utils.ts1// Copyright 2024 Google LLCCOMMENT
LOWjs/test/features-extraction-vs-reference.test.ts1// Copyright 2024 Google LLCCOMMENT
LOWjs/test/magika.test.ts1// Copyright 2024 Google LLCCOMMENT
LOWjs/src/model-prediction.ts1// Copyright 2024 Google LLCCOMMENT
LOWjs/src/content-type-info.ts1// Copyright 2024 Google LLCCOMMENT
LOWjs/src/status.ts1// Copyright 2024 Google LLCCOMMENT
LOWjs/src/magika-prediction.ts1// Copyright 2024 Google LLCCOMMENT
LOWjs/src/model-node.ts1// Copyright 2024 Google LLCCOMMENT
LOWjs/src/magika-result.ts1// Copyright 2024 Google LLCCOMMENT
LOWjs/src/overwrite-reason.ts1// Copyright 2024 Google LLCCOMMENT
LOWjs/src/model.ts1// Copyright 2024 Google LLCCOMMENT
LOWjs/src/content-types-infos.ts1// Copyright 2024 Google LLCCOMMENT
LOWjs/src/prediction-mode.ts1// Copyright 2024 Google LLCCOMMENT
LOWjs/src/magika-options.ts1// Copyright 2024 Google LLCCOMMENT
LOWjs/src/content-type-label.ts1// Copyright 2024 Google LLCCOMMENT
LOWjs/src/model-config-node.ts1// Copyright 2024 Google LLCCOMMENT
LOWjs/src/model-features.ts1// Copyright 2024 Google LLCCOMMENT
LOWjs/src/model-config.ts1// Copyright 2024 Google LLCCOMMENT
LOWrust/changelog.sh1#!/bin/shCOMMENT
81 more matches not shown…
Decorative Section Separators43 hits · 134 pts
SeverityFileLineSnippetContext
MEDIUM⚡python/scripts/run_phases_1_to_3.sh46# ==============================================================================COMMENT
MEDIUM⚡python/scripts/run_phases_1_to_3.sh50# ------------------------------------------------------------------------------COMMENT
MEDIUM⚡python/scripts/run_phases_1_to_3.sh52# ------------------------------------------------------------------------------COMMENT
MEDIUM⚡python/scripts/run_phases_1_to_3.sh126# ==============================================================================COMMENT
MEDIUM⚡python/scripts/run_phases_1_to_3.sh128# ==============================================================================COMMENT
MEDIUM⚡python/scripts/run_phases_1_to_3.sh131# ------------------------------------------------------------------------------COMMENT
MEDIUM⚡python/scripts/run_phases_1_to_3.sh133# ------------------------------------------------------------------------------COMMENT
MEDIUM⚡python/scripts/run_phases_1_to_3.sh238# ==============================================================================COMMENT
MEDIUM⚡python/scripts/run_phases_1_to_3.sh240# ==============================================================================COMMENT
MEDIUM⚡python/scripts/run_phases_1_to_3.sh243# ------------------------------------------------------------------------------COMMENT
MEDIUM⚡python/scripts/run_phases_1_to_3.sh245# ------------------------------------------------------------------------------COMMENT
MEDIUM⚡python/scripts/run_phases_1_to_3.sh325# ==============================================================================COMMENT
MEDIUM⚡python/scripts/run_phases_1_to_3.sh327# ==============================================================================COMMENT
MEDIUM⚡python/scripts/run_phases_1_to_3.sh330# ------------------------------------------------------------------------------COMMENT
MEDIUM⚡python/scripts/run_phases_1_to_3.sh332# ------------------------------------------------------------------------------COMMENT
MEDIUM⚡python/scripts/run_phases_1_to_3.sh342# ------------------------------------------------------------------------------COMMENT
MEDIUM⚡python/scripts/run_phases_1_to_3.sh344# ------------------------------------------------------------------------------COMMENT
MEDIUM⚡python/scripts/run_phases_1_to_3.sh351# ------------------------------------------------------------------------------COMMENT
MEDIUM⚡python/scripts/run_phases_1_to_3.sh353# ------------------------------------------------------------------------------COMMENT
MEDIUMpython/scripts/run_phases_1_to_3.sh16# ==============================================================================COMMENT
MEDIUMpython/scripts/run_phases_1_to_3.sh18# ==============================================================================COMMENT
MEDIUMpython/scripts/run_phases_1_to_3.sh91# ------------------------------------------------------------------------------COMMENT
MEDIUMpython/scripts/run_phases_1_to_3.sh93# ------------------------------------------------------------------------------COMMENT
MEDIUMpython/scripts/run_phases_1_to_3.sh162# ------------------------------------------------------------------------------COMMENT
MEDIUMpython/scripts/run_phases_1_to_3.sh164# ------------------------------------------------------------------------------COMMENT
MEDIUMpython/scripts/run_phases_1_to_3.sh178# ------------------------------------------------------------------------------COMMENT
MEDIUMpython/scripts/run_phases_1_to_3.sh180# ------------------------------------------------------------------------------COMMENT
MEDIUMpython/scripts/run_phases_1_to_3.sh199# ------------------------------------------------------------------------------COMMENT
MEDIUMpython/scripts/run_phases_1_to_3.sh201# ------------------------------------------------------------------------------COMMENT
MEDIUMpython/scripts/run_phases_1_to_3.sh261# ------------------------------------------------------------------------------COMMENT
MEDIUMpython/scripts/run_phases_1_to_3.sh263# ------------------------------------------------------------------------------COMMENT
MEDIUMpython/scripts/run_phases_1_to_3.sh302# ------------------------------------------------------------------------------COMMENT
MEDIUMpython/scripts/run_phases_1_to_3.sh304# ------------------------------------------------------------------------------COMMENT
MEDIUMpython/scripts/run_phases_1_to_3.sh369# ------------------------------------------------------------------------------COMMENT
MEDIUMpython/scripts/run_phases_1_to_3.sh371# ------------------------------------------------------------------------------COMMENT
MEDIUMpython/scripts/run_phases_1_to_3.sh401# ------------------------------------------------------------------------------COMMENT
MEDIUMpython/scripts/run_phases_1_to_3.sh403# ------------------------------------------------------------------------------COMMENT
MEDIUMpython/scripts/run_phases_1_to_3.sh430# ==============================================================================COMMENT
MEDIUMpython/scripts/run_phases_1_to_3.sh432# ==============================================================================COMMENT
MEDIUM⚡python/scripts/build_and_stage_cli.sh16# ==============================================================================COMMENT
MEDIUM⚡python/scripts/build_and_stage_cli.sh18# ==============================================================================COMMENT
MEDIUM⚡python/scripts/build_and_stage_cli.sh21# ----------------------------------------COMMENT
MEDIUMpython/scripts/build_and_stage_cli.sh50# ==============================================================================COMMENT
Hyper-Verbose Identifiers70 hits · 68 pts
SeverityFileLineSnippetContext
LOW⚡python/tests/test_magika_python_module.py66def test_magika_module_with_explicit_model_dir() -> None:CODE
LOW⚡python/tests/test_magika_python_module.py71def test_magika_module_with_basic_tests_by_paths() -> None:CODE
LOW⚡python/tests/test_magika_python_module.py79def test_magika_module_with_basic_tests_by_path() -> None:CODE
LOW⚡python/tests/test_magika_python_module.py89def test_magika_module_with_basic_tests_by_bytes() -> None:CODE
LOWpython/tests/test_magika_python_module.py39def test_magika_module_check_version() -> None:CODE
LOWpython/tests/test_magika_python_module.py53def test_magika_module_with_one_test_file() -> None:CODE
LOWpython/tests/test_magika_python_module.py102def test_magika_module_with_basic_tests_by_stream() -> None:CODE
LOWpython/tests/test_magika_python_module.py115def test_magika_module_with_previously_missdetected_samples() -> None:CODE
LOWpython/tests/test_magika_python_module.py123def test_magika_module_with_empty_content() -> None:CODE
LOWpython/tests/test_magika_python_module.py153def test_magika_module_with_short_content() -> None:CODE
LOWpython/tests/test_magika_python_module.py191def test_magika_module_with_python_and_non_python_content() -> None:CODE
LOWpython/tests/test_magika_python_module.py208def test_magika_module_identify_stream_does_not_alter_position() -> None:CODE
LOWpython/tests/test_magika_python_module.py228def test_magika_module_with_whitespaces() -> None:CODE
LOWpython/tests/test_magika_python_module.py289def test_magika_module_with_directory() -> None:CODE
LOWpython/tests/test_magika_python_module.py302def test_magika_module_multiple_copies_of_the_same_file() -> None:CODE
LOWpython/tests/test_magika_python_module.py318def test_magika_module_with_symlink() -> None:CODE
LOWpython/tests/test_magika_python_module.py347def test_magika_module_with_non_existing_file() -> None:CODE
LOWpython/tests/test_magika_python_module.py359def test_magika_module_with_permission_error() -> None:CODE
LOWpython/tests/test_magika_python_module.py392def test_magika_module_with_really_many_files() -> None:CODE
LOWpython/tests/test_magika_python_module.py407def test_magika_module_with_big_file() -> None:CODE
LOWpython/tests/test_magika_python_module.py431def test_api_call_with_bad_types() -> None:CODE
LOWpython/tests/test_magika_python_module.py464def test_access_magika_result_and_prediction():CODE
LOWpython/tests/test_magika_python_module.py511def test_access_backward_compatibility_layer() -> None:CODE
LOWpython/tests/test_magika_python_module.py540def test_get_model_and_output_content_types() -> None:CODE
LOWpython/tests/test_magika_python_module.py617def get_expected_content_type_label_from_test_file_path(CODE
LOWpython/tests/test_magika_python_module.py623def check_result_vs_expected_result(CODE
LOWpython/tests/test_magika_python_module.py634def check_results_vs_expected_results(CODE
LOWpython/tests/test_magika_python_module.py641def test_magika_result_asdict() -> None:CODE
LOWpython/tests/test_magika_python_module.py685def test_magika_and_result_str_and_repr() -> None:CODE
LOWpython/tests/test_magika_python_module.py710def test_magika_result_direct_instantiation() -> None:CODE
LOWpython/tests/test_magika_python_module.py757def test_content_type_info_field_types() -> None:CODE
LOWpython/tests/test_magika_python_module.py773def test_content_type_label_str_behavior() -> None:CODE
LOWpython/tests/test_magika_python_module.py795def test_prediction_mode_enums_and_valid_modes() -> None:CODE
LOWpython/tests/test_magika_python_module.py810def test_status_and_overwrite_reason_enums() -> None:CODE
LOWpython/tests/test_magika_python_module.py829def test_magika_prediction_immutability() -> None:CODE
LOWpython/tests/test_magika_python_module.py841def test_magika_constructor_options_and_errors() -> None:CODE
LOWpython/tests/test_magika_python_module.py853def test_identify_paths_empty_list() -> None:CODE
LOWpython/tests/test_magika_python_module.py860def test_identify_paths_mixed_statuses() -> None:CODE
LOWpython/tests/test_magika_python_module.py934def test_prediction_mode_via_identify_apis() -> None:CODE
LOW⚡python/tests/utils.py39def get_basic_tests_files_dir() -> Path:CODE
LOW⚡python/tests/utils.py45def get_mitra_tests_files_dir() -> Path:CODE
LOW⚡python/tests/utils.py51def get_previously_missdetected_files_dir() -> Path:CODE
LOW⚡python/tests/utils.py57def get_basic_test_files_paths() -> List[Path]:CODE
LOW⚡python/tests/utils.py63def get_mitra_test_files_paths() -> List[Path]:CODE
LOW⚡python/tests/utils.py69def get_previously_missdetected_files_paths() -> List[Path]:CODE
LOW⚡python/tests/utils.py75def get_reference_features_extraction_examples_path() -> Path:CODE
LOW⚡python/tests/utils.py79def get_reference_for_inference_examples_by_path_path(model_name: str) -> Path:CODE
LOW⚡python/tests/utils.py87def get_reference_for_inference_examples_by_content_path(model_name: str) -> Path:CODE
LOW⚡python/tests/utils.py95def get_one_basic_test_file_path() -> Path:CODE
LOWpython/tests/utils.py123def write_random_file_with_size(sample_path: Path, sample_size: int) -> None:CODE
LOWpython/tests/utils.py167def get_imported_objects_after_wildcard() -> Dict[str, Any]:CODE
LOWpython/scripts/sync.py101def update_python_content_type_label_py() -> None:STRING
LOWpython/scripts/sync.py165def update_js_content_type_files() -> None:STRING
LOWpython/scripts/pre_release_check.py207def get_magika_package_version_via_pip_show() -> str:CODE
LOWpython/scripts/pre_release_check.py260def test_is_valid_python_version() -> None:STRING
LOWpython/scripts/check_documentation.py72def check_versions_are_up_to_date() -> bool:CODE
LOW⚡python/scripts/check_documentation.py129def get_python_latest_stable_version() -> str:CODE
LOW⚡python/scripts/check_documentation.py137def get_python_default_model_name() -> str:CODE
LOW⚡python/scripts/check_documentation.py144def get_javascript_default_model_name() -> str:CODE
LOWpython/scripts/check_documentation.py162def get_rust_default_model_name() -> str:CODE
10 more matches not shown…
Unused Imports26 hits · 26 pts
SeverityFileLineSnippetContext
LOWpython/tests/test_magika_python_module.py15CODE
LOWpython/scripts/sync.py20CODE
LOWpython/scripts/check_documentation.py21CODE
LOWpython/src/magika/magika.py21CODE
LOWpython/src/magika/__init__.py20CODE
LOWpython/src/magika/__init__.py21CODE
LOWpython/src/magika/__init__.py22CODE
LOWpython/src/magika/__init__.py23CODE
LOWpython/src/magika/__init__.py24CODE
LOWpython/src/magika/__init__.py25CODE
LOWpython/src/magika/__init__.py26CODE
LOWpython/src/magika/__init__.py27CODE
LOWpython/src/magika/__init__.py28CODE
LOWpython/src/magika/logger.py17CODE
LOWpython/src/magika/types/prediction_mode.py17CODE
LOWpython/src/magika/types/__init__.py18CODE
LOWpython/src/magika/types/__init__.py19CODE
LOWpython/src/magika/types/__init__.py20CODE
LOWpython/src/magika/types/__init__.py21CODE
LOWpython/src/magika/types/__init__.py22CODE
LOWpython/src/magika/types/__init__.py23CODE
LOWpython/src/magika/types/__init__.py24CODE
LOWpython/src/magika/types/__init__.py25CODE
LOWpython/src/magika/types/magika_prediction.py17CODE
LOWpython/src/magika/types/strenum.py26CODE
LOWscripts/sync_kb.py32CODE
Cross-Language Confusion4 hits · 18 pts
SeverityFileLineSnippetContext
HIGHscripts/sync_kb.py103 "only null, true, and false may be unquoted",CODE
HIGHscripts/sync_kb.py204 f"{field}: must be a non-empty string or null, got {value!r} ({_type_name(value)})"CODE
HIGHscripts/sync_kb.py663 _SELF_TEST_VALID_YAML.replace('["null"]', "[null]"),STRING
HIGHscripts/sync_kb.py885 '{"null":{"mime_type":null,"group":null,"description":null,'CODE
Empty Error Handlers2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHpython/scripts/pre_release_check.py187except Exception:CODE
HIGHrust/rules/tests/data/export_regressions.py89except ValueError:CODE
Fake / Example Data7 hits · 9 pts
SeverityFileLineSnippetContext
LOWtests_data/basic/txt/lorem-small.txt2Lorem ipsum dolor sit amet, consectetur adipiscing elit. Collatio igitur ista te nihil iuvat. Honesta oratio, Socratica,CODE
LOWtests_data/basic/txt/lorem-small.txt2Lorem ipsum dolor sit amet, consectetur adipiscing elit. Collatio igitur ista te nihil iuvat. Honesta oratio, Socratica,CODE
LOW⚡tests_data/basic/txt/lorem-big.txt1Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer aliquam dui sit amet justo eleifend ullamcorper. Class CODE
LOW⚡tests_data/basic/txt/lorem-big.txt1Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer aliquam dui sit amet justo eleifend ullamcorper. Class CODE
LOW⚡tests_data/basic/txt/lorem-big.txt7Ut eleifend lectus et ullamcorper interdum. Sed laoreet, quam at placerat viverra, ipsum erat rhoncus dolor, sit amet elCODE
LOW⚡tests_data/basic/txt/lorem-big.txt7Ut eleifend lectus et ullamcorper interdum. Sed laoreet, quam at placerat viverra, ipsum erat rhoncus dolor, sit amet elCODE
LOWtests_data/basic/markdown/simple.md9Lorem ipsum?CODE
Deep Nesting9 hits · 9 pts
SeverityFileLineSnippetContext
LOWpython/scripts/run_quick_test_magika_module.py41CODE
LOWpython/scripts/pre_release_check.py160CODE
LOWpython/scripts/run_quick_test_magika_cli.py43CODE
LOWpython/scripts/check_documentation.py168CODE
LOWpython/scripts/check_documentation.py225CODE
LOWscripts/sync_kb.py180CODE
LOWscripts/sync_kb.py253CODE
LOWscripts/sync_kb.py376CODE
LOWscripts/sync_kb.py408CODE
Excessive Try-Catch Wrapping5 hits · 7 pts
SeverityFileLineSnippetContext
MEDIUMpython/CHANGELOG.md94 print(f"Error: {result.status}")CODE
LOWpython/scripts/pre_release_check.py88 except Exception:CODE
LOWpython/scripts/pre_release_check.py187 except Exception:CODE
LOWpython/scripts/run_quick_test_magika_cli.py58 except Exception as e:CODE
MEDIUMwebsite-ng/src/content/docs/cli-and-bindings/python.md92... print(f"Error: {result.status.message}")CODE
Self-Referential Comments2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUM.github/workflows/cli-release.yml270 # Create a GitHub Release while uploading all files to itCOMMENT
MEDIUMassets/content_types.yaml3# This file is the human-editable source of truth for all the content typesCOMMENT
Modern Structural Boilerplate4 hits · 3 pts
SeverityFileLineSnippetContext
LOWpython/scripts/sync.py101def update_python_content_type_label_py() -> None:STRING
LOWpython/scripts/sync.py165def update_js_content_type_files() -> None:STRING
LOWpython/src/magika/__init__.py36__all__ = [CODE
LOWpython/src/magika/types/__init__.py27__all__ = [CODE
Example Usage Blocks2 hits · 3 pts
SeverityFileLineSnippetContext
LOW⚡python/scripts/run_phases_1_to_3.sh43# Usage:COMMENT
LOWpython/scripts/build_and_stage_cli.sh48# Usage:COMMENT
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOWpython/scripts/pre_release_check.py179 # Check if it is a python scriptCOMMENT