{': rooto:"YARD::CodeObjects::RootObject:@childrenIC:&YARD::CodeObjects::CodeObjectList[o:#YARD::CodeObjects::ClassObject;IC;[o:&YARD::CodeObjects::ConstantObject: @files[[I"\/Users/kazukiyoshida/.ghq/github.com/kazy1991/danger-findbugs/lib/findbugs/bug_issue.rb:ETi:@current_file_has_commentsF: @name:RANK_ERROR_THRESHOLD:@source_type: ruby:@visibility: public: @tags[:@docstrings{:@docstringIC:YARD::Docstring" ; T;[:@ref_tags[: @allI"; T:@unresolved_reference0: @object@ :@namespace@: @pathI"#BugIssue::RANK_ERROR_THRESHOLD; F:@signatureI"RANK_ERROR_THRESHOLD = 4; T: @sourceI"RANK_ERROR_THRESHOLD = 4; T: @valueI"4; T: @dynamicTo:$YARD::CodeObjects::MethodObject:@module_functionF: @scope: instance;;;I"BugIssue#module_name; F:@parameters[; [[@ i; F;:module_name;;;[;{;IC;"/Returns the value of attribute module_name ; T;[;[;I"/Returns the value of attribute module_name; T;0;@: @summary0:@hash_flagF;@;I"'def module_name @module_name end; T;I"def module_name; T;!To;";#F;$;%;;;I"BugIssue#module_name=; F;&[[I" value; T0; [[@ i; F;:module_name=;;;[;{;IC;"#Sets the attribute module_name ; T;[o:YARD::Tags::Tag :@tag_nameI" param; F: @textI"3the value to set the attribute module_name to.; T;I" value; T: @types0;@%;[;I"_Sets the attribute module_name @param value the value to set the attribute module_name to.; T;0;@%;(0;)F;@;I"7def module_name=(value) @module_name = value end; T;I"def module_name=(value); T;!To;";#F;$;%;;;I"BugIssue#buginfo; F;&[; [[@ i ; F;: buginfo;;;[;{;IC;"+Returns the value of attribute buginfo ; T;[;[;I"+Returns the value of attribute buginfo; T;0;@8;(0;)F;@;I"def buginfo @buginfo end; T;I"def buginfo; T;!To;";#F;$;%;;;I"BugIssue#buginfo=; F;&[[@)0; [[@ i ; F;: buginfo=;;;[;{;IC;"Sets the attribute buginfo ; T;[o;+ ;,I" param; F;-I"/the value to set the attribute buginfo to.; T;I" value; T;.0;@E;[;I"WSets the attribute buginfo @param value the value to set the attribute buginfo to.; T;0;@E;(0;)F;@;I"/def buginfo=(value) @buginfo = value end; T;I"def buginfo=(value); T;!To;";#F;$;%;;;I"BugIssue#initialize; F;&[[I"module_name; T0[I" buginfo; T0; [[@ i ; F;:initialize;;;[;{;IC;" ; T;[o;+ ;,I" return; F;-I"a new instance of BugIssue; T;0;.[I" BugIssue; F;@W;[;@;0;@W:@ref_tag_recurse_counti;@;I"_def initialize(module_name, buginfo) @module_name = module_name @buginfo = buginfo end; T;I")def initialize(module_name, buginfo); T;!T:@explicitTo;";#F;$;%;;;I"BugIssue#rank; F;&[; [[@ i; F;: rank;;;[;{;IC;" ; T;[;[;@;0;@l;2i;@;I"Bdef rank @rack ||= buginfo.attribute("rank").value.to_i end; T;I" def rank; T;!T;3To;";#F;$;%;;;I"BugIssue#type; F;&[; [[@ i; F;: type;;;[;{;IC;" ; T;[;[;@;0;@x;2i;@;I"Idef type @type ||= rank > RANK_ERROR_THRESHOLD ? :warn : :fail end; T;I" def type; T;!T;3To;";#F;$;%;;;I"BugIssue#line; F;&[; [[@ i; F;: line;;;[;{;IC;" ; T;[;[;@;0;@;2i;@;I"Pdef line @line ||= buginfo.xpath("SourceLine/@start").first.to_s.to_i end; T;I" def line; T;!T;3To;";#F;$;%;;;I"BugIssue#source_path; F;&[; [[@ i; F;:source_path;;;[;{;IC;" ; T;[;[;@;0;@‹;2i;@;I"^def source_path @source_path ||= buginfo.xpath("SourceLine/@sourcepath").first.to_s end; T;I"def source_path; T;!T;3To;";#F;$;%;;;I"BugIssue#description; F;&[; [[@ i ; F;:description;;;[;{;IC;" ; T;[;[;@;0;@—;2i;@;I"Zdef description @description ||= buginfo.xpath("LongMessage/text()").first.text end; T;I"def description; T;!T;3To;";#F;$;%;;;I"BugIssue#absolute_path; F;&[; [[@ i$; F;:absolute_path;;;[;{;IC;" ; T;[;[;@;0;@£;2i;@;I"qdef absolute_path @absolute_path ||= Pathname.new(module_name).join("src/main/java", source_path).to_s end; T;I"def absolute_path; T;!T;3T: @owner@:@class_mixinsIC;[;:@:@instance_mixinsIC;[;:@:@attributesIC:SymbolHash{: classIC;>{:@symbolize_valueT;%IC;>{;'IC;>{: read@: write@%;@T;/IC;>{;A@8;B@E;@T;@T;@T: @aliases{: @groups[; [[@ i; F;: BugIssue;;;;;[;{;IC;" ; T;[;[;@;0;@;2i;@;I" BugIssue; F:@superclasso:YARD::CodeObjects::Proxy :@orignamespace0:@origname0: @imethod0;: Object;@: @obj0: @type;?o:$YARD::CodeObjects::ModuleObject;IC;[o; ; [[I"^/Users/kazukiyoshida/.ghq/github.com/kazy1991/danger-findbugs/lib/findbugs/gem_version.rb; Ti; F;: VERSION;;;;;[;{;IC;" ; T;[;[;@;0;@Ã;@Á;I"Findbugs::VERSION; F;I"VERSION = "0.0.2".freeze; T;I"VERSION = "0.0.2".freeze; T; I""0.0.2".freeze; T;!T;:@Á;;IC;[;:@Á;{;?IC;>{;@T;%IC;>{;@T;@T;C{;D[; [[@Æi; F;: Findbugs;;;;;[;{;IC;" ; T;[;[;@;0;@Á;2i;@;I" Findbugs; Fo;N;IC;[o; ;IC;[o;";#F;$;%;;;I"*Danger::DangerFindbugs#gradle_module=; F;&[[@)0; [[I"Y/Users/kazukiyoshida/.ghq/github.com/kazy1991/danger-findbugs/lib/findbugs/plugin.rb; Ti ; T;:gradle_module=;;;[;{;IC;"lCustom gradle module to run. This is useful when your project has different flavors. Defaults to "app". ; T;[o;+ ;,I" return; F;-I"; T;0;.[I" String; T;@ã;[;I"}Custom gradle module to run. This is useful when your project has different flavors. Defaults to "app". @return [String]; T;0;@ã;)F:@line_rangeo: Range: exclF: begini:endi;@á;I";def gradle_module=(value) @gradle_module = value end; T;I"def gradle_module=(value); T;!To;";#F;$;%;;;I"(Danger::DangerFindbugs#gradle_task=; F;&[[@)0; [[@éi%; T;:gradle_task=;;;[;{;IC;"oCustom gradle task to run. This is useful when your project has different flavors. Defaults to "findbugs". ; T;[o;+ ;,I" return; F;-I"; T;0;.[I" String; T;@ø;[;I"{Custom gradle task to run. This is useful when your project has different flavors. Defaults to "findbugs". @return [String]; T;0;@ø;)F;Ro;S;TF;Ui!;Vi$;@á;I"7def gradle_task=(value) @gradle_task = value end; T;I"def gradle_task=(value); T;!To;";#F;$;%;;;I"(Danger::DangerFindbugs#report_file=; F;&[[@)0; [[@éi*; T;:report_file=;;;[;{;IC;"˜Location of report file If your findbugs task outputs to a different location, you can specify it here. Defaults to "build/reports/findbugs_report.xml". ; T;[o;+ ;,I" return; F;-I"; T;0;.[I" String; T;@ ;[;I"©Location of report file If your findbugs task outputs to a different location, you can specify it here. Defaults to "build/reports/findbugs_report.xml". @return [String]; T;0;@ ;)F;Ro;S;TF;Ui&;Vi);@á;I"7def report_file=(value) @report_file = value end; T;I"def report_file=(value); T;!To; ; [[@éi,; F;:GRADLEW_NOT_FOUND;;;;;[;{;IC;" ; T;[;[;@;0;@ ;@á;I".Danger::DangerFindbugs::GRADLEW_NOT_FOUND; F;I"LGRADLEW_NOT_FOUND = "Could not find `gradlew` inside current directory"; T;I"LGRADLEW_NOT_FOUND = "Could not find `gradlew` inside current directory"; T; I"8"Could not find `gradlew` inside current directory"; T;!To; ; [[@éi-; F;:REPORT_FILE_NOT_FOUND;;;;;[;{;IC;" ; T;[;[;@;0;@,;@á;I"2Danger::DangerFindbugs::REPORT_FILE_NOT_FOUND; F;I"8REPORT_FILE_NOT_FOUND = "Findbugs report not found"; T;I"8REPORT_FILE_NOT_FOUND = "Findbugs report not found"; T; I" "Findbugs report not found"; T;!To;";#F;$;%;;;I""Danger::DangerFindbugs#report; F;&[; [[@éi4; T;: report;;;[;{;IC;"¯Calls findbugs task of your gradle project. It fails if `gradlew` cannot be found inside current directory. It fails if `report_file` cannot be found inside current directory.; T;[o;+ ;,I" return; F;-I"; T;0;.[I" void; T;@8;[;I"¿Calls findbugs task of your gradle project. It fails if `gradlew` cannot be found inside current directory. It fails if `report_file` cannot be found inside current directory. @return [void] ; T;0;@8;2i;)F;Ro;S;TF;Ui/;Vi3;@á;I"®def report return fail(GRADLEW_NOT_FOUND) unless gradlew_exists? exec_gradle_task return fail(REPORT_FILE_NOT_FOUND) unless report_file_exist? send_inline_comment end; T;I"def report; T;!T;3To;";#F;$;%;;;I")Danger::DangerFindbugs#gradle_module; F;&[; [[@éi=; T;:gradle_module;;;[;{;IC;"CA getter for `gradle_module`, returning "app" if value is nil.; T;[o;+ ;,I" return; F;-I"; T;0;.[I" String; T;@K;[;I"TA getter for `gradle_module`, returning "app" if value is nil. @return [String]; T;0;@K;2i;)F;Ro;S;TF;Ui;;Vi<;@á;I"5def gradle_module @gradle_module ||= 'app' end; T;I"def gradle_module; T;!T;3To;";#F;$;%;;;I"'Danger::DangerFindbugs#gradle_task; F;&[; [[@éiC; T;:gradle_task;;;[;{;IC;"FA getter for `gradle_task`, returning "findbugs" if value is nil.; T;[o;+ ;,I" return; F;-I"; T;0;.[I" String; T;@^;[;I"WA getter for `gradle_task`, returning "findbugs" if value is nil. @return [String]; T;0;@^;2i;)F;Ro;S;TF;UiA;ViB;@á;I"7def gradle_task @gradle_task ||= 'findbugs' end; T;I"def gradle_task; T;!T;3To;";#F;$;%;;;I"'Danger::DangerFindbugs#report_file; F;&[; [[@éiI; T;:report_file;;;[;{;IC;"_A getter for `report_file`, returning "build/reports/findbugs_report.xml" if value is nil.; T;[o;+ ;,I" return; F;-I"; T;0;.[I" String; T;@q;[;I"pA getter for `report_file`, returning "build/reports/findbugs_report.xml" if value is nil. @return [String]; T;0;@q;2i;)F;Ro;S;TF;UiG;ViH;@á;I"Odef report_file @report_file ||= 'build/reports/findbugs_report.xml' end; T;I"def report_file; T;!T;3To;";#F;$;%;;;I"(Danger::DangerFindbugs#target_files; F;&[; [[@éiO; T;:target_files;;;[;{;IC;"'A getter for current updated files; T;[o;+ ;,I" return; F;-I"; T;0;.[I"Array[String]; T;@„;[;I"?A getter for current updated files @return [Array[String]]; T;0;@„;2i;)F;Ro;S;TF;UiM;ViN;@á;I"hdef target_files @target_files ||= (git.modified_files - git.deleted_files) + git.added_files end; T;I"def target_files; T;!T;3To;";#F;$;%;;;I",Danger::DangerFindbugs#exec_gradle_task; F;&[; [[@éiU; T;:exec_gradle_task;;;[;{;IC;"Run gradle task; T;[o;+ ;,I" return; F;-I"; T;0;.[I" void; T;@—;[;I"#Run gradle task @return [void]; T;0;@—;2i;)F;Ro;S;TF;UiS;ViT;@á;I"Adef exec_gradle_task system "./gradlew #{gradle_task}" end; T;I"def exec_gradle_task; T;!T;3To;";#F;$;%;;;I"+Danger::DangerFindbugs#gradlew_exists?; F;&[; [[@éi[; T;:gradlew_exists?;;;[;{;IC;"3Check gradlew file exists in current directory; T;[o;+ ;,I" return; F;-I"; T;0;.[I" Bool; T;@ª;[;I"BCheck gradlew file exists in current directory @return [Bool]; T;0;@ª;2i;)F;Ro;S;TF;UiY;ViZ;@á;I"Adef gradlew_exists? `ls gradlew`.strip.empty? == false end; T;I"def gradlew_exists?; T;!T;3To;";#F;$;%;;;I".Danger::DangerFindbugs#report_file_exist?; F;&[; [[@éia; T;:report_file_exist?;;;[;{;IC;"2Check report_file exists in current directory; T;[o;+ ;,I" return; F;-I"; T;0;.[I" Bool; T;@½;[;I"ACheck report_file exists in current directory @return [Bool]; T;0;@½;2i;)F;Ro;S;TF;Ui_;Vi`;@á;I";def report_file_exist? File.exists?(report_file) end; T;I"def report_file_exist?; T;!T;3To;";#F;$;%;;;I"+Danger::DangerFindbugs#findbugs_report; F;&[; [[@éig; T;:findbugs_report;;;[;{;IC;"FA getter for `gradle_task`, returning "findbugs" if value is nil.; T;[o;+ ;,I" return; F;-I"; T;0;.[I"Oga::XML::Document; T;@Ð;[;I"cA getter for `gradle_task`, returning "findbugs" if value is nil. @return [Oga::XML::Document]; T;0;@Ð;2i;)F;Ro;S;TF;Uie;Vif;@á;I"Ydef findbugs_report @findbugs_report ||= Oga.parse_xml(File.open(report_file)) end; T;I"def findbugs_report; T;!T;3To;";#F;$;%;;;I"&Danger::DangerFindbugs#bug_issues; F;&[; [[@éim; T;:bug_issues;;;[;{;IC;"FA getter for `gradle_task`, returning "findbugs" if value is nil.; T;[o;+ ;,I" return; F;-I"; T;0;.[I"Array[BugIssue]; T;@ã;[;I"`A getter for `gradle_task`, returning "findbugs" if value is nil. @return [Array[BugIssue]]; T;0;@ã;2i;)F;Ro;S;TF;Uik;Vil;@á;I"‹def bug_issues @bug_issues ||= findbugs_report.xpath("//BugInstance").map do |buginfo| BugIssue.new(gradle_module, buginfo) end end; T;I"def bug_issues; T;!T;3To;";#F;$;%;;;I"/Danger::DangerFindbugs#send_inline_comment; F;&[; [[@éiv; T;:send_inline_comment;;;[;{;IC;":Send inline comment with danger's warn or fail method; T;[o;+ ;,I" return; F;-I"; T;0;.[I" void; T;@ö;[;I"JSend inline comment with danger's warn or fail method @return [void]; T;0;@ö;2i;)F;Ro;S;TF;Uis;Viu;@á;I"Ídef send_inline_comment bug_issues.each do |issue| next unless target_files.include? issue.absolute_path send(issue.type, issue.description, file: issue.absolute_path, line: issue.line) end end; T;I"def send_inline_comment; T;!T;3T;:@á;;IC;[;:@á;{;?IC;>{;@T;%IC;>{;\IC;>{;A@K;B@ã;@T;]IC;>{;A@^;B@ø;@T;^IC;>{;A@q;B@ ;@T;@T;@T;C{;D[; [[@éi; T;:DangerFindbugs;;;;;[;{;IC;"ŸChecks on your gradle project's Java source files. This is done using [finbugs](http://findbugs.sourceforge.net/) Results are passed out as tables in markdown.; T;[ o;+ ;,I" example; F;-I" findbugs.report; T;I"2Running Findbugs with its basic configuration; T;.0;@áo;+ ;,I" example; F;-I"Š findbugs.gradle_task = "app:findbugs" #defalut: findbugs findbugs.report_file = "app/build/reports/findbugs/findbugs.xml" findbugs.report; T;I"@Running Findbugs with a specific gradle task or report_file; T;.0;@áo;+ ;,I"see; F;-0;I"kazy1991/danger-findbugs; T;.0;@áo;+ ;,I" tags; F;-I"android, findbugs; T;0;.0;@á;[;I"Checks on your gradle project's Java source files. This is done using [finbugs](http://findbugs.sourceforge.net/) Results are passed out as tables in markdown. @example Running Findbugs with its basic configuration findbugs.report @example Running Findbugs with a specific gradle task or report_file findbugs.gradle_task = "app:findbugs" #defalut: findbugs findbugs.report_file = "app/build/reports/findbugs/findbugs.xml" findbugs.report @see kazy1991/danger-findbugs @tags android, findbugs; T;0;@á;2i;)F;Ro;S;TF;Ui;Vi;@ß;I"Danger::DangerFindbugs; F;Fo;G ;H0;I0;J0;: Plugin;@ß;L0;M;?;!T;:@ß;;IC;[;:@ß;{;?IC;>{;@T;%IC;>{;@T;@T;C{;D[; [[@éi; F;: Danger;;;;;[;{;IC;" ; T;[;[;@;0;@ß;2i;@;I" Danger; F;:@;;IC;[;:@;{;?IC;>{;@T;%IC;>{;@T;@T;C{;D[; [; F;;;;;;;[;{;IC;" ; T;[;[;@;0;@;2i;0;@;E@:#BugIssue::RANK_ERROR_THRESHOLD@ :BugIssue#module_name@:BugIssue#module_name=@%:BugIssue#buginfo@8:BugIssue#buginfo=@E:BugIssue#initialize@W:BugIssue#rank@l:BugIssue#type@x:BugIssue#line@:BugIssue#source_path@‹:BugIssue#description@—:BugIssue#absolute_path@£;P@Á:Findbugs::VERSION@Ã;h@ß:Danger::DangerFindbugs@á:*Danger::DangerFindbugs#gradle_module=@ã:(Danger::DangerFindbugs#gradle_task=@ø:(Danger::DangerFindbugs#report_file=@ :.Danger::DangerFindbugs::GRADLEW_NOT_FOUND@ :2Danger::DangerFindbugs::REPORT_FILE_NOT_FOUND@,:"Danger::DangerFindbugs#report@8:)Danger::DangerFindbugs#gradle_module@K:'Danger::DangerFindbugs#gradle_task@^:'Danger::DangerFindbugs#report_file@q:(Danger::DangerFindbugs#target_files@„:,Danger::DangerFindbugs#exec_gradle_task@—:+Danger::DangerFindbugs#gradlew_exists?@ª:.Danger::DangerFindbugs#report_file_exist?@½:+Danger::DangerFindbugs#findbugs_report@Ð:&Danger::DangerFindbugs#bug_issues@ã:/Danger::DangerFindbugs#send_inline_comment@ö