# Cane: failing your build for code quality problems

DevFeed: [Cane: failing your build for code quality problems](<https://devfeed.tech/articles/cane-failing-your-build-for-code-quality-problems-15568.md>)

Original publisher: [Read original article](<https://developer.squareup.com/blog/cane-failing-your-build-for-code-quality-problems>)

Author: Square Engineering

Published: 2012-02-13T17:00:00Z

Content type: release

Language: en

Sources: [Square Corner Blog RSS Feed](<https://devfeed.tech/sources/square-corner-blog-rss-feed.md>)

Topics: [Code quality](<https://devfeed.tech/topics/code-quality.md>), [Ruby](<https://devfeed.tech/topics/ruby.md>), [Automation](<https://devfeed.tech/topics/automation.md>), [Code review](<https://devfeed.tech/topics/code-review.md>)

Tags: [automated](<https://devfeed.tech/tags/automated.md>), [automation](<https://devfeed.tech/tags/automation.md>), [code](<https://devfeed.tech/tags/code.md>), [code-quality](<https://devfeed.tech/tags/code-quality.md>), [code-review](<https://devfeed.tech/tags/code-review.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [ruby](<https://devfeed.tech/tags/ruby.md>)

## AI overview

Square introduces Cane, a Ruby 1.9 gem that automates code-quality checks and can fail builds when configurable thresholds are violated. It checks issues including method complexity, whitespace, missing documentation, and missing code coverage.

## Source excerpt

A new gem for Ruby 1.9 to assist in keeping code quality high.