fukuzatsu 2.3.0 → 2.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f07a403fbf77bc5aa045f8d28699999fbc954550
4
- data.tar.gz: 1fabf7d8de5355aef3458d402a8ee3d643fd07ac
3
+ metadata.gz: 61710b91b95cd1041ad01257e788fa9a51c38f22
4
+ data.tar.gz: a616eb3c539c5f8cedd1ce6a07ccfbfeb071fece
5
5
  SHA512:
6
- metadata.gz: 804fea9b31e7394be09f5bb7450acd91e337d6228c9a53aaacac565f642ae010a2d5e60262fa2875a0a5520f981efee8d265ad8f2bed9cd65ce23e0290fb23b8
7
- data.tar.gz: e739fe0ebda996301973c086718d5718b587ce8759cba071d260ff593cb4d08d5e3dda5f83e9af47d08ccf1ceff8e9f2202b69b8909ca5085a2272281bbc6105
6
+ metadata.gz: 16310467e60397fbf65d6cd4b24406165594aedaf91ed75ae54f28af4f078089e93651f5b53e6a45f62d4c08fb12c558519001a0000820159178dbdf2787da45
7
+ data.tar.gz: 652645ca320ae874caad38a6a41617fbbecc7b2e60d8201b0bfb9355b7910ea92365390381a94a54e5519b3332495c85e5902334199ec02fb91b8013a008ef66
data/.gitignore CHANGED
@@ -23,3 +23,4 @@ mkmf.log
23
23
  .console_history
24
24
  *.swp
25
25
  coverage
26
+ tags
@@ -20,8 +20,6 @@ Gem::Specification.new do |spec|
20
20
  spec.required_ruby_version = '>= 2.1'
21
21
 
22
22
  spec.add_dependency "analyst", ">= 0.16.0"
23
- spec.add_dependency "ephemeral"
24
- spec.add_dependency "poro_plus"
25
23
  spec.add_dependency "haml"
26
24
  spec.add_dependency "parser"
27
25
  spec.add_dependency "rainbow"
@@ -30,6 +28,7 @@ Gem::Specification.new do |spec|
30
28
  spec.add_dependency "thor"
31
29
 
32
30
  spec.add_development_dependency "bundler", "~> 1.6"
31
+ spec.add_development_dependency "byebug"
33
32
  spec.add_development_dependency "rake"
34
33
  spec.add_development_dependency "pry"
35
34
  spec.add_development_dependency "rspec"
@@ -1,11 +1,8 @@
1
- require 'ephemeral'
2
- require 'poro_plus'
1
+ require 'json'
3
2
  require 'fileutils'
4
3
  require 'haml'
5
4
  require 'analyst'
6
- require 'pry'
7
5
 
8
- require_relative "fukuzatsu/cli"
9
6
  require_relative "fukuzatsu/file_reader"
10
7
  require_relative "fukuzatsu/formatters/base"
11
8
  require_relative "fukuzatsu/formatters/csv"
@@ -20,8 +17,8 @@ require_relative "fukuzatsu/summary"
20
17
  require_relative "fukuzatsu/version"
21
18
 
22
19
  module Fukuzatsu
23
- def self.new(path_to_files, formatter=:text, threshold=0, output_path=nil)
24
- Fukuzatsu::Parser.new(path_to_files, formatters[formatter], threshold, output_path)
20
+ def self.new(paths_to_files, formatter=:text, threshold=0, output_path=nil)
21
+ Fukuzatsu::Parser.new(paths_to_files, formatters[formatter], threshold, output_path)
25
22
  end
26
23
 
27
24
  def self.formatters
@@ -5,20 +5,23 @@ module Fukuzatsu
5
5
 
6
6
  class CLI < Thor
7
7
 
8
- desc_text = "Formats are text (default, to STDOUT), html, json, json_stdout, and csv. "
9
- desc_text << "Example: fuku check foo/ -f html"
10
-
11
- desc "check PATH_TO_FILE [-f FORMAT] [-t MAX_COMPLEXITY_ALLOWED] [-o OUTPUT_PATH]", desc_text
12
- method_option :format, :type => :string, :default => 'text', :aliases => "-f"
13
- method_option :threshold, :type => :numeric, :default => 0, :aliases => "-t"
14
- method_option :output, :type => :string, :aliases => "-o"
15
-
16
- def check(path="./")
17
- Fukuzatsu.new(path, formatter, options['threshold'], options['output']).report
8
+ desc "check [-f FORMAT] [-t MAX_COMPLEXITY_ALLOWED] PATHS_TO_FILES...", "Run complexity analysis on PATHS_TO_FILES..."
9
+ long_desc <<-LONGDESC
10
+ `PATHS_TO_FILES...` is a list of files to analyze. Can specify directories
11
+ and/or files. For directories, all *.rb files found in the directory tree
12
+ get included. Wildcards (e.g. `*`) are not currently supported.\r\n\r\n
13
+ Example: fuku check -f html app/models app/services
14
+ LONGDESC
15
+
16
+ method_option :format, :type => :string, :default => 'text', :aliases => "-f", :desc => "Output format; text, csv, json, or html"
17
+ method_option :threshold, :type => :numeric, :default => 0, :aliases => "-t", :desc => "Maximum allowed complexity. If the complexity of any file exceeds this value, the exit status will be non-zero (failure)."
18
+ method_option :output, :type => :string, :aliases => "-o", :desc => "Path to output directory."
19
+
20
+ def check(path, *more_paths)
21
+ paths = [path] + more_paths
22
+ Fukuzatsu.new(paths, formatter, options['threshold'], options['output']).report
18
23
  end
19
24
 
20
- default_task :check
21
-
22
25
  private
23
26
 
24
27
  def formatter
@@ -1,10 +1,10 @@
1
1
  module Fukuzatsu
2
2
  class FileReader
3
3
 
4
- attr_reader :path_to_files
4
+ attr_reader :paths_to_files
5
5
 
6
- def initialize(path_to_files)
7
- @path_to_files = path_to_files
6
+ def initialize(paths_to_files)
7
+ @paths_to_files = paths_to_files
8
8
  end
9
9
 
10
10
  def source_files
@@ -14,23 +14,24 @@ module Fukuzatsu
14
14
  private
15
15
 
16
16
  def file_list
17
- if File.directory?(path_to_files)
18
- return Dir.glob(File.join(path_to_files, "**", "*.rb"))
19
- else
20
- return [path_to_files]
21
- end
17
+ paths_to_files.map do |path|
18
+ if File.directory?(path)
19
+ Dir.glob(File.join(path, "**", "*.rb"))
20
+ else
21
+ path
22
+ end
23
+ end.flatten
22
24
  end
23
25
 
24
26
  class SourceFile
25
- attr_reader :file
26
- def initialize(file)
27
- @file = File.open(file, "r")
28
- end
29
- def filename
30
- file.path
27
+ attr_reader :filename
28
+
29
+ def initialize(filename)
30
+ @filename = filename
31
31
  end
32
+
32
33
  def contents
33
- self.file.read
34
+ File.read(filename)
34
35
  end
35
36
  end
36
37
 
@@ -13,7 +13,7 @@ module Fukuzatsu
13
13
  end
14
14
 
15
15
  def columns
16
- ["class", "method", "complexity"]
16
+ ["Class", "Method", "Complexity"]
17
17
  end
18
18
 
19
19
  def content
@@ -33,7 +33,7 @@ module Fukuzatsu
33
33
 
34
34
  def export
35
35
  begin
36
- File.open(path_to_results, 'w') {|outfile| outfile.write(content)}
36
+ File.open(File.expand_path(path_to_results), 'w') {|outfile| outfile.write(content)}
37
37
  rescue Exception => e
38
38
  puts "Unable to write output: #{e} #{e.backtrace}"
39
39
  end
@@ -48,11 +48,11 @@ module Fukuzatsu
48
48
  end
49
49
 
50
50
  def header
51
- columns.map{|col| "<th>#{col.titleize}</th>"}.join("\r\n")
51
+ columns.map{|col| "<th>#{col}</th>"}.join("\r\n")
52
52
  end
53
53
 
54
54
  def lexer
55
- lexer = Rouge::Lexers::Ruby.new
55
+ Rouge::Lexers::Ruby.new
56
56
  end
57
57
 
58
58
  def output_template
@@ -79,4 +79,4 @@ module Fukuzatsu
79
79
  end
80
80
 
81
81
  end
