rumdl 0.0.85__py3-none-manylinux_2_34_x86_64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of rumdl might be problematic. Click here for more details.

@@ -0,0 +1,5 @@
1
+ """
2
+ rumdl: An extremely fast Markdown linter written in Rust.
3
+ """
4
+
5
+ __version__ = "0.0.12"
@@ -0,0 +1,57 @@
1
+ """
2
+ Command-line interface for rumdl.
3
+ """
4
+
5
+ from __future__ import annotations
6
+
7
+ import os
8
+ import sys
9
+ import subprocess
10
+ from pathlib import Path
11
+
12
+ def find_native_binary() -> str:
13
+ """Find the native Rust binary, not the Python entry point script."""
14
+ # In development mode, use the target directory binary
15
+ project_root = Path(__file__).resolve().parent.parent.parent
16
+ target_binary = project_root / "target" / "release" / "rumdl"
17
+ if target_binary.exists() and not target_binary.is_dir():
18
+ return str(target_binary)
19
+
20
+ # For Windows, check for .exe extension
21
+ if sys.platform == "win32":
22
+ target_binary = project_root / "target" / "release" / "rumdl.exe"
23
+ if target_binary.exists() and not target_binary.is_dir():
24
+ return str(target_binary)
25
+
26
+ # If we can't find the binary, raise an error
27
+ raise FileNotFoundError(
28
+ "Could not find the native rumdl binary. "
29
+ "Please ensure it was built with 'cargo build --release'."
30
+ )
31
+
32
+ def main() -> int:
33
+ """Run the rumdl command line tool."""
34
+ try:
35
+ # Find the native binary
36
+ native_binary = find_native_binary()
37
+
38
+ # Simply forward all arguments to the Rust binary
39
+ args = [native_binary] + sys.argv[1:]
40
+
41
+ # Run the binary
42
+ if sys.platform == "win32":
43
+ completed_process = subprocess.run(args)
44
+ return completed_process.returncode
45
+ else:
46
+ # On Unix-like systems, directly execute the binary for better signal handling
47
+ os.execv(native_binary, args)
48
+ return 0 # This line will never be reached on non-Windows platforms
49
+ except FileNotFoundError as e:
50
+ print(f"Error: {e}", file=sys.stderr)
51
+ return 1
52
+ except Exception as e:
53
+ print(f"Error: {e}", file=sys.stderr)
54
+ return 1
55
+
56
+ if __name__ == "__main__":
57
+ sys.exit(main())
python/rumdl/py.typed ADDED
@@ -0,0 +1 @@
1
+
Binary file
@@ -0,0 +1,632 @@
1
+ Metadata-Version: 2.4
2
+ Name: rumdl
3
+ Version: 0.0.85
4
+ Classifier: Development Status :: 4 - Beta
5
+ Classifier: Environment :: Console
6
+ Classifier: Intended Audience :: Developers
7
+ Classifier: License :: OSI Approved :: MIT License
8
+ Classifier: Operating System :: OS Independent
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: Programming Language :: Python :: 3.7
11
+ Classifier: Programming Language :: Python :: 3.8
12
+ Classifier: Programming Language :: Python :: 3.9
13
+ Classifier: Programming Language :: Python :: 3.10
14
+ Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: Programming Language :: Python :: 3.12
16
+ Classifier: Programming Language :: Rust
17
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
18
+ Classifier: Topic :: Software Development :: Quality Assurance
19
+ Classifier: Topic :: Text Processing :: Markup :: Markdown
20
+ Summary: A fast Markdown linter written in Rust
21
+ Keywords: markdown,linter,markdown-linter,static-analysis,documentation
22
+ Home-Page: https://github.com/rvben/rumdl
23
+ Author: Ruben J. Jongejan <ruben.jongejan@gmail.com>
24
+ Author-email: "Ruben J. Jongejan" <ruben.jongejan@gmail.com>
25
+ License: MIT
26
+ Requires-Python: >=3.7
27
+ Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
28
+ Project-URL: Homepage, https://github.com/rvben/rumdl
29
+ Project-URL: Repository, https://github.com/rvben/rumdl.git
30
+
31
+ # rumdl - A high-performance Markdown linter, written in Rust
32
+
33
+ <div align="center">
34
+
35
+ ![rumdl Logo](https://raw.githubusercontent.com/rvben/rumdl/main/assets/logo.png)
36
+
37
+ [![Build Status](https://img.shields.io/github/actions/workflow/status/rvben/rumdl/build.yml?branch=main)](https://github.com/rvben/rumdl/actions)
38
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
39
+ [![Crates.io](https://img.shields.io/crates/v/rumdl)](https://crates.io/crates/rumdl)
40
+ [![PyPI](https://img.shields.io/pypi/v/rumdl)](https://pypi.org/project/rumdl/)
41
+ [![GitHub release (latest by date)](https://img.shields.io/github/v/release/rvben/rumdl)](https://github.com/rvben/rumdl/releases/latest)
42
+ [![GitHub stars](https://img.shields.io/github/stars/rvben/rumdl)](https://github.com/rvben/rumdl/stargazers)
43
+
44
+ ## A modern Markdown linter and formatter, built for speed with Rust
45
+
46
+ | [**Docs**](https://github.com/rvben/rumdl/blob/main/docs/RULES.md) | [**Rules**](https://github.com/rvben/rumdl/blob/main/docs/RULES.md) | [**Configuration**](#configuration) |
47
+
48
+ </div>
49
+
50
+ ## Table of Contents
51
+
52
+ - [rumdl - A high-performance Markdown linter, written in Rust](#rumdl---a-high-performance-markdown-linter-written-in-rust)
53
+ - [A modern Markdown linter and formatter, built for speed with Rust](#a-modern-markdown-linter-and-formatter-built-for-speed-with-rust)
54
+ - [Table of Contents](#table-of-contents)
55
+ - [Quick Start](#quick-start)
56
+ - [Overview](#overview)
57
+ - [Installation](#installation)
58
+ - [Using Cargo (Rust)](#using-cargo-rust)
59
+ - [Using pip (Python)](#using-pip-python)
60
+ - [Download binary](#download-binary)
61
+ - [Usage](#usage)
62
+ - [Pre-commit Integration](#pre-commit-integration)
63
+ - [Rules](#rules)
64
+ - [Command-line Interface](#command-line-interface)
65
+ - [Commands](#commands)
66
+ - [Usage Examples](#usage-examples)
67
+ - [Configuration](#configuration)
68
+ - [Configuration File Example](#configuration-file-example)
69
+ - [Initializing Configuration](#initializing-configuration)
70
+ - [Configuration in pyproject.toml](#configuration-in-pyprojecttoml)
71
+ - [Configuration Output](#configuration-output)
72
+ - [Effective Configuration (`rumdl config`)](#effective-configuration-rumdl-config)
73
+ - [Example output](#example-output)
74
+ - [Defaults Only (`rumdl config --defaults`)](#defaults-only-rumdl-config---defaults)
75
+ - [Output Style](#output-style)
76
+ - [Output Format](#output-format)
77
+ - [Development](#development)
78
+ - [Prerequisites](#prerequisites)
79
+ - [Building](#building)
80
+ - [Testing](#testing)
81
+ - [License](#license)
82
+
83
+ ## Quick Start
84
+
85
+ ```bash
86
+ # Install using Cargo
87
+ cargo install rumdl
88
+
89
+ # Lint Markdown files in the current directory
90
+ rumdl check .
91
+
92
+ # Automatically fix issues
93
+ rumdl check --fix .
94
+
95
+ # Create a default configuration file
96
+ rumdl init
97
+ ```
98
+
99
+ ## Overview
100
+
101
+ rumdl is a high-performance Markdown linter and fixer that helps ensure consistency and best practices in your Markdown files. It offers:
102
+
103
+ - ⚡️ **Built for speed** with Rust
104
+ - 🔍 **50+ lint rules** covering common Markdown issues
105
+ - 🛠️ **Automatic fixing** with `--fix` for most rules
106
+ - 📦 **Zero dependencies** - single binary with no runtime requirements
107
+ - 🔧 **Highly configurable** with TOML-based config files
108
+ - 🌐 **Multiple installation options** - Rust, Python, standalone binaries
109
+ - 🐍 **Installable via pip** for Python users
110
+ - 📏 **Modern CLI** with detailed error reporting
111
+ - 🔄 **CI/CD friendly** with non-zero exit code on errors
112
+
113
+ ## Installation
114
+
115
+ Choose the installation method that works best for you:
116
+
117
+ ### Using Cargo (Rust)
118
+
119
+ ```bash
120
+ cargo install rumdl
121
+ ```
122
+
123
+ ### Using pip (Python)
124
+
125
+ ```bash
126
+ pip install rumdl
127
+ ```
128
+
129
+ ### Download binary
130
+
131
+ ```bash
132
+ # Linux/macOS
133
+ curl -LsSf https://github.com/rvben/rumdl/releases/latest/download/rumdl-linux-x86_64.tar.gz | tar xzf - -C /usr/local/bin
134
+
135
+ # Windows PowerShell
136
+ Invoke-WebRequest -Uri "https://github.com/rvben/rumdl/releases/latest/download/rumdl-windows-x86_64.zip" -OutFile "rumdl.zip"
137
+ Expand-Archive -Path "rumdl.zip" -DestinationPath "$env:USERPROFILE\.rumdl"
138
+ ```
139
+
140
+ ## Usage
141
+
142
+ Getting started with rumdl is simple:
143
+
144
+ ```bash
145
+ # Lint a single file
146
+ rumdl check README.md
147
+
148
+ # Lint all Markdown files in current directory and subdirectories
149
+ rumdl check .
150
+
151
+ # Automatically fix issues
152
+ rumdl check --fix README.md
153
+
154
+ # Create a default configuration file
155
+ rumdl init
156
+ ```
157
+
158
+ Common usage examples:
159
+
160
+ ```bash
161
+ # Lint with custom configuration
162
+ rumdl check --config my-config.toml docs/
163
+
164
+ # Disable specific rules
165
+ rumdl check --disable MD013,MD033 README.md
166
+
167
+ # Enable only specific rules
168
+ rumdl check --enable MD001,MD003 README.md
169
+
170
+ # Exclude specific files/directories
171
+ rumdl check --exclude "node_modules,dist" .
172
+
173
+ # Include only specific files/directories
174
+ rumdl check --include "docs/*.md,README.md" .
175
+
176
+ # Combine include and exclude patterns
177
+ rumdl check --include "docs/**/*.md" --exclude "docs/temp,docs/drafts" .
178
+
179
+ # Don't respect gitignore files (note: --respect-gitignore defaults to true)
180
+ rumdl check --respect-gitignore=false .
181
+ ```
182
+
183
+ ## Pre-commit Integration
184
+
185
+ You can use `rumdl` as a pre-commit hook to check and fix your Markdown files.
186
+
187
+ The recommended way is to use the official pre-commit hook repository:
188
+
189
+ [rumdl-pre-commit repository](https://github.com/rvben/rumdl-pre-commit)
190
+
191
+ Add the following to your `.pre-commit-config.yaml`:
192
+
193
+ ```yaml
194
+ repos:
195
+ - repo: https://github.com/rvben/rumdl-pre-commit
196
+ rev: v0.0.45 # Use the latest release tag
197
+ hooks:
198
+ - id: rumdl
199
+ # To only check (default):
200
+ # args: []
201
+ # To automatically fix issues:
202
+ # args: [--fix]
203
+ ```
204
+
205
+ - By default, the hook will only check for issues.
206
+ - To automatically fix issues, add `args: [--fix]` to the hook configuration.
207
+
208
+ When you run `pre-commit install` or `pre-commit run`, pre-commit will automatically install `rumdl` in an isolated Python environment using pip. You do **not** need to install rumdl manually.
209
+
210
+ ## Rules
211
+
212
+ rumdl implements over 50 lint rules for Markdown files. Here are some key rule categories:
213
+
214
+ | Category | Description | Example Rules |
215
+ |-----------|-------------|---------------|
216
+ | **Headings** | Proper heading structure and formatting | MD001, MD002, MD003 |
217
+ | **Lists** | Consistent list formatting and structure | MD004, MD005, MD007 |
218
+ | **Whitespace** | Proper spacing and line length | MD009, MD010, MD012 |
219
+ | **Code** | Code block formatting and language tags | MD040, MD046, MD048 |
220
+ | **Links** | Proper link and reference formatting | MD034, MD039, MD042 |
221
+ | **Images** | Image alt text and references | MD045, MD052 |
222
+ | **Style** | Consistent style across document | MD031, MD032, MD035 |
223
+
224
+ For a complete list of rules and their descriptions, see our [documentation](https://github.com/rvben/rumdl/blob/main/docs/RULES.md) or run:
225
+
226
+ ```bash
227
+ rumdl --list-rules
228
+ ```
229
+
230
+ ## Command-line Interface
231
+
232
+ ```bash
233
+ rumdl <command> [options] [file or directory...]
234
+ ```
235
+
236
+ ### Commands
237
+
238
+ #### `check [PATHS...]`
239
+
240
+ Lint Markdown files and print warnings/errors (main subcommand)
241
+
242
+ **Arguments:**
243
+ - `[PATHS...]`: Files or directories to lint. If provided, these paths take precedence over include patterns
244
+
245
+ **Options:**
246
+ - `-f, --fix`: Automatically fix issues where possible
247
+ - `-l, --list-rules`: List all available rules
248
+ - `-d, --disable <rules>`: Disable specific rules (comma-separated)
249
+ - `-e, --enable <rules>`: Enable only specific rules (comma-separated)
250
+ - `--exclude <patterns>`: Exclude specific files or directories (comma-separated glob patterns)
251
+ - `--include <patterns>`: Include only specific files or directories (comma-separated glob patterns)
252
+ - `--respect-gitignore`: Respect .gitignore files when scanning directories (does not apply to explicitly provided paths)
253
+ - `-v, --verbose`: Show detailed output
254
+ - `--profile`: Show profiling information
255
+ - `-q, --quiet`: Quiet mode
256
+ - `-o, --output <format>`: Output format: `text` (default) or `json`
257
+ - `--stdin`: Read from stdin instead of files
258
+
259
+ #### `init [OPTIONS]`
260
+
261
+ Create a default configuration file in the current directory
262
+
263
+ **Options:**
264
+ - `--pyproject`: Generate configuration for `pyproject.toml` instead of `.rumdl.toml`
265
+
266
+ #### `import <FILE> [OPTIONS]`
267
+
268
+ Import and convert markdownlint configuration files to rumdl format
269
+
270
+ **Arguments:**
271
+ - `<FILE>`: Path to markdownlint config file (JSON/YAML)
272
+
273
+ **Options:**
274
+ - `-o, --output <path>`: Output file path (default: `.rumdl.toml`)
275
+ - `--format <format>`: Output format: `toml` or `json` (default: `toml`)
276
+ - `--dry-run`: Show converted config without writing to file
277
+
278
+ #### `rule [<rule>]`
279
+
280
+ Show information about a rule or list all rules
281
+
282
+ **Arguments:**
283
+ - `[rule]`: Rule name or ID (optional). If provided, shows details for that rule. If omitted, lists all available rules
284
+
285
+ #### `config [OPTIONS] [COMMAND]`
286
+
287
+ Show configuration or query a specific key
288
+
289
+ **Options:**
290
+ - `--defaults`: Show only the default configuration values
291
+ - `--output <format>`: Output format (e.g. `toml`, `json`)
292
+
293
+ **Subcommands:**
294
+ - `get <key>`: Query a specific config key (e.g. `global.exclude` or `MD013.line_length`)
295
+ - `file`: Show the absolute path of the configuration file that was loaded
296
+
297
+ #### `server [OPTIONS]`
298
+
299
+ Start the Language Server Protocol server for editor integration
300
+
301
+ **Options:**
302
+ - `--port <PORT>`: TCP port to listen on (for debugging)
303
+ - `--stdio`: Use stdio for communication (default)
304
+ - `-v, --verbose`: Enable verbose logging
305
+
306
+ #### `version`
307
+
308
+ Show version information
309
+
310
+ ### Global Options
311
+
312
+ These options are available for all commands:
313
+
314
+ - `--color <mode>`: Control colored output: `auto` (default), `always`, `never`
315
+ - `--config <file>`: Path to configuration file
316
+ - `--no-config`: Ignore all configuration files and use built-in defaults
317
+
318
+ ### Usage Examples
319
+
320
+ ```bash
321
+ # Lint all Markdown files in the current directory
322
+ rumdl check .
323
+
324
+ # Automatically fix issues
325
+ rumdl check --fix .
326
+
327
+ # Create a default configuration file
328
+ rumdl init
329
+
330
+ # Create or update a pyproject.toml file with rumdl configuration
331
+ rumdl init --pyproject
332
+
333
+ # Import a markdownlint config file
334
+ rumdl import .markdownlint.json
335
+
336
+ # Convert markdownlint config to JSON format
337
+ rumdl import --format json .markdownlint.yaml --output rumdl-config.json
338
+
339
+ # Preview conversion without writing file
340
+ rumdl import --dry-run .markdownlint.json
341
+
342
+ # Show information about a specific rule
343
+ rumdl rule MD013
344
+
345
+ # List all available rules
346
+ rumdl rule
347
+
348
+ # Query a specific config key
349
+ rumdl config get global.exclude
350
+
351
+ # Show the path of the loaded configuration file
352
+ rumdl config file
353
+
354
+ # Show configuration as JSON instead of the default format
355
+ rumdl config --output json
356
+
357
+ # Lint content from stdin
358
+ echo "# My Heading" | rumdl check --stdin
359
+
360
+ # Get JSON output for integration with other tools
361
+ rumdl check --output json README.md
362
+
363
+ # Disable colors in output
364
+ rumdl check --color never README.md
365
+
366
+ # Use built-in defaults, ignoring all config files
367
+ rumdl check --no-config README.md
368
+
369
+ # Show version information
370
+ rumdl version
371
+ ```
372
+
373
+ ## Configuration
374
+
375
+ rumdl can be configured in several ways:
376
+
377
+ 1. Using a `.rumdl.toml` file in your project directory
378
+ 2. Using the `[tool.rumdl]` section in your project's `pyproject.toml` file (for Python projects)
379
+ 3. Using command-line arguments
380
+ 4. **Automatic markdownlint compatibility**: rumdl automatically discovers and loads existing markdownlint config files (`.markdownlint.json`, `.markdownlint.yaml`, etc.)
381
+
382
+ ### Markdownlint Migration
383
+
384
+ rumdl provides seamless compatibility with existing markdownlint configurations:
385
+
386
+ **Automatic Discovery**: rumdl automatically detects and loads markdownlint config files:
387
+ - `.markdownlint.json` / `.markdownlint.jsonc`
388
+ - `.markdownlint.yaml` / `.markdownlint.yml`
389
+ - `markdownlint.json` / `markdownlint.yaml`
390
+
391
+ **Explicit Import**: Convert markdownlint configs to rumdl format:
392
+
393
+ ```bash
394
+ # Convert to .rumdl.toml
395
+ rumdl import .markdownlint.json
396
+
397
+ # Convert to JSON format
398
+ rumdl import --format json .markdownlint.yaml --output config.json
399
+
400
+ # Preview conversion
401
+ rumdl import --dry-run .markdownlint.json
402
+ ```
403
+
404
+ For comprehensive documentation on global settings (file selection, rule enablement, etc.), see our [Global Settings Reference](docs/global-settings.md).
405
+
406
+ ### Configuration File Example
407
+
408
+ Here's an example `.rumdl.toml` configuration file:
409
+
410
+ ```toml
411
+ # Global settings
412
+ line-length = 100
413
+ exclude = ["node_modules", "build", "dist"]
414
+ respect-gitignore = true
415
+
416
+ # Disable specific rules
417
+ disabled-rules = ["MD013", "MD033"]
418
+
419
+ # Configure individual rules
420
+ [MD007]
421
+ indent = 2
422
+
423
+ [MD013]
424
+ line-length = 100
425
+ code-blocks = false
426
+ tables = false
427
+
428
+ [MD025]
429
+ level = 1
430
+ front-matter-title = "title"
431
+
432
+ [MD044]
433
+ names = ["rumdl", "Markdown", "GitHub"]
434
+
435
+ [MD048]
436
+ code-fence-style = "backtick"
437
+ ```
438
+
439
+ ### Initializing Configuration
440
+
441
+ To create a configuration file, use the `init` command:
442
+
443
+ ```bash
444
+ # Create a .rumdl.toml file (for any project)
445
+ rumdl init
446
+
447
+ # Create or update a pyproject.toml file with rumdl configuration (for Python projects)
448
+ rumdl init --pyproject
449
+ ```
450
+
451
+ ### Configuration in pyproject.toml
452
+
453
+ For Python projects, you can include rumdl configuration in your `pyproject.toml` file, keeping all project configuration in one place. Example:
454
+
455
+ ```toml
456
+ [tool.rumdl]
457
+ # Global options at root level
458
+ line-length = 100
459
+ disable = ["MD033"]
460
+ include = ["docs/*.md", "README.md"]
461
+ exclude = [".git", "node_modules"]
462
+ ignore-gitignore = false
463
+
464
+ # Rule-specific configuration
465
+ [tool.rumdl.MD013]
466
+ code_blocks = false
467
+ tables = false
468
+
469
+ [tool.rumdl.MD044]
470
+ names = ["rumdl", "Markdown", "GitHub"]
471
+ ```
472
+
473
+ Both kebab-case (`line-length`, `ignore-gitignore`) and snake_case (`line_length`, `ignore_gitignore`) formats are supported for compatibility with different Python tooling conventions.
474
+
475
+ ### Configuration Output
476
+
477
+ #### Effective Configuration (`rumdl config`)
478
+
479
+ The `rumdl config` command prints the **full effective configuration** (defaults + all overrides), showing every key and its value, annotated with the source of each value.
480
+ The output is colorized and the `[from ...]` annotation is globally aligned for easy scanning.
481
+
482
+ #### Example output
483
+
484
+ ```text
485
+ [global]
486
+ enable = [] [from default]
487
+ disable = ["MD033"] [from .rumdl.toml]
488
+ include = ["README.md"] [from .rumdl.toml]
489
+ respect_gitignore = true [from .rumdl.toml]
490
+
491
+ [MD013]
492
+ line_length = 200 [from .rumdl.toml]
493
+ code_blocks = true [from .rumdl.toml]
494
+ ...
495
+ ```
496
+
497
+ - **Keys** are cyan, **values** are yellow, and the `[from ...]` annotation is colored by source:
498
+ - Green: CLI
499
+ - Blue: `.rumdl.toml`
500
+ - Magenta: `pyproject.toml`
501
+ - Yellow: default
502
+ - The `[from ...]` column is aligned across all sections.
503
+
504
+ ### Defaults Only (`rumdl config --defaults`)
505
+
506
+ The `--defaults` flag prints only the default configuration as TOML, suitable for copy-paste or reference:
507
+
508
+ ```toml
509
+ [global]
510
+ enable = []
511
+ disable = []
512
+ exclude = []
513
+ include = []
514
+ respect_gitignore = true
515
+
516
+ [MD013]
517
+ line_length = 80
518
+ code_blocks = true
519
+ ...
520
+ ```
521
+
522
+ ## Output Style
523
+
524
+ rumdl produces clean, colorized output similar to modern linting tools:
525
+
526
+ ```text
527
+ README.md:12:1: [MD022] Headings should be surrounded by blank lines [*]
528
+ README.md:24:5: [MD037] Spaces inside emphasis markers: "* incorrect *" [*]
529
+ README.md:31:76: [MD013] Line length exceeds 80 characters
530
+ README.md:42:3: [MD010] Hard tabs found, use spaces instead [*]
531
+ ```
532
+
533
+ When running with `--fix`, rumdl shows which issues were fixed:
534
+
535
+ ```text
536
+ README.md:12:1: [MD022] Headings should be surrounded by blank lines [fixed]
537
+ README.md:24:5: [MD037] Spaces inside emphasis markers: "* incorrect *" [fixed]
538
+ README.md:42:3: [MD010] Hard tabs found, use spaces instead [fixed]
539
+
540
+ Fixed 3 issues in 1 file
541
+ ```
542
+
543
+ For a more detailed view, use the `--verbose` option:
544
+
545
+ ```text
546
+ ✓ No issues found in CONTRIBUTING.md
547
+ README.md:12:1: [MD022] Headings should be surrounded by blank lines [*]
548
+ README.md:24:5: [MD037] Spaces inside emphasis markers: "* incorrect *" [*]
549
+ README.md:42:3: [MD010] Hard tabs found, use spaces instead [*]
550
+
551
+ Found 3 issues in 1 file (2 files checked)
552
+ Run with `--fix` to automatically fix issues
553
+ ```
554
+
555
+ ### Output Format
556
+
557
+ #### Text Output (Default)
558
+
559
+ rumdl uses a consistent output format for all issues:
560
+
561
+ ```text
562
+ {file}:{line}:{column}: [{rule_id}] {message} [{fix_indicator}]
563
+ ```
564
+
565
+ The output is colorized by default:
566
+
567
+ - Filenames appear in blue and underlined
568
+ - Line and column numbers appear in cyan
569
+ - Rule IDs appear in yellow
570
+ - Error messages appear in white
571
+ - Fixable issues are marked with `[*]` in green
572
+ - Fixed issues are marked with `[fixed]` in green
573
+
574
+ #### JSON Output
575
+
576
+ For integration with other tools and automation, use `--output json`:
577
+
578
+ ```bash
579
+ rumdl check --output json README.md
580
+ ```
581
+
582
+ This produces structured JSON output:
583
+
584
+ ```json
585
+ {
586
+ "summary": {
587
+ "total_files": 1,
588
+ "files_with_issues": 1,
589
+ "total_issues": 2,
590
+ "fixable_issues": 1
591
+ },
592
+ "files": [
593
+ {
594
+ "path": "README.md",
595
+ "issues": [
596
+ {
597
+ "line": 12,
598
+ "column": 1,
599
+ "rule": "MD022",
600
+ "message": "Headings should be surrounded by blank lines",
601
+ "fixable": true,
602
+ "severity": "error"
603
+ }
604
+ ]
605
+ }
606
+ ]
607
+ }
608
+ ```
609
+
610
+ ## Development
611
+
612
+ ### Prerequisites
613
+
614
+ - Rust 1.70 or higher
615
+ - Make (for development commands)
616
+
617
+ ### Building
618
+
619
+ ```bash
620
+ make build
621
+ ```
622
+
623
+ ### Testing
624
+
625
+ ```bash
626
+ make test
627
+ ```
628
+
629
+ ## License
630
+
631
+ rumdl is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
632
+
@@ -0,0 +1,7 @@
1
+ python/rumdl/__init__.py,sha256=En6tBgSj-MMeUcBAV7HlMjfstzY6npWxZtsRa30hIj0,90
2
+ python/rumdl/__main__.py,sha256=DQ-es4rlJ-iiHUeoTruvZzp-YV6rGShOWZYN4zBx_Iw,1903
3
+ python/rumdl/py.typed,sha256=Nqnn8clbgv-5l0PgxcTOldg8mkMKrFn4TvPL-rYUUGg,1
4
+ rumdl-0.0.85.data/scripts/rumdl,sha256=wf6z9owtok9-tvdWknh_J4XIkXGbEQeR1QC6S-7rklo,10164912
5
+ rumdl-0.0.85.dist-info/METADATA,sha256=1VPRA2QqESc8QdgyiTXBIWbRXzZ-h4tlnynVtoNdD0Q,18782
6
+ rumdl-0.0.85.dist-info/WHEEL,sha256=1TkuK5NnbfRczcpbBRUMWTPSOOQceWQ1x5QeJQ91d9Y,105
7
+ rumdl-0.0.85.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: maturin (1.8.7)
3
+ Root-Is-Purelib: false
4
+ Tag: py3-none-manylinux_2_34_x86_64