Sha256: 1f2ba17244496d52275cfc348dc037e702ed867cacc398c8f20c486a1c04892a
Contents?: true
Size: 1.95 KB
Versions: 1
Compression:
Stored size: 1.95 KB
Contents
# skeptic _Skeptic_ is a *very* experimental static code analyzer for Ruby 1.9. It points out annoying things in your Ruby code. I am using it for a [Ruby course in the University of Sofia](http://fmi.ruby.bg/). All the assignments the students hand it should adhere to specific style, that is automatically checked with Skeptic. Assignments that fail to meet the criteria are rejected outright. The main assumption is the "theory" of constraints - when one operates under constraints, one is more creative and ends up learning more. You should probably not use it for anything. ## Installation Skeptic can be installed as a Ruby gem, either via `gem install skeptic`, or better yet via Bundler. Make sure that you have the `aspell` package installed in your system, along with its shared libraries (`libaspell`). If you're on OS X, you can use [Homebrew](http://brew.sh/) to do that: brew install aspell On other Linux/Unix distributions, you are free to use a package manager or another installation method of choice. For Windows systems, check out [GNU Aspell for Win32](http://aspell.net/win32/). Install Aspell using the "Full Installer" linked in that page, then locate `aspell-15.dll` in the installation and copy it somewhere in your `PATH` as `aspell.dll`. ## Rules Skeptic checks if the code complies to a number of rules and reports the violations. Here is a list of the rules: * **Valid syntax** - skeptic can check if your syntax is valid. * **Line length** - line length does not exceed a certain number. * **Lines per method** - methods are at most N lines long. Ignores empty lines and lines with `end` * **Max nesting depth** - at most N levels of nesting. Blocks, conditions and loops are considered a level of nesting. * **No semicolons** - stops you from using semicolons as expression delimiters. * **No trailing whitespace** - points out if your lines end on whitespace. ## Copyright Copyright (c) 2011 Stefan Kanev. See LICENSE.txt for further details.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
skeptic-0.0.8 | README.markdown |