Skip to content

Commit

Permalink
Add YARD options file
Browse files Browse the repository at this point in the history
  - README: images with relative links
  - Generated docs: copy images/ directory as "assets" to the doc/
    output
  • Loading branch information
olleolleolle committed Feb 25, 2017
1 parent 8fcc81f commit 5014892
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .yardopts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
--no-private
--use-cache
--asset images
lib/**/*.rb -
README.md LICENSE.txt CHANGELOG.md
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ RubyCritic
[![Build Status](https://travis-ci.org/whitesmith/rubycritic.svg?branch=master)](https://travis-ci.org/whitesmith/rubycritic)
[![Code Climate](https://codeclimate.com/github/whitesmith/rubycritic/badges/gpa.svg)](https://codeclimate.com/github/whitesmith/rubycritic)

<img src="/images/logo.png" alt="RubyCritic Icon" align="right" />
<img src="./images/logo.png" alt="RubyCritic Icon" align="right" />
RubyCritic is a gem that wraps around static analysis gems such as [Reek][1], [Flay][2] and [Flog][3] to provide a quality report of your Ruby code.

**Table of Contents**
Expand All @@ -28,15 +28,15 @@ This gem provides features such as:

1. An overview of your project:

![RubyCritic overview screenshot](/images/overview.png)
![RubyCritic overview screenshot](./images/overview.png)

2. An index of the project files with their respective number of smells:

![RubyCritic code index screenshot](/images/code.png)
![RubyCritic code index screenshot](./images/code.png)

3. An index of the smells detected:

![RubyCritic smells index screenshot](/images/smells.png)
![RubyCritic smells index screenshot](./images/smells.png)

4. When analysing code like the following:

Expand All @@ -52,11 +52,11 @@ This gem provides features such as:

It basically turns something like this:

![Reek output screenshot](/images/reek.png)
![Reek output screenshot](./images/reek.png)

Into something like this:

![RubyCritic file code screenshot](/images/smell-details.png)
![RubyCritic file code screenshot](./images/smell-details.png)

5. It uses your source control system (only Git, Mercurial and Perforce
are currently supported) to compare your currently uncommitted
Expand Down Expand Up @@ -215,7 +215,7 @@ The current core team consists of:

## Credits

![Whitesmith](/images/whitesmith.png)
![Whitesmith](./images/whitesmith.png)

RubyCritic is maintained and funded by [Whitesmith][9]. Tweet your questions or suggestions to [@Whitesmithco][10].

Expand Down

0 comments on commit 5014892

Please sign in to comment.