Sha256: 6534d33ce6bd229189e8eaf54f484b694cc02fa194d51a7233664cc1258d1388
Contents?: true
Size: 397 Bytes
Versions: 5
Compression:
Stored size: 397 Bytes
Contents
require 'chutney/linter' module Chutney # service class to lint for invalid file names class InvalidFileName < Linter def lint files do |file| base = File.basename file next unless base != base.downcase || base =~ /[ -]/ references = [reference(file)] add_error(references, 'Feature files should be snake_cased') end end end end
Version data entries
5 entries across 5 versions & 1 rubygems