Skip to content

FEATURE: Add ability to ignore chunks of comments #69

@hjmjohnson

Description

@hjmjohnson

In ITK there are many spelling words added to the dictionary to deal with ASCII art:

Like adding the words

oooooooooooo
oXooooooooooooooooooo

to deal with ASCII art

https://github.com/InsightSoftwareConsortium/ITK/blob/7ca2f0e73e84fd0563b80061d31b1c7f97bea23c/Modules/Numerics/Statistics/test/itkSpatialNeighborSubsamplerTest.cxx#L38

InsightSoftwareConsortium/ITK#5475 (comment)

PROPOSAL 1:

Add a file separate from the main dictionary to describe per-file-pattern spelling exceptions.

# per_file_dictionary_excptions.txt
# allowed words.             : regex for file pattern matching... ".*' is the default if not specified
oooooooooooo               : '.*SpatialNeighborSubsampler.*'
oXooooooooooooooooooo :  '.*SpatialNeighborSubsampler.*'

PROPOSAL 2:

Have in code spelling checking disable/enable as comments

// spell-check : OFF
// spell-check : ON

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions