mercadolibre / arcanist-extensions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Arc Extensions

(Because we couldn't find a better name!)

Installation

From command line, run:

$ ./scripts/install.sh install

It will request your password to run with sudo the few steps it needs.

After execution, the library will be installed under /usr/local/opt/arc-lint, and the install.sh script will be accesible under /usr/local/bin/arc-extensions and /usr/local/bin/arclintstaller

Upgrading

Once installed, the library can be easily upgraded by running from command line:

$ arc-extensions update [version]

By default, it will get the latest stable release, but you can specify any version number.

Using the library with other projects

In your arcanist project of choice, add the following to your .arcconfig:

{
...
    "load": [
        "/usr/local/opt/arc-lint"
    ]
...
}

Available Linters

ESLint

ESLint is a highly customizable, flexible javascript linter. It depends on Esprima for AST parsing and nodejs as the runtime.

Sass (scss-lint)

SCSS Lint is a ruby gem that checks both the style and common mistakes in your Sass files. It can also check some Compass extensions too!

CPD

PMD's Copy Paste Detector is available as a stand alone tool for over a dozen different languages including Swift, Objective-C, Java, Python, Go, Javascript, PHP, Ruby and many more.

Maven & Gradle projects

We support Maven and Gradle projects performing a single run to generate a bunch of different reports. The extension efficiently performs the tasks needed just for the required lint providers.

Adding new providers to extend this feature set is easy.

Supported providers:

Checkstyle

Checkstyle is a generic style checker for Java.

PMD

PMD is a source code analyzer. It finds common programming flaws like unused variables, empty catch blocks, unnecessary object creation, and so forth. It supports Java, JavaScript, Salesforce.com Apex, PLSQL, Apache Velocity, XML, XSL.

FindBugs

FindBugs is a tool to analyze JVM bytecode in search of errors and inneficient idioms. Applicable to any project compiling into JVM bytecode (Scala, Groovy, Java, and so on).

CPD

PMD's Copy Paste Detector. Besides being supported as stand-alone, it can also be used as part of a Gradle / Maven build.

Codenarc

Codenarc nalyzes Groovy code for defects, bad practices, inconsistencies, style issues and more.

Android Lint - Gradle only

Android Lint can help you to easily identify and correct problems with the structural quality of your code, without having to execute the app or write any test cases.

OCLint

OCLint is an Objective-C linter and style checker. Integrated with clang's static anayzer.

ShellCheck

ShellCheck finds bugs in your shell scripts.

TSLint

TSLint checks your TypeScript code for readability, maintainability, and functionality errors.

Filename Regexp

Runs a custom regular expression against filenames, to apply arbitrary file naming rules (ie: using a given preffix).

Regexp

Runs a custom regular expression against file contents, searching for invalid strings and optionally providing an autofix.

Indentation

A generic indentation analyzer. Currently only supports json and xml files.

Available Unit Engines

GradleUnitTestEngine

Runs gradle with the test target, obtaining XUnit results from build/test-results/

MavenUnitTestEngine

Runs maven with the test target, obtaining XUnit results from target/surefire-reports/

XcodebuildUnitTestEngine

Runs unit tests as configured from XCode

About

License:Apache License 2.0


Languages

Language:PHP 95.4%Language:Shell 4.5%Language:Makefile 0.1%