How to run Spectral CLI using custom lint file?

I ran Spectral CLI locally and I have an error when I use the custom lint file. Both the oas and lint file are local in the same folder.

Could you share the commands to use to run the tool with my custom lint file?

Share your custom lint file content? From the error it seems like there could be some formatting error with the lint file.

Here is the content of our custom lint file:
rules:
oas2:
se_host_must_not_contain_underscore:
enabled: true
summary: Host must not contain underscores
type: style
then:
field: host
function: pattern
functionOptions:
notMatch: _
se_host_must_be_lowercase:
enabled: true
summary: Host must be lowercase
type: style
then:
field: host
function: pattern
functionOptions:
match: ‘^[^A-Z]$’
se_host_must_not_contain_fileextension:
enabled: true
summary: Host must not contain file extension
type: style
then:
field: host
function: pattern
functionOptions:
notMatch: (JSON|json|XML|xml)
se_basepath_must_not_contain_underscore:
enabled: true
summary: Base Path should not contain underscores
type: style
then:
field: basePath
function: pattern
functionOptions:
notMatch: _
se_basepath_must_be_lowercase:
enabled: true
summary: Base Path must be lowercase
type: style
then:
field: basePath
function: pattern
functionOptions:
match: '^[^A-Z]
$’
model-description: true
contact-properties: true
example-value-or-externalValue: false
operation-summary-formatted: false