Skip to content

Conversation

@adamegyed
Copy link
Contributor

Motivation

We have some inconsistent code style throughout the codebase, and linter warnings slip through the CI because they don't return 1 on warnings.

Solution

Update the linter to fail-on-warn

  • Fix function ordering issue in SingleSignerValidation

Add additional config to forge formatter:

  • Sort imports
  • Add underscores to big numbers
  • Enforce long-form value types (uint256 over uint)

Also adjusts the plugin metadata fields to not be exported twice, by having both a public field and a view function to get them.

@adamegyed adamegyed requested a review from a team July 17, 2024 15:41
Copy link
Collaborator

@howydev howydev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is amazing

@adamegyed adamegyed merged commit 70ccd3e into v0.8-develop Jul 17, 2024
@adamegyed adamegyed deleted the adam/cleanup-1 branch July 17, 2024 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants