On 11 June 2012 18:25, Stuart Herring <[email protected]> wrote:
> Hi All,
>
> Is there any way to add words to rb-spelling.dat, or otherwise have
> the spelling Code Critics rules ignore certain words?

Never mind, I figured it out.  I don't know how I missed it, in fact.
The answer was in RBInternalSpellChecker class>>createWordList:

So, in order to extract the current words, I evaluated the following:

  RBInternalSpellChecker new words
      inject: (FileDirectory default newFileNamed: 'words.txt')
      into: [ :file :word | file nextPutAll: word; nextPutAll: String
crlf. file].

Then modified words.txt to include the extra words I needed, then
evaluated the following to rebuild rb-spelling.dat:

  RBInternalSpellChecker createWordList: 'words.txt'.
  RBSpellChecker default initialize

Now I'm down from 1200+ spelling warnings to a much more manageable 67  :)

Regards,
Stuart

Reply via email to