Repository Analysis

typst/typst

A markup-based typesetting system that is powerful and easy to learn.

7.3 Low AI signal View on GitHub
7.3
Adjusted Score
7.3
Raw Score
100%
Time Factor
2026-05-29
Last Push
53,844
Stars
Rust
Language
166,892
Lines of Code
590
Files
1228
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 2HIGH 0MEDIUM 4LOW 1222

Pattern Findings

1228 matches across 6 categories. Click a row to expand file-level details.

Over-Commented Block1213 hits · 1174 pts
SeverityFileLineSnippet
LOWcrates/typst-render/src/lib.rs81 }
LOWcrates/typst-library/translations/gu.txt1# figure =
LOWcrates/typst-library/translations/ta.txt1figure = படம்
LOWcrates/typst-library/translations/ml.txt1figure = ചിത്രം
LOWcrates/typst-library/translations/alt.txt1figure = Јурук
LOWcrates/typst-library/src/lib.rs1//! Typst's standard library.
LOWcrates/typst-library/src/lib.rs41use crate::text::{Font, FontBook};
LOWcrates/typst-library/src/lib.rs61 /// The standard library.
LOWcrates/typst-library/src/lib.rs81
LOWcrates/typst-library/src/lib.rs161/// and call
LOWcrates/typst-library/src/routines.rs121///
LOWcrates/typst-library/src/routines.rs141 id: FileId,
LOWcrates/typst-library/src/routines.rs161 /// A nested realization in a container (e.g. a `block` or an `html.div`).
LOWcrates/typst-library/src/diag.rs21use utf8_iter::ErrorReportingUtf8Chars;
LOWcrates/typst-library/src/diag.rs41/// bail!(
LOWcrates/typst-library/src/diag.rs81///
LOWcrates/typst-library/src/diag.rs141}
LOWcrates/typst-library/src/diag.rs181
LOWcrates/typst-library/src/diag.rs301pub struct SourceDiagnostic {
LOWcrates/typst-library/src/diag.rs501 self.map_err(|message| eco_vec![SourceDiagnostic::error(span, message)])
LOWcrates/typst-library/src/diag.rs601
LOWcrates/typst-library/src/diag.rs741
LOWcrates/typst-library/src/engine.rs21 /// Definition of Typst's standard library.
LOWcrates/typst-library/src/engine.rs141 if self.0.and_then(Span::id) == Some(id) { self.0 } else { None }
LOWcrates/typst-library/src/engine.rs261 /// This is used when an engine is created from another engine.
LOWcrates/typst-library/src/loading/xml.rs1use roxmltree::ParsingOptions;
LOWcrates/typst-library/src/loading/xml.rs21/// `content` tag contains one or more paragraphs, which are represented as `p`
LOWcrates/typst-library/src/loading/xml.rs41///
LOWcrates/typst-library/src/loading/json.rs1use ecow::eco_format;
LOWcrates/typst-library/src/loading/json.rs21/// = Example <example>
LOWcrates/typst-library/src/loading/json.rs41///
LOWcrates/typst-library/src/loading/json.rs61///
LOWcrates/typst-library/src/loading/json.rs81/// [@content],
LOWcrates/typst-library/src/loading/read.rs1use typst_syntax::Spanned;
LOWcrates/typst-library/src/loading/toml.rs1use ecow::eco_format;
LOWcrates/typst-library/src/loading/toml.rs21/// ```example
LOWcrates/typst-library/src/loading/toml.rs41/// [@int],
LOWcrates/typst-library/src/loading/toml.rs61///
LOWcrates/typst-library/src/loading/toml.rs81/// == Notes <notes>
LOWcrates/typst-library/src/loading/cbor.rs1use ciborium::de::Error;
LOWcrates/typst-library/src/loading/cbor.rs21/// table.header[CBOR value][Converted into Typst],
LOWcrates/typst-library/src/loading/cbor.rs41/// [array],
LOWcrates/typst-library/src/loading/cbor.rs61/// [text via @repr],
LOWcrates/typst-library/src/loading/csv.rs1use az::SaturatingAs;
LOWcrates/typst-library/src/loading/csv.rs21/// columns: 2,
LOWcrates/typst-library/src/loading/yaml.rs1use ecow::eco_format;
LOWcrates/typst-library/src/loading/yaml.rs21///
LOWcrates/typst-library/src/loading/yaml.rs41///
LOWcrates/typst-library/src/loading/yaml.rs61/// #docs-table(
LOWcrates/typst-library/src/loading/yaml.rs81/// - In most cases, YAML numbers will be converted to floats or integers
LOWcrates/typst-library/src/layout/page.rs21/// Layouts its child onto one or multiple pages.
LOWcrates/typst-library/src/layout/page.rs41/// = Accessibility <accessibility>
LOWcrates/typst-library/src/layout/page.rs61 pub paper: Paper,
LOWcrates/typst-library/src/layout/page.rs81 #[parse(
LOWcrates/typst-library/src/layout/page.rs101 #[default(Smart::Custom(Paper::A4.height().into()))]
LOWcrates/typst-library/src/layout/page.rs121 /// +1 (212) 555-0155
LOWcrates/typst-library/src/layout/page.rs141 /// - `outside`: The margin at the outer side of the page (opposite to the
LOWcrates/typst-library/src/layout/page.rs161 /// width: 100%,
LOWcrates/typst-library/src/layout/page.rs181 /// order of precedence:
LOWcrates/typst-library/src/layout/page.rs201 /// page.
1153 more matches not shown…
Hallucination Indicators2 hits · 20 pts
SeverityFileLineSnippet
CRITICALcrates/typst-library/src/visualize/tiling.rs242 if !offset.v.x.abs.em.is_zero() || !offset.v.y.abs.em.is_zero() {
CRITICALcrates/typst-pdf/src/tags/resolve/mod.rs63 let root = gc.tags.tree.groups.list.get(GroupId::ROOT);
AI Slop Vocabulary4 hits · 12 pts
SeverityFileLineSnippet
MEDIUMcrates/typst-library/src/introspection/locator.rs74/// - To make things more robust, we can incorporate some stable knowledge about
MEDIUMcrates/typst-library/src/text/mod.rs565 /// default of `{100%}`, prevents them. More nuanced cost specification for
MEDIUMcrates/typst-layout/src/inline/line.rs185 // Use the trimmed range for robust boundary checks.
MEDIUMcrates/typst-layout/src/grid/lines.rs521 // FIXME: Make this check more robust when footers at arbitrary
Fake / Example Data4 hits · 6 pts
SeverityFileLineSnippet
LOWcrates/typst-library/src/model/par.rs780/// Lorem ipsum \
LOWcrates/typst-library/src/model/par.rs781/// dolor sit amet
LOWcrates/typst-library/src/text/lorem.rs10/// This function yields a Latin-like _Lorem Ipsum_ blind text with the given
LOWcrates/typst-library/src/text/lorem.rs31/// Generates `n` words of Lorem Ipsum text, treating `--` as a non-word
Verbosity Indicators3 hits · 4 pts
SeverityFileLineSnippet
LOWcrates/typst-layout/src/math/table.rs64 // This variable stores the maximum ascent and descent for each row.
LOWcrates/typst-layout/src/grid/lines.rs280 // When the vline isn't at the border, we need to check if a colspan would
LOWcrates/typst-layout/src/grid/lines.rs405 // When the hline isn't at the border, we need to check if a rowspan
Hyper-Verbose Identifiers2 hits · 2 pts
SeverityFileLineSnippet
LOWtests/src/report/report.js291function changeGlobalSourceVisibility(visible) {
LOWtests/src/report/report.js418function onViewportIntersectionChanged(element, callback) {