Tasks.cs
Method DoTask
has a Cognitive Complexity of 80 (exceeds 20 allowed). Consider refactoring. Open
Open
public static void DoTask(Task task)
{
switch (task.Type)
{
case Type.FileSystemDelete:
- Read upRead up
- Create a ticketCreate a ticket
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Method DoTask
has 97 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static void DoTask(Task task)
{
switch (task.Type)
{
case Type.FileSystemDelete:
- Create a ticketCreate a ticket
TODO found Open
Open
// TODO: Check these per parameter. We might be given a procID and a file
- Create a ticketCreate a ticket
- Exclude checks
TODO found Open
Open
case Type.ComparePermissions: // TODO: What do I want from this?
- Create a ticketCreate a ticket
- Exclude checks
TODO found Open
Open
/** TODO: Create template functions for each task. Result will resemble the System.Threading.Task namespace */
- Create a ticketCreate a ticket
- Exclude checks
TODO found Open
Open
// TODO: try to close the handle(s) of the file; Employ
- Create a ticketCreate a ticket
- Exclude checks
TODO found Open
Open
// TODO: Compare RegKey ACLs; Difficulty: easier than processes
- Create a ticketCreate a ticket
- Exclude checks
TODO found Open
Open
// TODO: determine if we can obtain permission to continue
- Create a ticketCreate a ticket
- Exclude checks