82
- end
82
+ end
@@ -1,16 +1,12 @@
1
- require 'fileutils'
2
- require 'analyst'
3
-
4
1
  module Fukuzatsu
5
2
 
6
3
  class Parser
7
4
 
8
- attr_reader :path_to_files, :formatter, :threshold, :output_path
9
-
10
5
  DEFAULT_OUTPUT_DIRECTORY = "doc/fukuzatsu/"
6
+ attr_reader :paths_to_files, :formatter, :threshold, :output_path
11
7
 
12
- def initialize(path_to_files, formatter, threshold, output_path=nil)
13
- @path_to_files = path_to_files
8
+ def initialize(paths_to_files, formatter, threshold, output_path=nil)
9
+ @paths_to_files = paths_to_files
14
10
  @formatter = formatter
15
11
  @threshold = threshold
16
12
  @output_path = output_path || DEFAULT_OUTPUT_DIRECTORY
@@ -60,7 +56,7 @@ module Fukuzatsu
60
56
  end
61
57
 
62
58
  def file_reader
63
- @file_reader ||= Fukuzatsu::FileReader.new(self.path_to_files)
59
+ @file_reader ||= Fukuzatsu::FileReader.new(self.paths_to_files)
64
60
  end
65
61
 
66
62
  end
@@ -39,12 +39,12 @@ module Fukuzatsu
39
39
  end
40
40
  end
41
41
 
42
- def initialize(source:, entity:, container:, source_file:nil, summaries:[])
42
+ def initialize(source:, entity:, container:, source_file:nil)
43
43
  @source = source
44
44
  @entity = entity
45
45
  @container = container
46
46
  @source_file = source_file
47
- @summaries = summaries
47
+ @summaries = []
48
48
  @edges, @nodes, @exits = [0, 1, 1]
49
49
  end
50
50
 
@@ -69,7 +69,7 @@ module Fukuzatsu
69
69
  end
70
70
 
71
71
  def average_complexity
72
- return 0 if self.summaries.blank?
72
+ return 0 if self.summaries.empty?
73
73
  self.summaries.map(&:complexity).reduce(&:+) / self.summaries.count.to_f
74
74
  end
75
75
 
@@ -98,4 +98,4 @@ module Fukuzatsu
98
98
  end
99
99
  end
100
100
 
101
- end
101
+ end
@@ -1,3 +1,3 @@
1
1
  module Fukuzatsu
2
- VERSION = "2.3.0"
2
+ VERSION = "2.3.1"
3
3
  end
@@ -1,4 +1,5 @@
1
1
  require 'spec_helper'
2
+ require_relative '../lib/fukuzatsu/cli'
2
3
 
3
4
  describe Fukuzatsu::CLI do
4
5
 
@@ -6,8 +6,7 @@ describe Fukuzatsu::Formatters::Csv do
6
6
  :source => "",
7
7
  :source_file => "foo.rb",
8
8
  :entity => "::initialize",
9
- :container => "Foo",
10
- :summaries => []
9
+ :container => "Foo"
11
10
  )
12
11
  }
13
12
 
@@ -15,8 +14,7 @@ describe Fukuzatsu::Formatters::Csv do
15
14
  :source => "",
16
15
  :source_file => "foo.rb",
17
16
  :entity => "#print",
18
- :container => "Foo",
19
- :summaries => []
17
+ :container => "Foo"
20
18
  )
21
19
  }
22
20
 
@@ -24,9 +22,8 @@ describe Fukuzatsu::Formatters::Csv do
24
22
  :source => "",
25
23
  :source_file => "foo.rb",
26
24
  :entity => "Foo",
27
- :container => "Foo",
28
- :summaries => [method_summary_1, method_summary_2]
29
- )
25
+ :container => "Foo"
26
+ ).tap {|s| s.summaries = [method_summary_1, method_summary_2] }
30
27
  }
31
28
 
32
29
  let (:formatter) { Fukuzatsu::Formatters::Csv.new(summary: summary, base_output_path: nil) }
@@ -56,4 +53,4 @@ describe Fukuzatsu::Formatters::Csv do
56
53
  end
57
54
  end
58
55
 
