Coder Social home page Coder Social logo

fdlint's Introduction

fdlint -- 让前端code review更轻松

fdlint (开发代号xray) 是根据阿里巴巴前端开发checklist开发的自动代码扫描工具。 可以扫描出前端程序中不符合开发规范的地方。

语言支持

  • html
  • css
  • javascript

使用方式

编辑器插件

命令行工具

ruby脚本

适合安装了Ruby运行环境的Windows/*nix系统

运行方式

/path/to/fdlint [参数] <目标文件或目录>

或者使用管道:

echo '* {}' | /path/to/fdlint

参数列表:

Usage: fdlint
        --css                        在扫描模式下仅检查CSS文件,在管道模式下指定内容为CSS
        --js                         在扫描模式下仅检查JS文件,在管道模式下指定内容为JS
        --html                       在扫描模式下仅检查HTML文件,在管道模式下指定内容为HTML
    -c, --charset set                指定文件默认的编码(本参数已废弃,目前自动判断字符集)
    -d, --debug                      输出调试信息
    -l, --list                       无彩色输出,等同于 '--format=nocolor'
    -m, --checkmin                   检查压缩后的js或css文件。如不指定改选项,会跳过*-min.css或*-min.js文件。
                                      (e.g. *-min.js; *-min.css)
        --format [type]              输出模式:console (默认)、nocolor 或 vim

Web

fdlint-host

源代码

git clone git://github.com/qhwa/fdev-xray.git

目前进度

公开测试(Beta)中

附录

扫描规则

fdlint's People

Contributors

bencode avatar qhwa avatar

Stargazers

 avatar

Watchers

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