Module: GemLint

Defined in:
lib/gem_lint.rb,
lib/gem_lint/runner.rb,
lib/gem_lint/strategies/readme_strategy.rb,
lib/gem_lint/strategies/pkg_dir_strategy.rb,
lib/gem_lint/strategies/abstract_strategy.rb,
lib/gem_lint/strategies/no_files_strategy.rb,
lib/gem_lint/strategies/changelog_strategy.rb,
lib/gem_lint/strategies/csv_email_strategy.rb,
lib/gem_lint/strategies/csv_authors_strategy.rb,
lib/gem_lint/strategies/empty_email_strategy.rb,
lib/gem_lint/strategies/string_email_strategy.rb,
lib/gem_lint/strategies/empty_authors_strategy.rb,
lib/gem_lint/strategies/utf8_metadata_strategy.rb,
lib/gem_lint/strategies/duplicate_email_strategy.rb,
lib/gem_lint/strategies/bin_ends_with_rb_strategy.rb,
lib/gem_lint/strategies/capitals_in_name_strategy.rb,
lib/gem_lint/strategies/contains_gem_file_strategy.rb,
lib/gem_lint/strategies/duplicate_authors_strategy.rb,
lib/gem_lint/strategies/ruby_file_location_strategy.rb,
lib/gem_lint/strategies/bin_without_shebang_strategy.rb,
lib/gem_lint/strategies/require_matches_gemname_strategy.rb,
lib/gem_lint/strategies/test_files_in_files_attribute_strategy.rb

Defined Under Namespace

Modules: Strategies Classes: Runner

Class Method Summary collapse

Class Method Details

.strategiesObject

return an array of all strategy classes



19
20
21
22
23
24
25
# File 'lib/gem_lint.rb', line 19

def self.strategies
  GemLint::Strategies.constants.sort.select { |class_name|
    class_name.to_s != "AbstractStrategy"
  }.map { |class_name|
    GemLint::Strategies.const_get(class_name)
  }
end