MCPcopy Index your code
hub / github.com/awrped/ferrite-json

github.com/awrped/ferrite-json @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
21 symbols 40 edges 3 files 1 documented · 5%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

ferrite-json

humans make errors, so we should show it to them, so it can be fixed.

usage

cargo build --release
./target/release/ferrite <file.json>

example output

Error: ferrite::trailing_comma

  x trailing comma
   ,-[4:42]
 3 |   "age": 30,
 4 |   "hobbies": ["reading", "coding", "gaming",]
   :                                          |
   :                                          `-- remove this comma
 5 | }
   `----
  help: change `"hobbies": ["reading", "coding", "gaming",]` to `"hobbies": ["reading", "coding", "gaming"]`

contributing

plsz make sure to pre-lint with clippy before making a pr:

cargo clippy --all-targets --all-features -- -D warnings

Core symbols most depended-on inside this repo

current_line
called by 6
src/validator.rs
line_window
called by 2
src/validator.rs
previous_line
called by 1
src/validator.rs
is_trailing_comma
called by 1
src/validator.rs
trailing_comma_hint
called by 1
src/validator.rs
missing_comma_hint
called by 1
src/validator.rs
colon_hint
called by 1
src/validator.rs
key_hint
called by 1
src/validator.rs

Shape

Method 15
Function 3
Class 2
Enum 1

Languages

Rust100%

Modules by API surface

src/validator.rs19 symbols
src/main.rs2 symbols

For agents

$ claude mcp add ferrite-json \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact