Skip to content

Commit 78081da

Browse files
committed
TODO Enable cognitive complexity.
Some of the functions are quite long and complex. This change adds some Clippy warnings that will find them. The warnings can be enabled temporarily while working on refactoring. They should be enabled permanently once refactoring is completed.
1 parent dcd80d7 commit 78081da

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/lib.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@
77
//! 2. Lay out the graph structure according to the branching model (See [graph])
88
//! 3. Render the layout to text or SVG (See [mod@print])
99
10+
/* TODO git-graph has some complex functions, which make it hard to
11+
understand and modify the code. The code should be made simpler
12+
so the following warnings can be enabled without triggering.
13+
14+
// Configure clippy to look for complex functions
15+
#![warn(clippy::cognitive_complexity)]
16+
#![warn(clippy::too_many_lines)]
17+
*/
18+
1019
use git2::Repository;
1120
use std::path::Path;
1221

0 commit comments

Comments
 (0)