-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add linting #64
base: main
Are you sure you want to change the base?
Add linting #64
Conversation
Co-authored-by: Hans Ott <[email protected]>
src/sql_injection/tokenize_query.rs
Outdated
match tokenizer.tokenize() { | ||
Ok(tokens) => tokens, // Return the tokens if successful | ||
Err(_e) => { | ||
Vec::new() // Return empty vector if unsuccessfull. |
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 use this place often to add a dbg!(_e)
statement 😬
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.
Changed back and added a linter ignore comment.
Whitespace::MultiLineComment(_) => true, | ||
_ => false, | ||
}; | ||
let whitespace_is_comment = matches!( |
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.
covered?
#[no_mangle] | ||
pub extern "C" fn detect_sql_injection( | ||
pub unsafe extern "C" fn detect_sql_injection( |
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.
required?
Codecov ReportAttention: Patch coverage is
📢 Thoughts on this report? Let us know! |
…nting * 'main' of github.com:AikidoSec/zen-internals: Add comments Ignore ffi and wasm bindings module
No description provided.