Class: Diogenes::Validate::Runner

Inherits:
Object
  • Object
show all
Defined in:
lib/diogenes/validate/runner.rb

Constant Summary collapse

SOURCE_SUBDIRS =

: Array

%w[skills rules hooks].freeze
ARTIFACTS_SUBDIR =

: String

"artifacts"
TOKENS_PER_CHAR =

: Float

4.0
PROMPT_TOKEN_LIMIT =

: Integer

2000

Instance Method Summary collapse

Constructor Details

#initialize(diogenes_dir) ⇒ Runner

: (String) -> void



13
14
15
16
# File 'lib/diogenes/validate/runner.rb', line 13

def initialize(diogenes_dir)
  @diogenes_dir = diogenes_dir #: String
  @issues = [] #: Array[Validate::Issue]
end

Instance Method Details

#runObject

: () -> Array



19
20
21
22
23
24
25
26
# File 'lib/diogenes/validate/runner.rb', line 19

def run
  Diogenes.reset!
  load_config
  load_sources
  check_artifact_templates
  check_prompt_lengths
  @issues
end