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

Added support for ignored files and folders. See issue #17 #19

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

samacs
Copy link

@samacs samacs commented Mar 14, 2019

Just added Ignored field to JSON configuration and the Dogo struct to deal with ignored folders and files under the ignored folders.

If the resource being checked is a folder it is just skipped from adding to the Dogo.sourceDir. All subsequent files under that directory are also ignored.

I think it would have been easier to use map[string]string for the Dogo.Ignored field to perform a 1:1 search but I think it's easier to write only an array of files/folders in the JSON file.

@liudng
Copy link
Owner

liudng commented Mar 15, 2019

samacs, thank you for your submission.
please convert the 1 tab character with 4 spaces to indent the source code.

@samacs
Copy link
Author

samacs commented Mar 15, 2019 via email

@liudng
Copy link
Owner

liudng commented Mar 15, 2019

Of course not. this is a good practice.

@liudng
Copy link
Owner

liudng commented Mar 15, 2019

sorry, my idea is to return to the version before 6ee2a10 and submit the merge request. The benefit of this is a clearer revision history.

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