Skip to content

Commit

Permalink
Merge branch 'main' into fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
chriscerie authored Oct 26, 2023
2 parents b3a29dc + 2df3dd5 commit ba45535
Show file tree
Hide file tree
Showing 3 changed files with 109 additions and 19 deletions.
120 changes: 106 additions & 14 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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 @@ -133,10 +133,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

0 comments on commit ba45535

Please sign in to comment.