Skip to content

Commit

Permalink
refactor/cleaner (#17)
Browse files Browse the repository at this point in the history
* refactor: pull fmt and version into their own modules

* refactor: pull checks into new module

* refactor: extract formatting check

* refactor(wip): pull test names check into its own file

* setup new approach

* migrate another check

* migrate another check to new format

* add visibility summary trait

* migrate constant names check to new format

* cleanup

* more refactoring and cleanup

* extract is_matching_file_method

* some formatting check changes

* add tests to each check

* dry up tests

* add template check

* better variable name

* use clap

* clippy

* update docs and clean function sigs

* rename format to fmt

* ci: add missing foundry installation

* chore: remove unused module

* small cleanup
  • Loading branch information
mds1 authored Feb 22, 2023
1 parent ff7cbb6 commit 8566fc1
Show file tree
Hide file tree
Showing 21 changed files with 1,196 additions and 579 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
profile: minimal
toolchain: stable
override: true
- uses: foundry-rs/foundry-toolchain@v1
- run: cargo test --locked --all-features

lint:
Expand Down
220 changes: 204 additions & 16 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
version = "0.0.14"

[dependencies]
clap = { version = "4.1.6", features = ["derive"] }
colored = "2.0.0"
once_cell = "1.16.0"
regex = "1.6.0"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ScopeLint

A simple and opinionated tool designed to for basic formatting/linting of Solidity and TOML code in foundry projects.
A simple and opinionated tool designed for basic formatting/linting of Solidity and TOML code in foundry projects.

## Overview

Expand Down
Loading

0 comments on commit 8566fc1

Please sign in to comment.