59
- end
56
+ end
@@ -5,25 +5,22 @@ describe "Fukuzatsu::Formatters::HTML" do
5
5
  let (:method_summary_1) { Fukuzatsu::Summary.new(
6
6
  :source => "foo.rb",
7
7
  :entity => "::initialize",
8
- :container => "Foo",
9
- :summaries => []
8
+ :container => "Foo"
10
9
  )
11
10
  }
12
11
 
13
12
  let (:method_summary_2) { Fukuzatsu::Summary.new(
14
13
  :source => "foo.rb",
15
14
  :entity => "#print",
16
- :container => "Foo",
17
- :summaries => []
15
+ :container => "Foo"
18
16
  )
19
17
  }
20
18
 
21
19
  let (:summary) { Fukuzatsu::Summary.new(
22
20
  :source => "foo.rb",
23
21
  :entity => "Foo",
24
- :container => "Foo",
25
- :summaries => [method_summary_1, method_summary_2]
26
- )
22
+ :container => "Foo"
23
+ ).tap {|s| s.summaries = [method_summary_1, method_summary_2] }
27
24
  }
28
25
 
29
26
  let (:formatter) { Fukuzatsu::Formatters::Html.new(summary: summary, base_output_path: nil) }
@@ -6,8 +6,7 @@ describe "Fukuzatsu::Formatters::Json" do
6
6
  :source => "",
7
7
  :source_file => "foo.rb",
8
8
  :entity => "::initialize",
9
- :container => "Foo",
10
- :summaries => []
9
+ :container => "Foo"
11
10
  )
12
11
  }
13
12
 
@@ -15,8 +14,7 @@ describe "Fukuzatsu::Formatters::Json" do
15
14
  :source => "",
16
15
  :source_file => "foo.rb",
17
16
  :entity => "#print",
18
- :container => "Foo",
19
- :summaries => []
17
+ :container => "Foo"
20
18
  )
21
19
  }
22
20
 
@@ -24,9 +22,8 @@ describe "Fukuzatsu::Formatters::Json" do
24
22
  :source => "",
25
23
  :source_file => "foo.rb",
26
24
  :entity => "Foo",
27
- :container => "Foo",
28
- :summaries => [method_summary_1, method_summary_2]
29
- )
25
+ :container => "Foo"
26
+ ).tap {|s| s.summaries = [method_summary_1, method_summary_2] }
30
27
  }
31
28
 
32
29
  let (:formatter) { Fukuzatsu::Formatters::Json.new(summary: summary, base_output_path: nil) }
@@ -5,8 +5,7 @@ describe Fukuzatsu::Formatters::Text do
5
5
  let (:summary) { Fukuzatsu::Summary.new(
6
6
  :source => "foo.rb",
7
7
  :entity => "Foo",
8
- :container => "Foo",
9
- :summaries => []
8
+ :container => "Foo"
10
9
  )
11
10
  }
12
11
 
@@ -36,4 +35,4 @@ describe Fukuzatsu::Formatters::Text do
36
35
  end
37
36
  end
38
37
 
39
- end
38
+ end
@@ -3,15 +3,15 @@ require 'spec_helper'
3
3
  describe Fukuzatsu::Parser do
4
4
 
5
5
  let(:parser) { Fukuzatsu::Parser.new(
6
- "./fixtures/",
6
+ ["./fixtures/"],
7
7
  "formatter proxy",
8
8
  14
9
9
  )
10
10
  }
11
11
 
12
12
  describe "#initialize" do
13
- it "initializes its path to files" do
14
- expect(parser.path_to_files).to eq "./fixtures/"
13
+ it "initializes its paths to files" do
14
+ expect(parser.paths_to_files).to eq ["./fixtures/"]
15
15
  end
16
16
  end
17
17
 
@@ -5,3 +5,4 @@ SimpleCov.start
5
5
  require 'rubygems'
6
6
  require 'rspec'
7
7
  require 'fukuzatsu'
8
+ require 'byebug'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fukuzatsu
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Coraline Ada Ehmke
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-12-19 00:00:00.000000000 Z
12
+ date: 2015-01-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: analyst
@@ -25,34 +25,6 @@ dependencies:
25
25
  - - ">="
26
26
  - !ruby/object:Gem::Version
27
27
  version: 0.16.0
