RuleErrored
¶
A rule failed to check a workflow and threw an exception.
Defined by SafeRule
in the "Internal" ruleset.
Description¶
An error occurred while checking the workflow. It came from another rule, so it's not possible to provide more details than the error stack trace.
Compliant example¶
Minimal valid workflow.
example.yml
on: push jobs: example: runs-on: ubuntu-latest steps: - run: echo "Example"
Non-compliant example¶
Fake example to satisfy the validation framework.
example.yml
name: "Invalid" on: push jobs: example: runs-on: ubuntu-latest steps: - run: echo "Example"
- Line 1: net.twisterrob.ghlint.docs.issues.ProblematicRule@e27ba81 errored while checking example.yml:
java.lang.IllegalStateException: Demonstrative failure. at net.twisterrob.ghlint.docs.issues.ProblematicRule.check(DocumentationRuleSet.kt:31) at net.twisterrob.ghlint.analysis.SafeRule.check(SafeRule.kt:19) at net.twisterrob.ghlint.analysis.SafeRule.check(SafeRule.kt:19) at net.twisterrob.ghlint.analysis.Analyzer.analyze$lambda$3$lambda$2$lambda$1(Analyzer.kt:24) at kotlin.sequences.FlatteningSequence$iterator$1.ensureItemIterator(Sequences.kt:330) at kotlin.sequences.FlatteningSequence$iterator$1.hasNext(Sequences.kt:318) at kotlin.sequences.SequencesKt___SequencesKt.toList(_Sequences.kt:813) at net.twisterrob.ghlint.analysis.Analyzer.analyze(Analyzer.kt:25) at net.twisterrob.ghlint.docs.issues.MarkdownRendererKt.calculateFindings(MarkdownRenderer.kt:111) at net.twisterrob.ghlint.docs.issues.MarkdownRendererKt.renderExamples(MarkdownRenderer.kt:97) at net.twisterrob.ghlint.docs.issues.MarkdownRendererKt.access$renderExamples(MarkdownRenderer.kt:1) at net.twisterrob.ghlint.docs.issues.MarkdownRenderer.renderIssueDescription(MarkdownRenderer.kt:74) at net.twisterrob.ghlint.docs.issues.MarkdownRenderer.renderIssue(MarkdownRenderer.kt:67) at net.twisterrob.ghlint.docs.issues.Generator.generate(Generator.kt:21) at net.twisterrob.ghlint.docs.issues.MainKt.main(main.kt:9)