All Projects → duaraghav8 → Ethlint

duaraghav8 / Ethlint

Licence: mit
(Formerly Solium) Code quality & Security Linter for Solidity

Programming Languages

javascript
184084 projects - #8 most used programming language
solidity
1140 projects

Projects that are alternatives of or similar to Ethlint

Colonynetwork
Colony Network smart contracts
Stars: ✭ 351 (-49.71%)
Mutual labels:  ethereum, smart-contracts
Eth Crypto
Cryptographic javascript-functions for ethereum and tutorials to use them with web3js and solidity
Stars: ✭ 420 (-39.83%)
Mutual labels:  ethereum, smart-contracts
Solhint
Solhint is an open source project created by https://protofire.io. Its goal is to provide a linting utility for Solidity code.
Stars: ✭ 363 (-47.99%)
Mutual labels:  ethereum, smart-contracts
Populus
The Ethereum development framework with the most cute animal pictures
Stars: ✭ 315 (-54.87%)
Mutual labels:  ethereum, smart-contracts
Baseline
The Baseline Protocol is an open source initiative that combines advances in cryptography, messaging, and blockchain to execute secure and private business processes at low cost via the public Ethereum Mainnet. The protocol will enable confidential and complex collaboration between enterprises without leaving any sensitive data on-chain
Stars: ✭ 479 (-31.38%)
Mutual labels:  ethereum, smart-contracts
Love Ethereum
区块链学习
Stars: ✭ 323 (-53.72%)
Mutual labels:  ethereum, smart-contracts
React Ethereum Dapp Example
A starter boilerplate for an Ethereum dapp using web3.js v1.0, truffle, react, and parity
Stars: ✭ 384 (-44.99%)
Mutual labels:  ethereum, smart-contracts
Alpha
Follow the white rabbit 🐇
Stars: ✭ 304 (-56.45%)
Mutual labels:  ethereum, smart-contracts
Web3swift
Elegant Web3js functionality in Swift. Native ABI parsing and smart contract interactions on Ethereum network.
Stars: ✭ 462 (-33.81%)
Mutual labels:  ethereum, smart-contracts
Smart Contract Best Practices
A guide to smart contract security best practices
Stars: ✭ 4,784 (+585.39%)
Mutual labels:  ethereum, smart-contracts
Nmr
The Numeraire Ethereum Smart Contract
Stars: ✭ 316 (-54.73%)
Mutual labels:  ethereum, smart-contracts
Btcrelay
Ethereum contract for Bitcoin SPV: Live on https://etherscan.io/address/0x41f274c0023f83391de4e0733c609df5a124c3d4
Stars: ✭ 533 (-23.64%)
Mutual labels:  ethereum, smart-contracts
Uniswap V1
🐍Uniswap V1 smart contracts
Stars: ✭ 313 (-55.16%)
Mutual labels:  ethereum, smart-contracts
Ethereum Php
PHP interface to Ethereum JSON-RPC API. Fully typed Web3 for PHP 7.X
Stars: ✭ 343 (-50.86%)
Mutual labels:  ethereum, smart-contracts
Embark
Framework for serverless Decentralized Applications using Ethereum, IPFS and other platforms
Stars: ✭ 3,478 (+398.28%)
Mutual labels:  ethereum, smart-contracts
Buidl
A browser-based IDE for creating, deploying, and sharing blockchain apps (DApps, or decentralized apps). Publish your first blockchain DApps in 5 minutes! Here is how: https://docs.secondstate.io/buidl-developer-tool/getting-started
Stars: ✭ 376 (-46.13%)
Mutual labels:  ethereum, smart-contracts
Web3j
Lightweight Java and Android library for integration with Ethereum clients
Stars: ✭ 3,537 (+406.73%)
Mutual labels:  ethereum, smart-contracts
Web3.swift
A pure swift Ethereum Web3 library
Stars: ✭ 295 (-57.74%)
Mutual labels:  ethereum, smart-contracts
Blockchainstore
💰 Retail Store that runs on Ethereum
Stars: ✭ 425 (-39.11%)
Mutual labels:  ethereum, smart-contracts
Web3.php
A php interface for interacting with the Ethereum blockchain and ecosystem. Native ABI parsing and smart contract interactions.
Stars: ✭ 507 (-27.36%)
Mutual labels:  ethereum, smart-contracts


Build Status Gitter chat

Ethlint (Formerly Solium) analyzes your Solidity code for style & security issues and fixes them.

See Documentation, Changelog and upcoming releases.

Before beginning to work on a contribution, please read the Guidelines.

Install

npm install -g ethlint
solium -V

For backward-compatibility, you can still use npm install -g solium.

If you're currently using the solium package for npm install, it is highly recommended that you move to ethlint. The solium package will not receive updates after December, 2019. There are no differences between the updates pushed to ethlint and solium packages.

Usage

In the root directory of your DApp:

solium --init

This creates 2 files for you:

  • .soliumignore - contains names of files and directories to ignore while linting
  • .soliumrc.json - contains configuration that tells Solium how to lint your project. You should modify this file to configure rules, plugins and sharable configs.

.soliumrc.json looks like:

{
  "extends": "solium:recommended",
  "plugins": ["security"],
  "rules": {
    "quotes": ["error", "double"],
    "indentation": ["error", 4],
    "linebreak-style": ["error", "unix"]
  }
}

To know which lint rules Solium applies for you, see Style rules and Security rules.


NOTE

Solium does not strictly adhere to Solidity Style Guide. It aims to promote coding practices agreed upon by the community at large.


Lint

solium -f foobar.sol
solium -d contracts/

Configure with comments

Comment Directives can be used to configure Solium to ignore specific pieces of code. They follow the pattern solium-disable<optional suffix>.

If you only use the directive, Solium disables all rules for the marked code. If that's not desirable, specify the rules to disable after the directive, separated by comma.

  • Disable linting on a specific line
contract Foo {
	/* solium-disable-next-line */
	function() {
		bytes32 bar = 'Hello world';	// solium-disable-line quotes

		// solium-disable-next-line security/no-throw, indentation
						throw;
	}
}
  • Disable linting on entire file
/* solium-disable */

contract Foo {
	...
}

Fix

Solium automatically fixes your code to resolve whatever issues it can.

solium -d contracts/ --fix

Our supporters

Ethereum Augur    Gitcoin

If Ethlint helped make your life simpler, please consider donating ETH to 0xacc661A56af9793a4437876a52F4Ad3fc3C443d6

IDE and Editor Integrations | Documentation | Demo Video

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].