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

feat: config #7

Merged
merged 21 commits into from
Jan 11, 2024
Merged

feat: config #7

merged 21 commits into from
Jan 11, 2024

Conversation

gas1cent
Copy link
Member

@gas1cent gas1cent commented Jan 10, 2024

@gas1cent gas1cent requested a review from 0xGorilla January 10, 2024 11:03
@gas1cent gas1cent self-assigned this Jan 10, 2024
Copy link

linear bot commented Jan 10, 2024

Copy link

linear bot commented Jan 10, 2024

@gas1cent gas1cent marked this pull request as ready for review January 10, 2024 18:47
src/main.ts Outdated Show resolved Hide resolved
src/main.ts Outdated Show resolved Hide resolved
src/main.ts Show resolved Hide resolved
src/validator.ts Outdated Show resolved Hide resolved
Copy link
Member

@0xGorilla 0xGorilla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code is super clean! Well done, just a few comments before approving

.filter(sourceUnit => isFileInDirectory(contractsPath, sourceUnit.absolutePath));
.filter(sourceUnit => isFileInDirectory(contractsPath, sourceUnit.absolutePath))
// avoid processing files from ignored directories
.filter(sourceUnit => !ignoredPaths.some(ignoredPath => ignoredPath === sourceUnit.absolutePath));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can it happen that ignoredPath has an ending / and absolute path doesn't and stuff like that?
please check isFileInDirectory, I made sure that it is safe to those scenarios

@gas1cent gas1cent merged commit 45c89f1 into main Jan 11, 2024
3 checks passed
@gas1cent gas1cent deleted the feat/config branch January 11, 2024 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants