Skip to content

eray-can/cycle-detect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cycle-detect

English | Türkçe

Motivation

Hi there! I'm Eray, a software developer who is new to Golang. I was fascinated by the language, but I often encountered import cycle errors which became a problem for me over time. Especially after writing code for a long time, tracking these errors in a project made it difficult to track the import statements used.

Based on this problem I experienced, I thought: Why not have a project that shows directly in which file the import cycles are? With this idea, I created this project to prevent people from facing similar problems and to offer a more efficient development process. This way, you can quickly identify and resolve import cycle errors, making the development process smoother.

Getting Started

Cycle detect is a process that aims to detect cyclic dependencies in import operations within the source code of a program. In other words, it is an analysis process that determines the situation where a module or package directly or indirectly imports another module and this operation creates a loop. Cycle detect guides software developers to resolve such dependencies by identifying the problem in advance in terms of code organization and maintenance.

Installation

go install

Use Go 1.20:


git clone https://github.com/eray-can/cycle-detect.git

Usage

The usage is very simple. All you need to do is download the project, define your file path and run it. You can follow the example below.

//You just need to give the file path of the related golang project to the 'project_path' variable from the detect.toml file

img.png Detect.toml You can access the detect.toml file here


func main() {

    engine := runner.NewEngine()
    engine.Run()
    defer engine.Close()

}

You can access the Main: file here


Contact

If you have any questions, suggestions or feedback, please do not hesitate to contact me.

You can also reach me via GitHub. You can report bugs or contribute to the project by opening an issue.

About

A project to make sense of import cycle errors

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages