Showing 33 of 44 total issues
File cmd.rb
has 721 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
require 'clamp'
module AssLauncher
# AssLauncher command-line untils
# @example
# $ass-launcher --help
File cli_def_snippets.rb
has 347 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
class String
def snakize
gsub(/(.)([A-Z])/,'\1_\2').downcase
end
end
File parameters.rb
has 320 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
module AssLauncher
module Enterprise
module Cli
# 1C Enterprise cli parameters
# Fuckin 1C have very obscure cli api
File connection_string.rb
has 312 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
module AssLauncher
module Support
# Implement 1C connection string
# Mixin for connection string classes
# @note All connection string class have methods for get and set values
File with_creteinfobase_example.rb
has 276 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
require 'example_helper'
module Examples
module TroublesWithCreateFileinfobase
describe "CREATEINFOBASE doesn't check self argument for valid connection string" do
File shell.rb
has 271 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
class String
require 'shellwords'
def to_cmd
if AssLauncher::Support::Platforms.windows?\
|| AssLauncher::Support::Platforms.cygwin?
Class CliDefReport
has 21 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class CliDefReport
module Cmd
require 'clamp'
class AbstractCommand < Clamp::Command
option ['-v', '--version'], 'VERSION',
Class BinaryWrapper
has 21 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class BinaryWrapper
include AssLauncher::Support::Platforms
attr_reader :path
V64_FILES = %w{version64.dat version64.txt}
# @api public
Method to_table
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def to_table(columns)
require 'command_line_reporter'
extend CommandLineReporter
header title: main_header, width: main_header.length, rule: true,
Method initialize
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def initialize(name, desc, binary_matcher,
group, modes, parent = nil, **options)
Method initialize
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def initialize(client, mode, version, appiared_only, query, dev_mode)
Method new_param
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def new_param(klass, name, desc, clients = [], options = {}, &block)
Method flag
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def flag(name, desc, *clients, **options, &block)
Method switch
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def switch(name, desc, *clients, **options, &block)
Method string
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def string(name, desc, *clients, **options, &block)
Method num
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def num(name, desc, *clients, **options, &block)
Method path
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def path(name, desc, *clients, **options, &block)
Method chose
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def chose(name, desc, *clients, **options, &block)
Method path_not_exist
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def path_not_exist(name, desc, *clients, **options, &block)
Method eval_width
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def eval_width(col, total, r, trim, rows)