Giter Site home page Giter Site logo

kingler / gptlint Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gptlint/gptlint

1.0 0.0 0.0 2.67 MB

A linter with superpowers! ๐Ÿ”ฅ Use LLMs to enforce best practices across your codebase.

Home Page: https://gptlint.dev

License: MIT License

JavaScript 5.24% TypeScript 29.51% Jupyter Notebook 65.25%

gptlint's Introduction

How it works

Use LLMs to enforce best practices across your codebase.

NPM Build Status MIT License Prettier Code Formatting Discuss on Twitter

GPTLint

A fundamentally new approach to code quality. Use LLMs to enforce higher-level best practices across your codebase in a way that takes traditional static analysis tools like eslint to the next level.

Features

  • โœ…๏ธ enforce higher-level best practices that are impossible with ast-based approaches
  • โœ…๏ธ simple markdown format for rules (example, spec)
  • โœ…๏ธ easy to disable or customize rules
  • โœ…๏ธ add custom, project-specific rules
  • โœ…๏ธ same cli and config format as eslint
  • โœ…๏ธ supports gptlint.config.js and inline overrides /* gptlint-disable */
  • โœ…๏ธ content-based caching
  • โœ…๏ธ outputs LLM stats per run (cost, tokens, etc)
  • โœ…๏ธ built-in rules are extensively tested w/ evals
  • โœ…๏ธ supports all major LLM providers and local models
  • โœ…๏ธ augments eslint instead of trying to replace it (we love eslint!)
  • โœ…๏ธ includes guidelines for creating your own rules
  • โŒ MVP rules are JS/TS only for now
  • โŒ MVP rules are single-file context only for now
  • โŒ MVP does not support autofixing for now

Demo

Here's a demo of gptlint running on its own codebase:

Check out our docs to get started.

How it works

How it works

Check out our docs on how it works to learn more.

Getting Started

Installation is simple, with the only external dependency required by default being an OpenAI API key.

Check out our docs to get started.

FAQ

Citations

@software{agentic2024gptlint,
  title  = {GPTLint},
  author = {Travis Fischer, Scott Silvi},
  year   = {2024},
  month  = {4},
  url    = {https://github.com/gptlint/gptlint}
}

Huge shoutout to Laurentiu Raducu for gifting us the NPM package name. ๐Ÿ™

License

MIT ยฉ Travis Fischer

To stay up to date or learn more, follow @transitive_bs on Twitter.

gptlint's People

Contributors

transitive-bullshit avatar mergebandit avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.