# configuration/constants/violation.constants.ts

> 24 lines of code and 12 definitions.

Tree: GovLab Pipeline
Language: typescript
Layer: infrastructure
Canonical: https://banes-lab.com/anatomy/pipeline#file-pipeline-configuration-constants-violation-constants-ts
Source text: https://banes-lab.com/source/pipeline/configuration/constants/violation.constants.ts.txt

Listed in [configuration/constants](https://banes-lab.com/api/source/pipeline/configuration/constants.md), after [configuration/constants/stage.constants.ts](https://banes-lab.com/source/pipeline/configuration/constants/stage.constants.ts.md).

## Definitions

- `COUNT_KEYWORDS` (lexical_declaration, line 1, exported)
- `DIGITS` (lexical_declaration, line 3, exported)
- `SOURCE_EXTENSIONS` (lexical_declaration, line 5, exported)
- `MIN_FINDING_PARTS` (lexical_declaration, line 19, exported)
- `SGR_OPEN` (lexical_declaration, line 21, exported)
- `SGR_END` (lexical_declaration, line 23, exported)
- `SGR_BODY` (lexical_declaration, line 25, exported)
- `GAP_CHARS` (lexical_declaration, line 27, exported)
- `MIN_GAP` (lexical_declaration, line 29, exported)
- `CARRIAGE_RETURN` (lexical_declaration, line 31, exported)
- `POSITION_SEPARATOR` (lexical_declaration, line 33, exported)
- `MESSAGE_JOIN` (lexical_declaration, line 35, exported)

## Contained in

- [configuration/constants](https://banes-lab.com/anatomy/pipeline/folder-pipeline-configuration-constants.md)

## Source

```typescript
export const COUNT_KEYWORDS: readonly string[] = ["error", "problem", "finding", "violation", "advisory"];

export const DIGITS: ReadonlySet<string> = new Set(["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]);

export const SOURCE_EXTENSIONS: readonly string[] = [
    ".ts",
    ".tsx",
    ".mts",
    ".cts",
    ".js",
    ".mjs",
    ".cjs",
    ".css",
    ".html",
    ".json",
    ".md",
];

export const MIN_FINDING_PARTS = 2;

export const SGR_OPEN = "\u001B[";

export const SGR_END = "m";

export const SGR_BODY: ReadonlySet<string> = new Set(["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", ";"]);

export const GAP_CHARS: ReadonlySet<string> = new Set([" ", "\t", "\v", "\f", "\r"]);

export const MIN_GAP = 2;

export const CARRIAGE_RETURN = "\r";

export const POSITION_SEPARATOR = ":";

export const MESSAGE_JOIN = "  ";
```
