0.3.0 • Published 2 years ago

@samatech/cadence-lint v0.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Description

A command line linter for Cadence (Flow smart contract language). It uses the Flow CLI to start a language server, and passes Cadence files described via glob pattern.

Usage

Install

Install globally

npm i -g @samatech/cadence-lint

Install to local project

npm i -D @samatech/cadence-lint

Run

Basic usage

cadence-lint -f "./contracts/**/*.cdc"

Options

OptionAbbr.DefaultDescription
--files-f"./*/.cdc"Comman separated file glob, based on fast-glob
--configPath-p"./flow.json"Path to flow.json
--failOnWarning--failOnWarning-Flag that causes the linter to fail when warnings are detected
--failOnHint--failOnHint-Flag that causes the linter to fail when hints are detected
--help-h-Display usage info
--version-v-Display version info