Coder Social home page Coder Social logo

hdasch / indent-lint.el Goto Github PK

View Code? Open in Web Editor NEW

This project forked from conao3/indent-lint.el

0.0 0.0 0.0 110 KB

Async indentation checker and flycheck frontend

License: GNU General Public License v3.0

Shell 0.14% Emacs Lisp 89.46% Makefile 10.39%

indent-lint.el's Introduction

https://raw.githubusercontent.com/conao3/files/master/blob/headers/png/indent-lint.el.png https://img.shields.io/github/license/conao3/indent-lint.el.svg?style=flat-square https://img.shields.io/github/tag/conao3/indent-lint.el.svg?style=flat-square https://github.com/conao3/indent-lint.el/workflows/Main%20workflow/badge.svg https://img.shields.io/codacy/grade/62a36f4f04524d5e8c758440e8071c45.svg?logo=codacy&style=flat-square https://img.shields.io/badge/twitter-@conao__3-blue.svg?logo=twitter&style=flat-square https://img.shields.io/badge/chat-on_slack-blue.svg?logo=slack&style=flat-square

Table of Contents

Description

Async indentation checker and flycheck frontend.

Install

  • M-x package-install indent-lint
  • M-x package-install flycheck-indent

Usage

indent-lint

  • interactive

    M-x indent-lint

    Lint indentation for current-buffer.

  • Lisp program

    Use indent-lint function.

    (indent-lint BUF)
        

    BUF accepts buffer name (string) or buffer (buffer object).

    After few seconds, a buffer with different indentation lines are popped.

flycheck-indent

To enable, use something like this.

(eval-after-load 'flycheck
  '(flycheck-indent-setup))

Customize

indent-lint-before-indent-fn
The function will eval before indent
indent-lint-verbose
If non-nil, output diff verbose.

Information

Community

Any feedback and suggestions are welcome!

You can use GitHub issues, but you can also use Slack if you want a more casual conversation.

Contribution

We welcome PR!

Require tools for testing

  • cask
    • install via brew
      brew install cask
              
    • manual install
      cd ~/
      hub clone cask/cask
      export PATH="$HOME/.cask/bin:$PATH"
              

Running test

Below operation flow is recommended.

make                              # Install git-hooks in local .git

git branch [feature-branch]       # Create branch named [feature-branch]
git checkout [feature-branch]     # Checkout branch named [feature-branch]

# <edit loop>
emacs indent-lint.el              # Edit something you want

make test                         # Test indent-lint
git commit -am "brabra"           # Commit (auto-run test before commit)
# </edit loop>

hub fork                          # Create fork at GitHub
git push [user] [feature-branch]  # Push feature-branch to your fork
hub pull-request                  # Create pull-request

Migration

License

General Public License Version 3 (GPLv3)
Copyright (c) Naoya Yamashita - https://conao3.com
https://github.com/conao3/indent-lint.el/blob/master/LICENSE

Author

Contributors

indent-lint.el's People

Contributors

conao3 avatar hdasch 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.