Skip to content

WestleyR/clint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clint - Simple linter writen in C

This simple linter can convert spaces to tabs, and tabs to spaces!


Install

git clone https://github.com/WestleyR/clint
cd clint/
make
sudo make install

Usage

To convert tabs to spaces in this go file:

$ clint -s hello.go

Note: This will NOT mess up your gofmt assied from changing the tabs.


To convert spaces to tabs in this file:

$ clint -t hello.c

Again, this wont screw-up any formatting you have.

You can also add the -v, --verbose flag to be more verbose:

$ clint -vs hello.go 
VERBOSE: Converting tabs to 4 spaces.
Done: hello.go
VERBOSE: Total tabs replaced: 519