MCPcopy Index your code
hub / github.com/loeffel-io/ls-lint

github.com/loeffel-io/ls-lint @v2.3.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v2.3.1 ↗ · + Follow
137 symbols 310 edges 28 files 10 documented · 7% 1 cross-repo links updated 4d agov2.3.1 · 2025-06-04★ 2,39638 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

logo

ls-lint

An extremely fast directory and filename linter - Bring some structure to your project filesystem

CI Go Report Card Version npm npm License

  • Minimal setup with simple rules managed in one single or multiple .ls-lint.yml files
  • Works for directory and file names - all extensions supported - full unicode support
  • Incredibly fast - lints thousands of files and directories in milliseconds
  • Support for Windows, MacOS and Linux + NPM Package + GitHub Action + Homebrew + Docker
  • Trusted by Renovate, Terser and many more
  • Almost zero third-party dependencies (only go-yaml and doublestar)

Announcements

v2.3.0 is here: https://ls-lint.org/blog/announcements/v2.3.0.html

Documentation

The full documentation can be found at ls-lint.org

Demo

Configuration .ls-lint.yml

ls:
  packages/*/{src,__tests__}:
    .js: kebab-case
    .ts: camelCase | PascalCase
    .d.ts: camelCase
    .spec.ts: camelCase | PascalCase
    .mock.ts: camelCase

  components/*:
    .ts: regex:${0}
    tests:
      .*: exists:0
      .test.ts: regex:${1}

ignore:
  - node_modules

Result

command

Logo

Logo created by Studio Ajot

License

ls-lint is open-source software licensed under the MIT license.

FOSSA Status

Extension points exported contracts — how you extend this code

Rule (Interface)
(no doc) [8 implementers]
internal/rule/rule.go

Core symbols most depended-on inside this repo

Init
called by 34
internal/rule/rule.go
NewConfig
called by 14
internal/config/config.go
GetName
called by 12
internal/rule/rule.go
NewLinter
called by 11
internal/linter/linter.go
GetStatistics
called by 11
internal/linter/linter.go
Validate
called by 11
internal/rule/rule.go
GetErrors
called by 9
internal/linter/linter.go
GetExt
called by 9
internal/rule/error.go

Shape

Method 100
Function 20
Struct 13
TypeAlias 3
Interface 1

Languages

Go99%
TypeScript1%

Modules by API surface

internal/rule/exists.go13 symbols
internal/config/config.go11 symbols
internal/rule/regex.go10 symbols
internal/rule/snakecase.go9 symbols
internal/rule/screamingsnakecase.go9 symbols
internal/rule/rule.go9 symbols
internal/rule/pascalcase.go9 symbols
internal/rule/lowercase.go9 symbols
internal/rule/kebabcase.go9 symbols
internal/rule/camelcase.go9 symbols
internal/linter/linter.go8 symbols
internal/debug/statistic.go6 symbols

Used by 1 indexed graphs manifest dependencies, hub-wide

Dependencies from manifests, versioned

github.com/bmatcuk/doublestar/v4v4.8.1 · 1×
golang.org/x/syncv0.14.0 · 1×
gopkg.in/yaml.v3v3.0.1 · 1×

For agents

$ claude mcp add ls-lint \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact