Skip to content

Releases: ScopeLift/scopelint

v0.1.0

24 Feb 04:39

Choose a tag to compare

  • feat/2: add SPDX license header validation for source files #40
  • feat/2: add scopelint fmt --check #41
  • chore/1: run cargo fmt #42
  • docs/2: add DEV.md #43
  • feat/2: ignore spec for contract with no functions #44
  • feat/2: add scopelint fmt --show-internal #45
  • feat/2: add variable name validation #46
  • feat/2: ensure event has ContractName_ prefix #47
  • feat/2: add eip712_typehash validator #48
  • feat: add scopelint: ignore directive #49
  • Ensure error have ContractName_ as prefix
  • chore: enable rules for handler files #52
  • feat: report unused imports #53
  • fix: allow interface to be defined in script #54
  • chore: ensure scopelint check runs if folder is not present #55
  • chore: unused import account for @inheritdoc #56
  • feat: implement scopelint ignore #57
  • feat: strip transient keyword so solang_parser can process #58
  • chore: rely on foundry.toml for path #59
  • feat: add scopelint fix #60

v0.0.21

20 Jun 15:05
a1441eb

Choose a tag to compare

What's Changed

  • Allow multiple public methods in scripts as long as there is at least one run method by @garyghayrat in #38

New Contributors

Full Changelog: v0.0.20...v0.0.21

v0.0.20

13 Sep 18:24
910c40c

Choose a tag to compare

What's Changed

With #35 we introduce support // scopelint: <directive> to disable the scopelint checks for certain lines of code. For now, to avoid introducing a config file, we only support comment-style directives:

  • // scopelint: disable-line to disable the current line
  • // scopelint: disable-next-line to disable the below line
  • // scopelint: disable-start and // scopelint: disable-end to disable regions
    • Use // scopelint: disable-start with no end to disable everything below it
  • // scopelint: disable-next-item disables the next code item regardless of new lines

Note that these are for scopelint specific checks only, disabling forge fmt checks still requires the // forgefmt: disable-* commands

Note: The disable-next-item does not always seem to work properly—need to debug further and fix in a future release, but the other directives should work as expected

Full Changelog: v0.0.19...v0.0.20

v0.0.19

05 Sep 16:06
76c8f01

Choose a tag to compare

What's Changed

  • feat: allow _RevertGiven_ as part of the allowed naming convention by @mds1 in #33
  • feat: stricter test naming convention checks by @mds1 in #33
  • build: update dependencies by @mds1 in #33

Full Changelog: v0.0.18...v0.0.19

v0.0.18

23 May 17:53
ff38839

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.0.17...v0.0.18

v0.0.17

28 Mar 23:01
ad0f0f7

Choose a tag to compare

What's Changed

  • fix: ignore libraries for leading underscore checks by @mds1 in #27

Full Changelog: v0.0.16...v0.0.17

v0.0.16

10 Mar 15:37

Choose a tag to compare

What's Changed

  • feat: adds scopelint spec command to generate specs from unit tests by @mds1 in #21
  • chore: support new solc language features by bumping solang by @mds1 in #23

Full Changelog: v0.0.15...v0.0.16

v0.0.15

10 Mar 14:26
1857e39

Choose a tag to compare

What's Changed

Just a refactor to clean up the code and and tests

Full Changelog: v0.0.14...v0.0.15

v0.0.14

02 Feb 20:28
ff7cbb6

Choose a tag to compare

What's Changed

New in v0.0.14

  • fix: allow numbers in constant/immutable variable names by @mds1 in #16

New in v0.0.13

These were included in v0.0.13 which was released, but not tagged on GitHub

  • feat/test: more robust regexes, add tests by @mds1 in #12
  • refactor/modules by @mds1 in #13
  • add CLI tests by @mds1 in #14
  • ci: update actions/checkout, enable fail-fast, nightly to stable by @mds1 in #15

Full Changelog: v0.0.12...v0.0.14

v0.0.12

02 Dec 18:04
d3bff51

Choose a tag to compare

What's Changed

  • fix: don't check non-solidity files by @jferas in #7
  • refactor: solang by @mds1 in #8
  • bug fixes, bring back line numbers, better error messages by @mds1 in #9
  • treat *.s.sol files as scripts, other files are not treated that way, by @mds1 in #9

Full Changelog: v0.0.11...v0.0.12