Open justindhill opened 7 years ago
Had a chat with @zac-robinson and @JackIngleton, we agreed that the PWL needs some changes. We where thinking of making it optional and make it possible to set it as a config param so it could be different for each project that you wish to lint. So in case you want to have a PWL then you'd specify whatever file you'd like to. If you have any suggestions please let us know and we will look into them.
I think that makes a lot of sense. I can see a use case where someone would want to provide some additional words to their dictionary. Also of note, I actually have spell checking disabled and it looks like the enchant dictionary is still being instantiated. Does bslint use enchant for additional features?
yes, the enchant dictionary(and the PWL) get loaded even if the spell check is disabled. This is one of the things that need to change. I'll try and get it fixed in the next couple of days.
Great, thanks a lot! This is an excellent project and I think it's going to help us a lot. 😊
It looks like bslint, by nature of using enchant with a PWL, needs the PWL file to be writable by the user running it. (I did some digging and found out that enchant opens the PWL in
a+b
mode when attempting to load it) This can be problematic in CI setups where the CI server is run as its own user.Here is some sample output that corroborates this:
I propose that the PWL be copied somewhere in the user's home directory so that bslint can run correctly as any user.