Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'files' option in config file doesn't seem to work #4593

Open
Issayev opened this issue Jun 28, 2023 · 1 comment
Open

'files' option in config file doesn't seem to work #4593

Issayev opened this issue Jun 28, 2023 · 1 comment

Comments

@Issayev
Copy link

Issayev commented Jun 28, 2023

Description

I've tried to use cspell cli with config file like that to check file with only one extension, but it continued to check all the files in project. I met similar problems with 'ignorePaths' option before using 'globeRoot'. However with 'files' I haven't found any way to make it filter the files to check.

const cspellConfig = {
  version: '0.2',
  language: 'en',
  files: ['${cwd}/*.json'],
};

module.exports = cspellConfig;
@Jason3S
Copy link
Collaborator

Jason3S commented Jul 3, 2023

@Issayev,

files is used to specify the glob pattens to check if they have not been specified on the command line. It is not a filter, but a way to check files by default.

How are you invoking cspell?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants