Module: Policial

Defined in:
lib/policial.rb,
lib/policial/line.rb,
lib/policial/patch.rb,
lib/policial/commit.rb,
lib/policial/version.rb,
lib/policial/detective.rb,
lib/policial/violation.rb,
lib/policial/commit_file.rb,
lib/policial/pull_request.rb,
lib/policial/config_loader.rb,
lib/policial/style_checker.rb,
lib/policial/unchanged_line.rb,
lib/policial/style_guides/base.rb,
lib/policial/style_guides/ruby.rb,
lib/policial/style_guides/scss.rb,
lib/policial/pull_request_event.rb,
lib/policial/style_guides/javascript.rb,
lib/policial/style_guides/coffeescript.rb

Overview

Public: The gem version.

Defined Under Namespace

Modules: StyleGuides Classes: Commit, CommitFile, ConfigLoader, Detective, Line, Patch, PullRequest, PullRequestEvent, StyleChecker, UnchangedLine, Violation

Constant Summary collapse

DEFAULT_STYLE_GUIDES =
[
  Policial::StyleGuides::Ruby,
  Policial::StyleGuides::CoffeeScript,
  Policial::StyleGuides::JavaScript
].freeze
OPTIONAL_STYLE_GUIDES =
[
  Policial::StyleGuides::Scss
].freeze
VERSION =
'0.0.4'

Class Method Summary collapse

Class Method Details

.style_guidesObject



39
40
41
# File 'lib/policial.rb', line 39

def style_guides
  @style_guides ||= DEFAULT_STYLE_GUIDES.dup
end

.style_guides=(style_guides) ⇒ Object



43
44
45
# File 'lib/policial.rb', line 43

def style_guides=(style_guides)
  @style_guides = style_guides
end