28
- - !ruby/object:Gem::Dependency
29
- name: ephemeral
30
- requirement: !ruby/object:Gem::Requirement
31
- requirements:
32
- - - ">="
33
- - !ruby/object:Gem::Version
34
- version: '0'
35
- type: :runtime
36
- prerelease: false
37
- version_requirements: !ruby/object:Gem::Requirement
38
- requirements:
39
- - - ">="
40
- - !ruby/object:Gem::Version
41
- version: '0'
42
- - !ruby/object:Gem::Dependency
43
- name: poro_plus
44
- requirement: !ruby/object:Gem::Requirement
45
- requirements:
46
- - - ">="
47
- - !ruby/object:Gem::Version
48
- version: '0'
49
- type: :runtime
50
- prerelease: false
51
- version_requirements: !ruby/object:Gem::Requirement
52
- requirements:
53
- - - ">="
54
- - !ruby/object:Gem::Version
55
- version: '0'
56
28
  - !ruby/object:Gem::Dependency
57
29
  name: haml
58
30
  requirement: !ruby/object:Gem::Requirement
@@ -151,6 +123,20 @@ dependencies:
151
123
  - - "~>"
152
124
  - !ruby/object:Gem::Version
153
125
  version: '1.6'
126
+ - !ruby/object:Gem::Dependency
127
+ name: byebug
128
+ requirement: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - ">="
131
+ - !ruby/object:Gem::Version
132
+ version: '0'
133
+ type: :development
134
+ prerelease: false
135
+ version_requirements: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - ">="
138
+ - !ruby/object:Gem::Version
139
+ version: '0'
154
140
  - !ruby/object:Gem::Dependency
155
141
  name: rake
156
142
  requirement: !ruby/object:Gem::Requirement
@@ -255,7 +241,6 @@ files:
255
241
  - spec/parser_spec.rb
256
242
  - spec/spec_helper.rb
257
243
  - spec/summary_spec.rb
258
- - tags
259
244
  homepage: https://gitlab.com/coraline/fukuzatsu/tree/master
260
245
  licenses:
261
246
  - MIT
@@ -292,4 +277,3 @@ test_files:
292
277
  - spec/parser_spec.rb
293
278
  - spec/spec_helper.rb
294
279
  - spec/summary_spec.rb
