Sha256: 2983fe169866499c93b1050f4c3b55844478661444a0125a02e6e8e85df18aa5
Contents?: true
Size: 1.77 KB
Versions: 5
Compression:
Stored size: 1.77 KB
Contents
# Ruby's configuration Inch::Config.register(:ruby) do codebase do object_provider :YARD include_files ['lib/**/*.rb', 'app/**/*.rb'] exclude_files [] end evaluation do schema(:ConstantObject) do docstring 1.0 # optional: unconsidered_tag 0.2 end schema(:ClassVariableObject) do docstring 1.0 # optional: unconsidered_tag 0.2 end schema(:ClassObject) do docstring 1.0 # optional: code_example_single 0.1 code_example_multi 0.2 unconsidered_tag 0.2 end schema(:ModuleObject) do docstring 1.0 # optional: code_example_single 0.1 code_example_multi 0.2 unconsidered_tag 0.2 end schema(:MethodObject) do docstring 0.5 parameters 0.4 return_type 0.1 return_description 0.3 if object.constructor? || object.questioning_name? parameters parameters + return_type return_type 0.0 end if object.constructor? return_description 0.0 end if object.setter? return_description return_description + parameters if object.original_docstring == "" # we don't count parameters when the docstring is missing or implicit parameters 0.0 else parameters parameters + return_description end end if !object.has_parameters? return_description docstring + parameters docstring docstring + parameters parameters 0.0 end # optional: code_example_single 0.1 code_example_multi 0.25 unconsidered_tag 0.2 end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
inch-0.9.0.rc1 | config/ruby.rb |
inch-0.8.0 | config/ruby.rb |
inch-0.8.0.rc2 | config/ruby.rb |
inch-0.8.0.rc1 | config/ruby.rb |
inch-0.7.1 | config/ruby.rb |