# core/predicates/knob.predicate.ts

> 5 lines of code and 2 definitions.

Tree: GovLab Quality
Language: typescript
Layer: infrastructure
Canonical: https://banes-lab.com/anatomy/quality#file-quality-core-predicates-knob-predicate-ts
Source text: https://banes-lab.com/source/quality/core/predicates/knob.predicate.ts.txt

Listed in [core/predicates](https://banes-lab.com/api/source/quality/core/predicates.md), after [core/predicates/filename.predicate.ts](https://banes-lab.com/source/quality/core/predicates/filename.predicate.ts.md) and before [core/predicates/location.predicate.ts](https://banes-lab.com/source/quality/core/predicates/location.predicate.ts.md).

## Definitions

- `isThreshold` (lexical_declaration, line 3, exported)
- `lowered` (lexical_declaration, line 4, exported)

## Contained in

- [core/predicates](https://banes-lab.com/anatomy/quality/folder-quality-core-predicates.md)

## Used by

- [core/producers/tool.clippy.producer.ts](https://banes-lab.com/source/quality/core/producers/tool.clippy.producer.ts.md)
- [core/producers/tool.golangci-lint.producer.ts](https://banes-lab.com/source/quality/core/producers/tool.golangci-lint.producer.ts.md)
- [core/producers/tool.rubocop.producer.ts](https://banes-lab.com/source/quality/core/producers/tool.rubocop.producer.ts.md)
- [core/producers/tool.sqlfluff.producer.ts](https://banes-lab.com/source/quality/core/producers/tool.sqlfluff.producer.ts.md)

## Linked from

- [core/producers](https://banes-lab.com/anatomy/quality/folder-quality-core-producers.md)

## Source

```typescript
import { THRESHOLD_PARTS } from "#configuration/constants/knob.constants";

export const isThreshold = function isThreshold(name: string): boolean {
    const lowered = name.toLowerCase();
    return THRESHOLD_PARTS.some((part) => lowered.includes(part));
};
```
