.yardoc/objects/root.dat in danger-go-0.0.3 vs .yardoc/objects/root.dat in danger-go-0.0.4

- old
+ new

@@ -1,57 +1,57 @@ {: rooto:"YARD::CodeObjects::RootObject:@childrenIC:&YARD::CodeObjects::CodeObjectList[o:$YARD::CodeObjects::ModuleObject;IC;[o:&YARD::CodeObjects::ConstantObject: @files[[I"</Users/user/Desktop/danger-go/lib/golint/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"Golint::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{: +@pathI"Golint::VERSION; F:@signatureI"VERSION = '0.0.4'.freeze; T: @sourceI"VERSION = '0.0.4'.freeze; T: @valueI"'0.0.4'.freeze; T: @dynamicT: @owner@:@class_mixinsIC;[;"@:@instance_mixinsIC;[;"@:@attributesIC:SymbolHash{: classIC;&{:@symbolize_valueT: instanceIC;&{;(T;(T: @aliases{: @groups[; [[@ i; F;: Golint;;;;;[;{;IC;" ; T;[;[;@;0;@:@ref_tag_recurse_counti;@;I" Golint; Fo; ;IC;[o:#YARD::CodeObjects::ClassObject;IC;[o:$YARD::CodeObjects::MethodObject:@module_functionF: @scope;);;;I"#Danger::DangerGolint#base_dir=; F:@parameters[[I" -value; T0; [[I"7/Users/user/Desktop/danger-go/lib/golint/plugin.rb; Ti; T;:base_dir=;;;[;{;IC;"NRoot directory from where golint will run. +value; T0; [[I"7/Users/user/Desktop/danger-go/lib/golint/plugin.rb; Ti; T;:base_dir=;;;[;{;IC;"NRoot directory from where golint will run. Defaults to current directory. ; T;[o:YARD::Tags::Tag :@tag_nameI" return; F: @textI"; T;0: @types[I" String; T;@+;[;I"_Root directory from where golint will run. Defaults to current directory. @return [String]; T;0;@+:@hash_flagF:@line_rangeo: Range: exclF: -begini:endi;@);I"1def base_dir=(value) +begini:endi;@);I"1def base_dir=(value) @base_dir = value end; T;I"def base_dir=(value); T;!To; -; [[@2i; F;:MARKDOWN_TEMPLATE;;;;;[;{;IC;" ; T;[;[;@;0;@A;@);I",Danger::DangerGolint::MARKDOWN_TEMPLATE; F;I"MARKDOWN_TEMPLATE = \; T;I"MARKDOWN_TEMPLATE = \ -'## DangerGo found issues\n\n'\ -'| File | Line | Column | Reason |\n'\ -'|------|------|--------|--------|\n'.freeze; T; I"x'## DangerGo found issues\n\n'\ -'| File | Line | Column | Reason |\n'\ -'|------|------|--------|--------|\n'.freeze; T;!To;/;0F;1;);;;I""Danger::DangerGolint#base_dir; F;2[; [[@2i; F;: base_dir;;;[;{;IC;" ; T;[;[;@;0;@M;-i;@);I"(def base_dir +; [[@2i; F;:MARKDOWN_TEMPLATE;;;;;[;{;IC;" ; T;[;[;@;0;@A;@);I",Danger::DangerGolint::MARKDOWN_TEMPLATE; F;I"MARKDOWN_TEMPLATE = \; T;I"MARKDOWN_TEMPLATE = \ +"## DangerGo found issues\n\n"\ +"| File | Line | Column | Reason |\n"\ +"|------|------|--------|--------|\n".freeze; T; I"x"## DangerGo found issues\n\n"\ +"| File | Line | Column | Reason |\n"\ +"|------|------|--------|--------|\n".freeze; T;!To;/;0F;1;);;;I""Danger::DangerGolint#base_dir; F;2[; [[@2i; F;: base_dir;;;[;{;IC;" ; T;[;[;@;0;@M;-i;@);I"(def base_dir @base_dir || '.' -end; T;I"def base_dir; T;!T:@explicitTo;/;0F;1;);;;I"Danger::DangerGolint#lint; F;2[; [[@2i); T;: lint;;;[;{;IC;"~Lints go files. +end; T;I"def base_dir; T;!T:@explicitTo;/;0F;1;);;;I"Danger::DangerGolint#lint; F;2[; [[@2i&; T;: lint;;;[;{;IC;"~Lints go files. Generates `errors` and `warnings` due to golint's config. Will try to send inline comment if supported(Github); T;[o;4 ;5I" return; F;6I"; T;0;7[I" void; T;@Y;[;I"Lints go files. Generates `errors` and `warnings` due to golint's config. Will try to send inline comment if supported(Github) @return [void] -; T;0;@Y;-i;8F;9o;:;;F;<i#;=i(;@);I"sdef lint +; T;0;@Y;-i;8F;9o;:;;F;<i ;=i%;@);I"sdef lint errors = lint_results.reject(&:nil?) return if errors.empty? print_markdown_table(errors) -end; T;I" def lint; T;!T;@To;/;0F;1;);: private;I"+Danger::DangerGolint#golint_installed?; F;2[; [[@2i6; T;:golint_installed?;;;[;{;IC;"-Check existing status golint toolchain +end; T;I" def lint; T;!T;@To;/;0F;1;);: private;I"+Danger::DangerGolint#golint_installed?; F;2[; [[@2i3; T;:golint_installed?;;;[;{;IC;"-Check existing status golint toolchain #; T;[o;4 ;5I" return; F;6I"; T;0;7[I" bool; T;@l;[;I"<Check existing status golint toolchain # -@return [bool]; T;0;@l;-i;8F;9o;:;;F;<i3;=i5;@);I"Edef golint_installed? +@return [bool]; T;0;@l;-i;8F;9o;:;;F;<i0;=i2;@);I"Edef golint_installed? `which golint`.strip.empty? == false -end; T;I"def golint_installed?; T;!T;@To;/;0F;1;);;B;I"&Danger::DangerGolint#lint_results; F;2[; [[@2i=; T;:lint_results;;;[;{;IC;"@Get lint result regards the filtering option +end; T;I"def golint_installed?; T;!T;@To;/;0F;1;);;B;I"&Danger::DangerGolint#lint_results; F;2[; [[@2i:; T;:lint_results;;;[;{;IC;"@Get lint result regards the filtering option return [Hash]; T;[;[;I"@Get lint result regards the filtering option -return [Hash]; T;0;@;-i;8F;9o;:;;F;<i:;=i<;@);I"def lint_results +return [Hash]; T;0;@;-i;8F;9o;:;;F;<i7;=i9;@);I"def lint_results bin = 'golint' system 'go get -u golang.org/x/lint/golint' unless golint_installed? run_lint(bin, base_dir) -end; T;I"def lint_results; T;!T;@To;/;0F;1;);;B;I""Danger::DangerGolint#run_lint; F;2[[I"bin; T0[I"dir; T0; [[@2iL; T;: run_lint;;;[;{;IC;"$Run golint aginst a single dir.; T;[o;4 +end; T;I"def lint_results; T;!T;@To;/;0F;1;);;B;I""Danger::DangerGolint#run_lint; F;2[[I"bin; T0[I"dir; T0; [[@2iI; T;: run_lint;;;[;{;IC;"$Run golint aginst a single dir.; T;[o;4 ;5I" param; F;6I"The binary path of golint; T;I"bin; T;7[I" String; T;@o;4 ;5I" param; F;6I"Dir to be linted; T;I"dir; T;7[I" String; T;@o;4 ;5I" return; F;6I"; T;0;7[I" Output; T;@;[;I"Run golint aginst a single dir. @@ -60,34 +60,35 @@ The binary path of golint @param [String] dir Dir to be linted -@return [Output]; T;0;@;-i;8F;9o;:;;F;<iC;=iK;@);I"=def run_lint(bin, dir) +@return [Output]; T;0;@;-i;8F;9o;:;;F;<i@;=iH;@);I"=def run_lint(bin, dir) `#{bin} #{dir}`.split('\n') -end; T;I"def run_lint(bin, dir); T;!T;@To;/;0F;1;);;B;I".Danger::DangerGolint#print_markdown_table; F;2[[I" errors; TI"[]; T; [[@2iU; T;:print_markdown_table;;;[;{;IC;"Print markdown string; T;[o;4 +end; T;I"def run_lint(bin, dir); T;!T;@To;/;0F;1;);;B;I".Danger::DangerGolint#print_markdown_table; F;2[[I" errors; TI"[]; T; [[@2iR; T;:print_markdown_table;;;[;{;IC;"Print markdown string; T;[o;4 ;5I" param; F;60;I" errors; T;7[I"List<string>; T;@o;4 ;5I" return; F;6I"; T;0;7[I" string; T;@;[;I"MPrint markdown string @param [List<string>] errors -@return [string]; T;0;@;-i;8F;9o;:;;F;<iP;=iT;@);I"def print_markdown_table(errors=[]) - report = errors.inject(MARKDOWN_TEMPLATE) do |out, error_line| +@return [string]; T;0;@;-i;8F;9o;:;;F;<iM;=iQ;@);I"3def print_markdown_table(errors=[]) + report = errors.inject(MARKDOWN_TEMPLATE) do |out_line, error_line| file, line, column, reason = error_line.split(':') - out + "| #{short_link(file, line)} | #{line} | #{column} | #{reason.strip.tr('\'', '`')} |\n" + out_line += "| #{short_link(file, line)} | #{line} | #{column} | #{reason.strip.tr('\'', '`')} |\n" + out_line end markdown(report) -end; T;I"(def print_markdown_table(errors=[]); T;!T;@To;/;0F;1;);;B;I"$Danger::DangerGolint#short_link; F;2[[I" file; T0[I" line; T0; [[@2i^; F;:short_link;;;[;{;IC;" ; T;[;[;@;0;@;-i;@);I"def short_link(file, line) +end; T;I"(def print_markdown_table(errors=[]); T;!T;@To;/;0F;1;);;B;I"$Danger::DangerGolint#short_link; F;2[[I" file; T0[I" line; T0; [[@2i\; F;:short_link;;;[;{;IC;" ; T;[;[;@;0;@;-i;@);I"def short_link(file, line) if danger.scm_provider.to_s == 'github' return github.html_link("#{file}#L#{line}", full_path: false) end file end; T;I"def short_link(file, line); T;!T;@T;"@);#IC;[;"@);$IC;[;"@);%IC;&{;'IC;&{;(T;)IC;&{;?IC;&{: read@M: -write@+;(T;(T;(T;*{;+[; [[@2i; T;:DangerGolint;;;;;[;{;IC;"aLint javascript files using [golint](http://golint.org/). +write@+;(T;(T;(T;*{;+[; [[@2i; T;:DangerGolint;;;;;[;{;IC;"aLint javascript files using [golint](http://golint.org/). Results are send as inline commen.; T;[o;4 ;5I" example; F;6I") golint.filtering = true golint.lint; T;I"'Run golint with changed files only; T;70;@)o;4 ;5I"see; F;60;I"leonhartX/danger-golint; T;70;@)o;4 @@ -98,9 +99,8 @@ golint.filtering = true golint.lint @see leonhartX/danger-golint -@tags lint, golang, golint; T;0;@);-i;8F;9o;:;;F;<i -;=i;@';I"Danger::DangerGolint; F:@superclasso:YARD::CodeObjects::Proxy :@orignamespace0:@origname0: @imethod0;: Plugin;@': @obj0: -@type;';!T;"@';#IC;[;"@';$IC;[;"@';%IC;&{;'IC;&{;(T;)IC;&{;(T;(T;*{;+[; [[@2i ; F;: Danger;;;;;[;{;IC;" ; T;[;[;@;0;@';-i;@;I" Danger; F;"@;#IC;[;"@;$IC;[;"@;%IC;&{;'IC;&{;(T;)IC;&{;(T;(T;*{;+[; [; F;;;;;;;[;{;IC;" ; T;[;[;@;0;@;-i;0;@;,@:Golint::VERSION@ +@tags lint, golang, golint; T;0;@);-i;8F;9o;:;;F;<i;=i;@';I"Danger::DangerGolint; F:@superclasso:YARD::CodeObjects::Proxy :@orignamespace0:@origname0: @imethod0;: Plugin;@': @obj0: +@type;';!T;"@';#IC;[;"@';$IC;[;"@';%IC;&{;'IC;&{;(T;)IC;&{;(T;(T;*{;+[; [[@2i; F;: Danger;;;;;[;{;IC;" ; T;[;[;@;0;@';-i;@;I" Danger; F;"@;#IC;[;"@;$IC;[;"@;%IC;&{;'IC;&{;(T;)IC;&{;(T;(T;*{;+[; [; F;;;;;;;[;{;IC;" ; T;[;[;@;0;@;-i;0;@;,@:Golint::VERSION@ ;S@':Danger::DangerGolint@):#Danger::DangerGolint#base_dir=@+:,Danger::DangerGolint::MARKDOWN_TEMPLATE@A:"Danger::DangerGolint#base_dir@M:Danger::DangerGolint#lint@Y:+Danger::DangerGolint#golint_installed?@l:&Danger::DangerGolint#lint_results@:"Danger::DangerGolint#run_lint@:.Danger::DangerGolint#print_markdown_table@:$Danger::DangerGolint#short_link@ \ No newline at end of file