Module: TextToCheckstyle

Defined in:
lib/text_to_checkstyle.rb,
lib/text_to_checkstyle/cli.rb,
lib/text_to_checkstyle/error.rb,
lib/text_to_checkstyle/version.rb,
lib/text_to_checkstyle/converter.rb

Defined Under Namespace

Classes: CLI, Converter, NoInputError

Constant Summary collapse

ISSUE_URL =
'https://github.com/packsaddle/ruby-text_to_checkstyle/issues/new'
VERSION =
'0.2.0'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.loggerObject



18
19
20
21
# File 'lib/text_to_checkstyle.rb', line 18

def self.logger
  return @logger if @logger
  @logger = default_logger
end

Class Method Details

.default_loggerObject



11
12
13
14
15
16
# File 'lib/text_to_checkstyle.rb', line 11

def self.default_logger
  logger = Logger.new(STDERR)
  logger.progname = "TextToCheckstyle/#{VERSION}"
  logger.level = Logger::WARN
  logger
end