{: rooto:"YARD::CodeObjects::RootObject:@childrenIC:&YARD::CodeObjects::CodeObjectList[o:$YARD::CodeObjects::ModuleObject;IC;[o:&YARD::CodeObjects::ConstantObject: @files[[I"O/Users/patrick/Developer/danger-puppet_lint/lib/puppet_lint/gem_version.rb:ETi:@current_file_has_commentsF: @name: VERSION:@source_type: ruby:@visibility: public: @tags[:@docstrings{:@docstringIC:YARD::Docstring" ; T;[:@ref_tags[: @allI"; T:@unresolved_reference0: @object@ :@namespace@: @pathI"PuppetLint::VERSION; F:@signatureI"VERSION = '0.0.1'.freeze; T: @sourceI"VERSION = '0.0.1'.freeze; T: @valueI"'0.0.1'.freeze; T: @dynamicT: @owner@:@class_mixinsIC;[;"@:@instance_mixinsIC;[;"@:@attributesIC:SymbolHash{: classIC;&{:@symbolize_valueT: instanceIC;&{;(T;(T: @aliases{: @groups[; [[@ i; F;:PuppetLint;;;;;[;{;IC;" ; T;[;[;@;0;@:@ref_tag_recurse_counti;@;I"PuppetLint; Fo; ;IC;[o:#YARD::CodeObjects::ClassObject;IC;[ o:$YARD::CodeObjects::MethodObject:@module_functionF: @scope;);;;I"*Danger::DangerPuppetLint#project_root; F:@parameters[; [[I"J/Users/patrick/Developer/danger-puppet_lint/lib/puppet_lint/plugin.rb; Ti[@0i; T;:project_root;;;[;{;IC;"XThe project root, which will be used to make the paths relative. Defaults to `pwd`.; T;[o:YARD::Tags::Tag :@tag_nameI" return; F: @textI"project_root value; T;0: @types[I" String; T;@+;[;I"~The project root, which will be used to make the paths relative. Defaults to `pwd`. @return [String] project_root value; T;0;@+;-i:@hash_flagF:@line_rangeo: Range: exclF: begini:endi;@);I")def project_root @project_root end; T;I"def project_root; T;!T:@explicitTo;/;0F;1;);;;I"+Danger::DangerPuppetLint#project_root=; F;2[[I" value; T0; [[@0i; T;:project_root=;;;[;{;IC;"XThe project root, which will be used to make the paths relative. Defaults to `pwd`. ; T;[o;4 ;5I" return; F;6I"project_root value; T;0;7[I" String; T;@@;[;@<;0;@@;8F;9@=;@);I"9def project_root=(value) @project_root = value end; T;I"def project_root=(value); T;!To;/;0F;1;);;;I",Danger::DangerPuppetLint#sticky_summary; F;2[; [[@0i[@0i%; T;:sticky_summary;;;[;{;IC;"LDefines if the test summary will be sticky or not. Defaults to `false`.; T;[o;4 ;5I" return; F;6I" sticky; T;0;7[I" Boolean; T;@S;[;I"gDefines if the test summary will be sticky or not. Defaults to `false`. @return [Boolean] sticky; T;0;@S;-i;8F;9o;:;;F;To;/;0F;1;);;;I"-Danger::DangerPuppetLint#sticky_summary=; F;2[[@D0; [[@0i; T;:sticky_summary=;;;[;{;IC;"LDefines if the test summary will be sticky or not. Defaults to `false`. ; T;[o;4 ;5I" return; F;6I" sticky; T;0;7[I" Boolean; T;@g;[;@c;0;@g;8F;9@d;@);I"=def sticky_summary=(value) @sticky_summary = value end; T;I"def sticky_summary=(value); T;!To;/;0F;1;);;;I"$Danger::DangerPuppetLint#report; F;2[[I"file_path; T0; [[@0i-; T;: report;;;[;{;IC;"5Reads a puppet-lint summary file and reports it.; T;[o;4 ;5I" param; F;6I"!Path for puppet-lint report.; T;I"file_path; T;7[I" String; T;@yo;4 ;5I" return; F;6I"; T;0;7[I" void; T;@y;[;I"|Reads a puppet-lint summary file and reports it. @param [String] file_path Path for puppet-lint report. @return [void]; T;0;@y;-i;8F;9o;:;;F;To;/;0F;1;);: private;I")Danger::DangerPuppetLint#run_summary; F;2[[I"report_file; T0; [[@0i4; F;:run_summary;;;[;{;IC;" ; T;[;[;@;0;@;-i;@);I"def run_summary(report_file) warning_count = 0 error_count = 0 # Read line-by-line to determine violations File.readlines(report_file).each do |line| if line.index('WARNING:').nil? == false warning_count += 1 warn(format_violation(line), sticky: false) elsif line.index('ERROR:').nil? == false error_count += 1 fail(format_violation(line), sticky: false) end end # Record the summary message(summary_message(warning_count, error_count), sticky: sticky_summary) end; T;I"!def run_summary(report_file); T;!T;>To;/;0F;1;);;C;I"-Danger::DangerPuppetLint#summary_message; F;2[[I"warning_count; T0[I"error_count; T0; [[@0iG; F;:summary_message;;;[;{;IC;" ; T;[;[;@;0;@;-i;@);I"def summary_message(warning_count, error_count) violations = warning_count + error_count "Puppet-Lint Summary: Found #{violations} violations. #{warning_count} Warnings and #{error_count} Errors." end; T;I"4def summary_message(warning_count, error_count); T;!T;>To;/;0F;1;);;C;I".Danger::DangerPuppetLint#format_violation; F;2[[I"violation; T0; [[@0iQ; T;:format_violation;;;[;{;IC;"=A method that returns a formatted string for a violation; T;[o;4 ;5I" return; F;6I" String; T;0;70;@;[;I"MA method that returns a formatted string for a violation @return String ; T;0;@;-i;8F;9o;:;;F;T;"@);#IC;[;"@);$IC;[;"@);%IC;&{;'IC;&{;(T;)IC;&{;3IC;&{: read@+: write@@;(T;@IC;&{;G@S;H@g;(T;(T;(T;*{;+[; [[@0i; T;:DangerPuppetLint;;;;;[;{;IC;"Shows linter errors and warnings from puppet_lint You'll need [puppet-lint](https://http://puppet-lint.com/) installed and generating a report file to use this plugin; T;[o;4 ;5I" example; F;6I"X puppet-lint ./ > puppet-lint.report danger-puppet_lint.report 'puppet-lint.report'; T;I"Showing summary; T;70;@)o;4 ;5I"see; F;60;I"(IntrepidPursuits/danger-puppet_lint; T;70;@)o;4 ;5I" tags; F;6I" puppet, lint, configuration; T;0;70;@);[;I"kShows linter errors and warnings from puppet_lint You'll need [puppet-lint](https://http://puppet-lint.com/) installed and generating a report file to use this plugin @example Showing summary puppet-lint ./ > puppet-lint.report danger-puppet_lint.report 'puppet-lint.report' @see IntrepidPursuits/danger-puppet_lint @tags puppet, lint, configuration ; T;0;@);-i;8F;9o;:;;F;