Adds analysis stage to the pipeline.
File paths or glob patterns to analyze
Analysis rules to apply
This instance for chaining
Adds build validation stage to the pipeline.
Whether to rollback on build failure
This instance for chaining
Clears all pipeline stages.
This instance for chaining
Executes the pipeline and returns the result. Terminal operation - ends the chain.
Pipeline execution result
Adds filter stage to the pipeline. Filters violations based on predicate.
Filter function
This instance for chaining
Registers a progress callback for pipeline execution. The callback will be invoked after each stage completes.
Progress callback function
This instance for chaining
Adds post-transformation validation stage.
This instance for chaining
Adds pre-transformation validation stage.
This instance for chaining
Stops the pipeline at the first failing stage and lets every build check of the pipeline roll back the files of a failed build.
This instance for chaining
Converts the pipeline to an RxJS Observable for reactive execution. Requires rxjs to be installed as a peer dependency.
Emits events for:
Promise<Observable
const observable = await FluentKernel.create(kernel)
.analyze(files, rules)
.filter(v => v.severity === 'high')
.toObservable();
observable
.pipe(
tap(event => console.info('Event:', event.type)),
filter(event => event.type === 'complete')
)
.subscribe({
next: (event) => console.info('Pipeline event:', event),
error: (err) => console.error('Pipeline failed:', err),
complete: () => console.info('Pipeline complete')
});
Adds transformation stage to the pipeline.
Type of transformation to apply
Optionalpatterns: readonly string[]Optional file patterns to transform
OptionalpluginConfig: Record<string, Record<string, unknown>>Optional plugin config keyed by plugin name (see TransformStage)
This instance for chaining
Enables verbose logging for pipeline execution.
This instance for chaining
Adds custom metadata to the pipeline result.
Custom metadata
This instance for chaining
StaticcreateCreates a new fluent kernel instance.
Optionalconfig: KernelConfig | KernelKernel configuration or existing kernel instance
New fluent kernel
Fluent kernel with a chainable, builder-style API for analysis and transformation pipelines on top of an initialized Kernel.
Each builder call adds a stage; FluentKernel.execute runs them in order.
Example