---
url: /reference/@cssdoc/lint-core/interfaces/Violation.md
---
# Interface: Violation

Defined in: [packages/lint-core/src/index.ts:97](https://github.com/thedannywahl/cssdoc/blob/main/packages/lint-core/src/index.ts#L97)

One rule violation.

## Properties

### fix?

```ts
optional fix?: DiagnosticFix;
```

Defined in: [packages/lint-core/src/index.ts:111](https://github.com/thedannywahl/cssdoc/blob/main/packages/lint-core/src/index.ts#L111)

A deterministic source edit, when the rule can be repaired safely.

***

### line

```ts
line: number;
```

Defined in: [packages/lint-core/src/index.ts:105](https://github.com/thedannywahl/cssdoc/blob/main/packages/lint-core/src/index.ts#L105)

The 1-based source line of the violation.

***

### message

```ts
message: string;
```

Defined in: [packages/lint-core/src/index.ts:101](https://github.com/thedannywahl/cssdoc/blob/main/packages/lint-core/src/index.ts#L101)

A human-readable message.

***

### record

```ts
record: string;
```

Defined in: [packages/lint-core/src/index.ts:103](https://github.com/thedannywahl/cssdoc/blob/main/packages/lint-core/src/index.ts#L103)

The record (component/utility/…) the violation is about.

***

### rule

```ts
rule: RuleName;
```

Defined in: [packages/lint-core/src/index.ts:99](https://github.com/thedannywahl/cssdoc/blob/main/packages/lint-core/src/index.ts#L99)

Which rule fired.

***

### severity

```ts
severity: Severity;
```

Defined in: [packages/lint-core/src/index.ts:109](https://github.com/thedannywahl/cssdoc/blob/main/packages/lint-core/src/index.ts#L109)

The resolved severity (`error` or `warning`).

***

### span?

```ts
optional span?: SourceSpan;
```

Defined in: [packages/lint-core/src/index.ts:107](https://github.com/thedannywahl/cssdoc/blob/main/packages/lint-core/src/index.ts#L107)

The full source range, when known — lets a host highlight just the offending span.
