Skip to content
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

Fix compilation errors #564

Merged
merged 2 commits into from
Oct 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion selene-lib/src/ast_util/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ mod strip_parentheses;
pub mod visit_nodes;

pub use extract_static_token::extract_static_token;
pub use loop_tracker::LoopTracker;
pub use purge_trivia::purge_trivia;
pub use side_effects::HasSideEffects;
pub use strip_parentheses::strip_parentheses;
Expand Down
7 changes: 3 additions & 4 deletions selene-lib/src/lints/high_cyclomatic_complexity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,9 @@ fn count_suffix_complexity(suffix: &ast::Suffix, starting_complexity: u16) -> u1
ast::Suffix::Index(ast::Index::Brackets { expression, .. }) => {
complexity = count_expression_complexity(expression, complexity)
}
#[cfg_attr(
feature = "force_exhaustive_checks",
deny(non_exhaustive_omitted_patterns)
)]
ast::Suffix::Index(ast::Index::Dot { .. }) => {
// Dot indexing doesn't contribute to complexity
}
ast::Suffix::Call(call) => match call {
ast::Call::AnonymousCall(arguments) => {
complexity = count_arguments_complexity(arguments, complexity)
Expand Down