Skip to content
/ filen Public

Open-source linter to control file size on golang

License

Notifications You must be signed in to change notification settings

DanilXO/filen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

filen

Open-source linter to control file size on Go.

Why filen?

Vertical size of a file should be typically 200 lines, with upper limit of 500, but you can configure it for your project.

  • default maxLines: 500. Very big files are difficult to understand it (probably you have architecture problems)
  • default minLines: 5. Very small files are useless.

Usage

go install github.com/DanilXO/filen/cmd/filen@latest

./filen <path_for_check>

Available parameters:

  • -maxLines int - the maximum number of lines in a file. 500 by default
  • -minLines int - the minimum number of lines in a file. 5 by default
  • -ignoreComments bool - ignore comment lines or not. false by default