295
- has_rdoc:
data/tags DELETED
@@ -1,92 +0,0 @@
1
- !_TAG_FILE_FORMAT 2 /extended format; --format=1 will not append ;" to lines/
2
- !_TAG_FILE_SORTED 1 /0=unsorted, 1=sorted, 2=foldcase/
3
- !_TAG_PROGRAM_AUTHOR Darren Hiebert /dhiebert@users.sourceforge.net/
4
- !_TAG_PROGRAM_NAME Exuberant Ctags //
5
- !_TAG_PROGRAM_URL http://ctags.sourceforge.net /official site/
6
- !_TAG_PROGRAM_VERSION 5.8 //
7
- Analyzer lib/fukuzatsu/analyzer.rb /^class Analyzer$/;" c
8
- Base lib/fukuzatsu/formatters/base.rb /^ module Base$/;" m class:Formatters
9
- Breathalizer spec/fixtures/program_3.rb /^class Breathalizer$/;" c
10
- CLI lib/fukuzatsu/cli.rb /^ class CLI < Thor$/;" c class:Fukuzatsu
11
- Csv lib/fukuzatsu/formatters/csv.rb /^ class Csv$/;" c class:Formatters
12
- Extracted spec/fixtures/eg_mod_class_2.rb /^module Extracted$/;" m
13
- Foo spec/fixtures/eg_class.rb /^class Foo$/;" c
14
- Foo spec/fixtures/eg_mod_class.rb /^class Foo::Bar$/;" c
15
- Formatters lib/fukuzatsu/formatters/base.rb /^module Formatters$/;" m
16
- Formatters lib/fukuzatsu/formatters/csv.rb /^module Formatters$/;" m
17
- Formatters lib/fukuzatsu/formatters/html.rb /^module Formatters$/;" m
18
- Formatters lib/fukuzatsu/formatters/html_index.rb /^module Formatters$/;" m
19
- Formatters lib/fukuzatsu/formatters/text.rb /^module Formatters$/;" m
20
- Fukuzatsu lib/fukuzatsu.rb /^module Fukuzatsu$/;" m
21
- Fukuzatsu lib/fukuzatsu/cli.rb /^module Fukuzatsu$/;" m
22
- Fukuzatsu lib/fukuzatsu/version.rb /^module Fukuzatsu$/;" m
23
- Html lib/fukuzatsu/formatters/html.rb /^ class Html$/;" c class:Formatters
24
- HtmlIndex lib/fukuzatsu/formatters/html_index.rb /^ class HtmlIndex$/;" c class:Formatters
25
- ParsedFile lib/fukuzatsu/parsed_file.rb /^class ParsedFile$/;" c
26
- ParsedMethod lib/fukuzatsu/parsed_method.rb /^class ParsedMethod$/;" c
27
- Something spec/fixtures/eg_module.rb /^module Something$/;" m
28
- Text lib/fukuzatsu/formatters/text.rb /^ class Text$/;" c class:Formatters
29
- Thing spec/fixtures/eg_mod_class_2.rb /^ class Thing$/;" c class:Extracted
30
- analyzer lib/fukuzatsu/parsed_file.rb /^ def analyzer$/;" f class:ParsedFile
31
- check lib/fukuzatsu/cli.rb /^ def check(path=".\/")$/;" f class:Fukuzatsu.CLI
32
- class_name lib/fukuzatsu/parsed_file.rb /^ def class_name$/;" f class:ParsedFile
33
- columns lib/fukuzatsu/formatters/base.rb /^ def columns$/;" f class:Formatters.Base
34
- complexity lib/fukuzatsu/analyzer.rb /^ def complexity$/;" f class:Analyzer
35
- complexity lib/fukuzatsu/parsed_file.rb /^ def complexity$/;" f class:ParsedFile
36
- complexity lib/fukuzatsu/parsed_method.rb /^ def complexity$/;" f class:ParsedMethod
37
- complexity spec/fixtures/program_3.rb /^ def complexity$/;" f class:Breathalizer
38
- content lib/fukuzatsu/formatters/base.rb /^ def content$/;" f class:Formatters.Base
39
- content lib/fukuzatsu/formatters/html.rb /^ def content$/;" f class:Formatters.Html
40
- content lib/fukuzatsu/formatters/html_index.rb /^ def content$/;" f class:Formatters.HtmlIndex
41
- content lib/fukuzatsu/parsed_file.rb /^ def content$/;" f class:ParsedFile
42
- export lib/fukuzatsu/formatters/base.rb /^ def export$/;" f class:Formatters.Base
43
- export lib/fukuzatsu/formatters/text.rb /^ def export$/;" f class:Formatters.Text
44
- extend_graph lib/fukuzatsu/analyzer.rb /^ def extend_graph$/;" f class:Analyzer
45
- extract_class_name lib/fukuzatsu/analyzer.rb /^ def extract_class_name$/;" f class:Analyzer
46
- extract_methods lib/fukuzatsu/analyzer.rb /^ def extract_methods$/;" f class:Analyzer
47
- file_contents spec/fixtures/program_3.rb /^ def file_contents$/;" f class:Breathalizer
48
- file_extension lib/fukuzatsu/formatters/base.rb /^ def file_extension$/;" f class:Formatters.Base
49
- file_extension lib/fukuzatsu/formatters/csv.rb /^ def file_extension$/;" f class:Formatters.Csv.rows
50
- file_extension lib/fukuzatsu/formatters/html.rb /^ def file_extension$/;" f class:Formatters.Html.rows
51
- file_list lib/fukuzatsu/cli.rb /^ def file_list(start_file)$/;" f class:Fukuzatsu
52
- filename lib/fukuzatsu/formatters/base.rb /^ def filename$/;" f class:Formatters.Base
53
- filename lib/fukuzatsu/formatters/html_index.rb /^ def filename$/;" f class:Formatters.HtmlIndex
54
- find_class lib/fukuzatsu/analyzer.rb /^ def find_class(node)$/;" f class:Analyzer
55
- footer lib/fukuzatsu/formatters/csv.rb /^ def footer$/;" f class:Formatters.Csv.rows
56
- footer lib/fukuzatsu/formatters/html.rb /^ def footer$/;" f class:Formatters.Html.rows
57
- footer lib/fukuzatsu/formatters/text.rb /^ def footer$/;" f class:Formatters.Text
58
- formatter lib/fukuzatsu/cli.rb /^ def formatter(options)$/;" f class:Fukuzatsu.CLI
59
- handle_complexity lib/fukuzatsu/cli.rb /^ def handle_complexity(options, highest_complexity, threshold)$/;" f class:Fukuzatsu
60
- handle_index lib/fukuzatsu/cli.rb /^ def handle_index(file_summary)$/;" f class:Fukuzatsu
61
- header lib/fukuzatsu/formatters/csv.rb /^ def header$/;" f class:Formatters.Csv
62
- header lib/fukuzatsu/formatters/html.rb /^ def header$/;" f class:Formatters.Html
63
- header lib/fukuzatsu/formatters/text.rb /^ def header$/;" f class:Formatters.Text
64
- included lib/fukuzatsu/formatters/base.rb /^ def self.included(klass)$/;" F class:Formatters.Base
65
- initialize lib/fukuzatsu/analyzer.rb /^ def initialize(content)$/;" f class:Analyzer
66
- initialize lib/fukuzatsu/formatters/base.rb /^ def initialize(file)$/;" f class:Formatters.Base
67
- initialize lib/fukuzatsu/formatters/html_index.rb /^ def initialize(file_summary)$/;" f class:Formatters.HtmlIndex
68
- initialize spec/fixtures/program_3.rb /^ def initialize(path_to_file)$/;" f class:Breathalizer
69
- methods lib/fukuzatsu/parsed_file.rb /^ def methods$/;" f class:ParsedFile
70
- methods_from lib/fukuzatsu/analyzer.rb /^ def methods_from(node, methods=[])$/;" f class:Analyzer
71
- output_path lib/fukuzatsu/formatters/base.rb /^ def output_path$/;" f class:Formatters.Base
72
- output_path lib/fukuzatsu/formatters/html_index.rb /^ def output_path$/;" f class:Formatters.HtmlIndex
73
- output_template lib/fukuzatsu/formatters/html.rb /^ def output_template$/;" f class:Formatters.Html
74
- output_template lib/fukuzatsu/formatters/html_index.rb /^ def output_template$/;" f class:Formatters.HtmlIndex
75
- parent_node? lib/fukuzatsu/analyzer.rb /^ def parent_node?(node)$/;" f class:Analyzer
76
- parse spec/fixtures/program_3.rb /^ def self.parse!(path_to_file)$/;" F class:Breathalizer
77
- parse! lib/fukuzatsu/analyzer.rb /^ def parse!$/;" f class:Analyzer
78
- parse! spec/fixtures/program_3.rb /^ def parse!$/;" f class:Breathalizer
79
- parsed lib/fukuzatsu/analyzer.rb /^ def parsed$/;" f class:Analyzer
80
- parsed spec/fixtures/program_3.rb /^ def parsed$/;" f class:Breathalizer
81
- prefix lib/fukuzatsu/parsed_method.rb /^ def prefix$/;" f class:ParsedMethod
82
- report lib/fukuzatsu/cli.rb /^ def report(last_file, file_list)$/;" f class:Fukuzatsu
83
- root_path lib/fukuzatsu/formatters/base.rb /^ def root_path$/;" f class:Formatters.Base
84
- rows lib/fukuzatsu/formatters/csv.rb /^ def rows$/;" f class:Formatters.Csv
85
- rows lib/fukuzatsu/formatters/html.rb /^ def rows$/;" f class:Formatters.Html
86
- rows lib/fukuzatsu/formatters/text.rb /^ def rows$/;" f class:Formatters.Text
87
- say_hello spec/fixtures/eg_class.rb /^ def say_hello$/;" f class:Foo
88
- spaghetti spec/fixtures/program_1.rb /^def spaghetti$/;" f
89
- text_at lib/fukuzatsu/analyzer.rb /^ def text_at(start_pos, end_pos)$/;" f class:Analyzer
90
- toppings spec/fixtures/program_2.rb /^def toppings$/;" f
91
- traverse lib/fukuzatsu/analyzer.rb /^ def traverse(node, accumulator=[], extract_methods=false)$/;" f class:Analyzer
92
- traverse spec/fixtures/program_3.rb /^ def traverse(node)#, accumulator=[])$/;" f class:Breathalizer