Skip to content

feat(lint): redundant-base-constructor-call#14634

Merged
zerosnacks merged 9 commits into
masterfrom
steven/lint-redundant-base-ctor
May 13, 2026
Merged

feat(lint): redundant-base-constructor-call#14634
zerosnacks merged 9 commits into
masterfrom
steven/lint-redundant-base-ctor

Conversation

@stevencartavia
Copy link
Copy Markdown
Collaborator

New Info lint, redundant-base-constructor-call, that flags explicit empty base-constructor specifiers (is A() or constructor() A() {}) when the base contract either has no constructor or a zero-parameter constructor.

Comment thread crates/lint/src/sol/info/redundant_base_constructor_call.rs Outdated
mablr
mablr previously approved these changes May 7, 2026
Copy link
Copy Markdown
Collaborator

@mablr mablr left a comment

Choose a reason for hiding this comment

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

lgtm 👍

stevencartavia and others added 2 commits May 11, 2026 10:18
…nt-base-ctor

Amp-Thread-ID: https://ampcode.com/threads/T-019e17e2-73a9-75ef-af33-ed3b4770b591
Co-authored-by: Amp <amp@ampcode.com>

# Conflicts:
#	crates/lint/README.md
#	crates/lint/src/sol/info/mod.rs
@zerosnacks zerosnacks requested a review from mablr May 13, 2026 16:05
Comment thread crates/lint/docs/redundant-base-constructor-call.md Outdated
Copy link
Copy Markdown
Member

@zerosnacks zerosnacks left a comment

Choose a reason for hiding this comment

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

lgtm 👍 , applied a minor doc fix in 139e4df

@zerosnacks zerosnacks merged commit 1d8a1be into master May 13, 2026
19 checks passed
@zerosnacks zerosnacks deleted the steven/lint-redundant-base-ctor branch May 13, 2026 19:23
@github-project-automation github-project-automation Bot moved this to Done in Foundry May 13, 2026
p5hzehxa

This comment was marked as off-topic.

p5hzehxa

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants