Skip to content

Commit

Permalink
fix: Search for compose.ya?ml
Browse files Browse the repository at this point in the history
  • Loading branch information
szymon-filipiak authored and zavoloklom committed Oct 1, 2024
1 parent 53e65a8 commit 0050953
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util/files-finder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ export function findFilesForLinting(paths: string[], recursive: boolean, exclude
const exclude = Array.from(excludeSet);
logger.debug('UTIL', `Paths to exclude: ${exclude.toString()}`);

// Regular expression to match docker-compose*.yml and docker-compose*.yaml files
const dockerComposePattern = /^docker-compose.*\.(yml|yaml)$/;
// Regular expression to match [compose*.yml, compose*.yaml, docker-compose*.yml, docker-compose*.yaml] files
const dockerComposePattern = /^(docker-)?compose.*\.ya?ml$/;

paths.forEach((fileOrDir) => {
if (!fs.existsSync(fileOrDir)) {
Expand Down

0 comments on commit 0050953

Please sign in to comment.