How Pretty is your code?

M

Mateusz Tybura

I've just uploaded my new ruby project Pretty. It's simple tool to check
your code. In release 0.1 it checks:
- 1st line for shebang
- how long are lines, how many tabulations you use, do you use ;
In next release i'll add check for global variables and maybe more
 
S

Suraj Kurapati

Mateusz said:
I've just uploaded my new ruby project Pretty. It's simple tool to check
your code. In release 0.1 it checks:
- 1st line for shebang
- how long are lines, how many tabulations you use, do you use ;
In next release i'll add check for global variables and maybe more

FYI, this project is available on RubyForge:

http://rubyforge.org/projects/pretty/
 
J

Jan Friedrich

Mateusz Tybura said:
I've just uploaded my new ruby project Pretty. It's simple tool to check
your code. In release 0.1 it checks:
- 1st line for shebang
Hm, what if I don't want a shebang line for example in a library file
which should not run as an independant script?

By the way the actual version on rubyforge has a bug in line 22 if there
is no shebang line in a file. Do you know the difference between = and <<?
- how long are lines, how many tabulations you use
The most Ruby programmers use two spaces for indentination, so there will
be no tabs everywhere. ;-)

The idea of checking some coding rules can be helpful but be aware about
the assumtions you take. ;-)

Regards
Jan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,202
Messages
2,571,057
Members
47,660
Latest member
vidotip479

Latest Threads

Top