Module: Vastlint
- Defined in:
- lib/vastlint.rb,
lib/vastlint/error.rb,
lib/vastlint/issue.rb,
lib/vastlint/result.rb,
lib/vastlint/library.rb,
lib/vastlint/summary.rb,
lib/vastlint/version.rb
Defined Under Namespace
Classes: Error, Issue, Library, LibraryError, Result, Summary
Constant Summary
collapse
- VERSION =
"0.7.1"
Class Method Summary
collapse
Class Method Details
.validate(xml, wrapper_depth: 0, max_wrapper_depth: 5, rule_overrides: nil) ⇒ Object
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# File 'lib/vastlint.rb', line 12
def validate(xml, wrapper_depth: 0, max_wrapper_depth: 5, rule_overrides: nil)
normalized_xml = normalize_xml(xml)
validate_options!(wrapper_depth, max_wrapper_depth, rule_overrides)
Result.from_json(
Library.instance.validate(
normalized_xml,
wrapper_depth: wrapper_depth,
max_wrapper_depth: max_wrapper_depth,
rule_overrides: rule_overrides
)
)
end
|
.version ⇒ Object
26
27
28
|
# File 'lib/vastlint.rb', line 26
def version
Library.instance.version
end
|