Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tut] Best Solidity Linter

#1
Best Solidity Linter

Rate this post

? A code linter is a static code analysis tool to find programming errors, bugs, style mistakes, and suspicious constructs.

The best Solidity Linter is Ethlint with a close second Solhint. Most other linters are not well qualified to compete with those early tools!

Solidity Linter #1 – Ethlint



Ethlint comes with the popular slogan “yet another Solidity linting tool”.

I think the name is not well chosen because, due the fact that Solidity is super young, there is not a swamp of linting tools available, yet.

You can install it using the following expression:

npm install -g solhint

Here’s how you’d run this:

solhint [options] <file> […other_files]

? Learn More: Ethlint Linting Tool

Solidity Linter #2 – Solhint



Solhint is a linter for Solidity that provides security and a style guide validations.

You can install the Linter using this command:

npm install -g ethlintsolium -V

After initial configuration, the execution is as simple as running this command in your shell:

> npm run solhint

? Learn More: Solhint Linting Tool

I would recommend more but I think those are the two best tools at this point.

If you want to learn Soldity, I’d applause you because this means you rely less on Linters (a goal worth pursuing)! ?

You can check out our in-depth tutorial here:

Learn Solidity Course


Solidity is the programming language of the future.

It gives you the rare and sought-after superpower to program against the “Internet Computer”, i.e., against decentralized Blockchains such as Ethereum, Binance Smart Chain, Ethereum Classic, Tron, and Avalanche – to mention just a few Blockchain infrastructures that support Solidity.

In particular, Solidity allows you to create smart contracts, i.e., pieces of code that automatically execute on specific conditions in a completely decentralized environment. For example, smart contracts empower you to create your own decentralized autonomous organizations (DAOs) that run on Blockchains without being subject to centralized control.

NFTs, DeFi, DAOs, and Blockchain-based games are all based on smart contracts.

This course is a simple, low-friction introduction to creating your first smart contract using the Remix IDE on the Ethereum testnet – without fluff, significant upfront costs to purchase ETH, or unnecessary complexity.




https://www.sickgaming.net/blog/2022/08/...ty-linter/
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [Tut] Solidity Scoping – A Helpful Guide with Video xSicKxBot 0 1,366 03-09-2023, 02:28 AM
Last Post: xSicKxBot
  [Tut] $821,000 Ethereum Value per Solidity Developer xSicKxBot 0 1,323 02-01-2023, 03:38 PM
Last Post: xSicKxBot
  [Tut] Solidity Ether Units, Time Units, and Global Variables xSicKxBot 0 1,222 11-17-2022, 02:30 PM
Last Post: xSicKxBot
  [Tut] Solidity Bytes and String Arrays, Concat, Allocating Memory, and Array Literals xSicKxBot 0 1,206 10-25-2022, 09:13 AM
Last Post: xSicKxBot
  [Tut] Solidity Deep Dive — Syllabus + Video Tutorial Resources xSicKxBot 0 1,321 10-12-2022, 09:22 PM
Last Post: xSicKxBot
  [Tut] State Variables in Solidity xSicKxBot 0 1,285 10-09-2022, 12:31 AM
Last Post: xSicKxBot
  [Tut] Solidity Contract Types, Byte Arrays, and {Address, Int, Rational} Literals xSicKxBot 0 1,364 10-05-2022, 11:55 AM
Last Post: xSicKxBot
  [Tut] How to Install the Solidity Compiler? [Overview + Videos] xSicKxBot 0 1,321 09-26-2022, 01:17 PM
Last Post: xSicKxBot
  [Tut] Solidity File Layout – SPDX License ID and Version Pragmas xSicKxBot 0 1,054 09-22-2022, 03:30 PM
Last Post: xSicKxBot
  [Tut] Solidity Example – Safe Remote Purchase xSicKxBot 0 1,247 09-17-2022, 09:33 AM
Last Post: xSicKxBot

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB Theme © iAndrew 2016