Giter VIP home page Giter VIP logo

devops-extension-cflint's Introduction

CFLint Scan

CFLint is a linter for CFML and you can find more information at its GitHub repository. This extension integrates CFLint into your builds.

Content

Installation

Installation can be done using Visual Studio MarketPlace.

*Java must be installed on the maching at this time

Source Code

Source code can be found on GitHub.

What The Build Step Does

This build step is running cfLint against your code with using the CFLint. The result is reported as a section on the build summary page.

Result is reported on the build summary page

Usage

Add the task to your build configuration:

On-Premise

Add cfLint task

Azure DevOps yml task

- task: cflint@1
  inputs:
    workingFolder: '' #starting folder to start scanning
    cflintJarDownloadUrl: 'https://github.com/cflint/CFLint/releases/download/CFLint-1.5.0/CFLint-1.5.0-all.jar'
    cflintarguments: '' #extra arguments you want to pass along

Arguments have to be specified:

  • By default the cfLint is running in the root of the repository, you can modify that in the advanced settings as the working folder task parameter.

  • By default the cfLint jar is downloaded from the url: https://github.com/cflint/CFLint/releases/download/CFLint-1.5.0/CFLint-1.5.0-all.jar:

    • You can change overwrite it to a different version if needed
    • But now file shares and local files are supported to such as:
    file://my-file-share/public/software/cflint.jar

    or

    ./cflint.jar

Linting

This extension uses the CFLint tool to scan CFML files and provide feedback on potential issues. The linter optionally takes rule configuration via a .cflintrc file, for which details can be found at CFLint's repo.

Known Issues/Limitations

  1. Not an issue with the extension itself, but be aware that CFLint is a heavy/slow application compared to most linters, especially when used through the command line. Some things are done with the extension to account for this.
  2. As of this writing, CFLint (v1.5.0) often misreports issue location.

devops-extension-cflint's People

Contributors

dependabot[bot] avatar joshknutson avatar

Watchers

 avatar  avatar  avatar

Forkers

zakarym

devops-extension-cflint's Issues

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.