dlang-community / D-Scanner

Swiss-army knife for D source code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ignore a certain file

aminya opened this issue · comments

I have a header file that is generated by dpp, which has some linting issues (e.g. missing documentation, etc), and I want to exclude it from my linted files. How can I do this?

Check out https://github.com/dlang-community/D-Scanner#configuration-1 and specifically https://github.com/dlang-community/D-Scanner#selecting-modules-for-a-specific-check. The basic idea is that you can specify module or package names that DScanner should ignore, for example -std. (replace std with the name of your package).

Thanks. For the record, I was able to exclude mylib.d using the following dscanner.ini at the root of the project.

[analysis.config.ModuleFilters]
undocumented_declaration_check = "-mylib"
long_line_check="-mylib"

Do you know how I can turn off the following listing error?

 Enum name '_Anonymous_2' does not match style guidelines

In the long term, I should probably upstream a change to dpp so it generates guideline compliant names.