---
url: /reference/@cssdoc/embedded/functions/lintCssDocsFromSource.md
---
# Function: lintCssDocsFromSource()

```ts
function lintCssDocsFromSource(source, opts?): Violation[];
```

Defined in: [packages/embedded/src/index.ts:302](https://github.com/thedannywahl/cssdoc/blob/main/packages/embedded/src/index.ts#L302)

Lint the cssdoc in a host source (projects first). Violation lines are absolute in the source.

## Parameters

### source

`string`

### opts?

[`EmbeddedOptions`](../interfaces/EmbeddedOptions.md) & [`LintOptions`](../../lint-core/interfaces/LintOptions.md) = `{}`

## Returns

[`Violation`](../../lint-core/interfaces/Violation.md)\[]
