Skip to content
| Marketplace
Sign in
Visual Studio Code>Linters>FibLintNew to Visual Studio Code? Get it now.
FibLint

FibLint

Mia Dugas

|
4 installs
| (1) | Free
Lint your code to Fibonacci sequence line lengths
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

FibLint

Lint your code to Fibonacci sequence line lengths.

FibLint is a VS Code extension that checks whether each line of your code has a character count that is a Fibonacci number (0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233...). Is it useful? Debatable. Is it mathematically beautiful? Absolutely.

Features

Diagnostics

Every line with a non-Fibonacci character count gets flagged with a hint showing the nearest Fibonacci number. Hover over any line to see detailed Fibonacci info including previous, next, and nearest Fibonacci numbers.

Diagnostics

Workspace Scoring

A lightbulb icon in the status bar shows your workspace's Fibonacci compliance percentage. The lightbulb glows brighter as your score increases -- from dim at low percentages to bright gold at 80%+. It flashes when the score changes.

Click the lightbulb to open the score menu with options for:

  • Current file score
  • Workspace score across all files
  • File breakdown ranked by percentage
  • Rescan, clear cache, enable/disable
Status Bar

Leaderboard Sidebar

A dedicated sidebar panel ranks all workspace files by their Fibonacci score with color-coded tiers:

  • Gold (75%+)
  • Silver (50-74%)
  • Bronze (25-49%)
  • Unranked (<25%)

Click any file to open it.

Leaderboard

Quick Fixes

Hover over a flagged line and click "Pad to [next Fibonacci]" to add trailing spaces that bring the line to the next Fibonacci length. Run "FibLint: Format Document to Fibonacci" from the command palette to pad all lines at once.

Hard Mode

Enable Fibonacci Mode to block saving files that fall below a configurable score threshold. A modal warning appears when you try to save a non-compliant file, giving you the option to save anyway or go back and improve your score.

Hard Mode

Golden Ratio Mode

Track pairs of consecutive lines whose lengths approximate the golden ratio (1.618...). Shown as a separate percentage in the status bar tooltip and score menu.

Achievements

Toast notifications celebrate milestones when a file reaches 25% (Bronze), 50% (Silver), 75% (Gold), or 100% (Perfect) Fibonacci compliance.

Streak Counter

Tracks consecutive saves that improve a file's Fibonacci score. Your current streak is shown in the status bar tooltip.

Score Menu

Ignore Patterns

Configure which lines are excluded from scoring:

  • Blank lines (default: ignored)
  • Comment-only lines (//, /*, #)
  • Brace-only lines ({, }, {})

Visual Decorations

Orange dots appear at the end of each non-Fibonacci line showing exactly how many characters are needed to reach the next Fibonacci number.

Commands

Command Description
FibLint: Format Document to Fibonacci Pad all lines to the next Fibonacci length
FibLint: Fix All Fibonacci Lint Issues Format and re-lint the document
FibLint: Fibonacci Score Menu Open the score menu
FibLint: Show Fibonacci Score Breakdown See all files ranked by score
FibLint: Toggle Fibonacci Mode (Hard Mode) Toggle save-blocking hard mode
FibLint: Refresh Leaderboard Force refresh the sidebar leaderboard

Settings

Setting Default Description
fiblint.enabled true Enable or disable FibLint
fiblint.severity Hint Diagnostic severity (Error, Warning, Information, Hint)
fiblint.maxLineLength 0 Ignore lines longer than this (0 = no limit)
fiblint.respectGitignore true Exclude gitignored files from workspace scoring
fiblint.ignoreBlankLines true Skip blank lines from scoring
fiblint.ignoreCommentLines false Skip comment-only lines from scoring
fiblint.ignoreBraceLines false Skip brace-only lines from scoring
fiblint.goldenRatioMode false Enable golden ratio pair tracking
fiblint.goldenRatioTolerance 0.1 Tolerance for golden ratio matching (0.1 = 10%)
fiblint.fibonacciMode false Enable hard mode (block saves below threshold)
fiblint.fibonacciModeThreshold 50 Minimum score percentage to save in hard mode

Why?

Because almost no real code naturally lands on a Fibonacci number, and that's the point. FibLint is for developers who appreciate mathematical beauty in their code -- or at least enjoy a good novelty linter.

The Fibonacci sequence gets sparse at higher values (the gap between 89 and 144 is 55 characters), which means most lines will be flagged. Your workspace score will start low. Embrace the challenge.

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft