-
-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] [Refactor] Defining clippy rules #91
Merged
kaleidawave
merged 14 commits into
kaleidawave:main
from
JulesGuesnon:refactor/clippy-standards
Dec 4, 2023
Merged
Changes from 1 commit
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
dac0805
refactor(Checker): Moved wrapped arguments inside strucs
JulesGuesnon 55a074e
fix(Checker): Allowing too many arguments
JulesGuesnon e4996ad
fix(Checker): Allowed too many args in synthesis
JulesGuesnon 683c918
feat(Checker): Added clippy::pedantic
JulesGuesnon 78bd71d
wip(Checker): Applying pedantic rules
JulesGuesnon 555e70b
fix(Checker): All the pedantic now passes
JulesGuesnon c7ff384
fix(Parser): All the pedantic now passes
JulesGuesnon 2e12e0a
fix(Ezno): All the pedantic now passes
JulesGuesnon c681084
fix(Parser): Runned formatter
JulesGuesnon f7bbd1d
fix: Made the updates for wasm
JulesGuesnon c74f253
fix(Parser): Added the cfg for fields
JulesGuesnon f2b66f3
refactor(Clippy): Moving rules into workspace
JulesGuesnon 0138ad9
fix(Parser): Allowed pass by value for error
JulesGuesnon c69fe9a
fix(Parser): Removed reference for error
JulesGuesnon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
#![doc = include_str!("../README.md")] | ||
#![deny(clippy::all)] | ||
#![allow( | ||
unreachable_code, | ||
unused_variables, | ||
unused_imports, | ||
unused_mut, | ||
dead_code, | ||
irrefutable_let_patterns, | ||
deprecated | ||
deprecated, | ||
// TODO: Remove when fixed | ||
clippy::result_unit_err | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added this one to by pass the |
||
)] | ||
|
||
pub mod behavior; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#![doc = include_str!("../README.md")] | ||
#![deny(clippy::all)] | ||
#![allow(clippy::new_without_default)] | ||
|
||
mod block; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
#![deny(clippy::all)] | ||
|
||
mod ast_explorer; | ||
mod commands; | ||
mod error_handling; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#![deny(clippy::all)] | ||
use ezno_lib::cli::run_cli; | ||
use std::io; | ||
|
||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder whether
arguments
could be added to theCallingInput
?CallingInput
already encompasses the sort ofhidden
arguments that a function call takes, I wonder whether actual values could also be passed here. Or is there a technical reason?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a reason I didn't add it, it's because
fn call
inchecker/types/callings
takesarguments: &[SynthesisedArgument]
.So if we want to add
arguments
inCallingInput
, it'll mean that we need another struct witharguments
only for this function. Both are fine I think, do you have a preference?