Re: dub lint

2022-09-16 Thread Christian Köstlin via Digitalmars-d-learn
On 16.09.22 02:23, rikki cattermole wrote: https://github.com/dlang/dub/issues/2483 Also the double --config option is already in a bugreport (quite old), but not fixed as far as i can see: https://github.com/dlang/dub/issues/1940 Kind regards, Christian

Re: dub lint

2022-09-15 Thread rikki cattermole via Digitalmars-d-learn
https://github.com/dlang/dub/issues/2483

Re: dub lint

2022-09-15 Thread Christian Köstlin via Digitalmars-d-learn
On 16.09.22 01:14, Christian Köstlin wrote: On 16.09.22 00:14, Ali Çehreli wrote: On 9/15/22 15:04, Ali Çehreli wrote:  > Is there a way to silence specific 'dub lint' warnings? Answering myself, I don't think it's possible but luckily my catching an Error was in uni

Re: dub lint

2022-09-15 Thread Ali Çehreli via Digitalmars-d-learn
ls did that too.) > interestingly `dub lint --help` shows two different options for `--config`: > > ``` > dub lint --help > USAGE: dub lint [[@]] [] [-- > ] > .. > .. >--config=VALUEUse the given configuration file. > .. > .. >-c --config=V

Re: dub lint

2022-09-15 Thread Christian Köstlin via Digitalmars-d-learn
On 16.09.22 00:14, Ali Çehreli wrote: On 9/15/22 15:04, Ali Çehreli wrote: > Is there a way to silence specific 'dub lint' warnings? Answering myself, I don't think it's possible but luckily my catching an Error was in unittests only so I can do either of the following

Re: dub lint

2022-09-15 Thread Ali Çehreli via Digitalmars-d-learn
On 9/15/22 15:04, Ali Çehreli wrote: > Is there a way to silence specific 'dub lint' warnings? Answering myself, I don't think it's possible but luckily my catching an Error was in unittests only so I can do either of the following to skip unittest code when linting:

Re: dub lint

2022-09-15 Thread Ali Çehreli via Digitalmars-d-learn
} } [warn]: Catching Error or Throwable is almost always a bad idea. Is there a way to silence specific 'dub lint' warnings? For example, the code above is actually similar to assertThrown!Error, which knows what it's doing. :) https://dub.pm/commandline.html#lint Ali

dub lint

2022-09-15 Thread Ali Çehreli via Digitalmars-d-learn
I've always thought of dub as a package manager and a build tool. But it actually makes it easy to use other tools: - dub lint: Runs some checks on your project. What I liked is how it removed the need to figure out how to install dscanner, which it uses behind the scenes. It inst