osirislab / Project-Ideas

A place to discuss potential projects for students of the ISIS Lab.
385 stars 79 forks source link

Static analysis tool to search for period/comma typos. #29

Open kiwiz opened 11 years ago

kiwiz commented 11 years ago

In European countries, ',' and '.' are reversed when used to delimit thousands/the decimal. This could be the source of a few bugs out there. Write a static analysis tool that looks for these bugs.

One possible approach is to search for the following pattern /(,|.)\d{3}/.

Some other notes: Look for locations where a function is receiving more arguments than it expects. (Perl, Ruby?) Python lists (a = 1,000)