reflective software development, as a service

Menu

checking non-ASCII files with reek

reek doesn’t offer a direct way to specify that your source file is UTF-8 or such, but there is a workaround if you need it. reek 0.3.0 introduced Reek::RakeTask, which makes it easy to run reek from a rakefile. And this task has an attribute ruby_opts, which is an array of strings to be passed as arguments directly to the Ruby interpreter. So you can use reek to check for smells in non-ASCII files by adding something like this to your rakefile: