Skip to content

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

Open
samacs wants to merge 2 commits into
liudng:masterfrom
samacs:support-ignore
Open

Added support for ignored files and folders. See issue #17#19
samacs wants to merge 2 commits into
liudng:masterfrom
samacs:support-ignore

Conversation

@samacs

@samacs samacs commented Mar 14, 2019

Copy link
Copy Markdown

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

liudng commented Mar 15, 2019

Copy link
Copy Markdown
Owner

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

@samacs

samacs commented Mar 15, 2019 via email

Copy link
Copy Markdown
Author

@liudng

liudng commented Mar 15, 2019

Copy link
Copy Markdown
Owner

Of course not. this is a good practice.

@liudng

liudng commented Mar 15, 2019

Copy link
Copy Markdown
Owner

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