Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
rust-lang
/
rust-clippy
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
2.2k
Star
13.5k
Code
Issues
2.5k
Pull requests
364
Discussions
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Wiki
Security and quality
Insights
New Lint:
branches_sharing_code
- #6463
#6463
Merged
bors
merged 11 commits into
rust-lang:master
rust-lang/rust-clippy:master
from
xFrednet:5234-shared-code-in-if-blocks
xFrednet/rust-clippy:5234-shared-code-in-if-blocks
Copy head branch name to clipboard
Apr 5, 2021
Conversation
Commits
11
(11)
Checks
Files changed
Merged
New Lint:
branches_sharing_code
#6463
bors
merged 11 commits into
rust-lang:master
rust-lang/rust-clippy:master
from
xFrednet:5234-shared-code-in-if-blocks
xFrednet/rust-clippy:5234-shared-code-in-if-blocks
Copy head branch name to clipboard
Commits
Commits on Apr 5, 2021
Added documentation to the multispan_sugg method
xFrednet
committed
232e2b7
View commit details
Copy full SHA for 232e2b7
Browse repository at this point
A new lint for shared code in if blocks
Show description for d1df732
xFrednet
committed
d1df732
View commit details
Copy full SHA for d1df732
Browse repository at this point
The shared_code_in_if_blocks lint only operats on entire if expr not else ifs
xFrednet
committed
469ff96
View commit details
Copy full SHA for 469ff96
Browse repository at this point
Improved shared_code_in_if_blocks output readability and added tests
xFrednet
committed
8efc6ac
View commit details
Copy full SHA for 8efc6ac
Browse repository at this point
Improved shared_code_in_if_blocks message and added test stderrs
xFrednet
committed
b1d26e5
View commit details
Copy full SHA for b1d26e5
Browse repository at this point
Updated code for dogfood
xFrednet
committed
65ed5a6
View commit details
Copy full SHA for 65ed5a6
Browse repository at this point
Adapted the lint to use the new SpanlessEq
xFrednet
committed
c74e49e
View commit details
Copy full SHA for c74e49e
Browse repository at this point
Moving shared_code_in_if_blocks to clippy::complexity and running lintcheck
xFrednet
committed
617c65b
View commit details
Copy full SHA for 617c65b
Browse repository at this point
Only running shared_code_in_if_blocks only for if statements
xFrednet
committed
8c0b4d7
View commit details
Copy full SHA for 8c0b4d7
Browse repository at this point
Test for empty blocks and update from master
xFrednet
committed
7c9e192
View commit details
Copy full SHA for 7c9e192
Browse repository at this point
Renaming the lint to branches_sharing_code and fixing typos
xFrednet
committed
a6f54f5
View commit details
Copy full SHA for a6f54f5
Browse repository at this point
You can’t perform that action at this time.