Skip to content
Snippets Groups Projects
check_spelling_c_config.py 9.23 KiB
Newer Older
  • Learn to ignore specific revisions
  • # SPDX-License-Identifier: GPL-2.0-or-later
    
    
    # <pep8 compliant>
    
    # these must be all lower case for comparisons
    
    dict_custom = {
    
        # Added to newer versions of the dictionary,
        # we can remove these when the updated word-lists have been applied to aspell-en.
    
        "accessor",
        "accessors",
        "completer",
        "completers",
        "enqueue",
        "enqueued",
        "enqueues",
    
        "intrinsics",
        "iterable",
    
        "parallelization",
        "parallelized",
    
        "pipelining",
        "polygonization",
    
        "rasterize",
        "reachability",
    
        "serializable",
        "unary",
        "variadic",
    
        # Correct spelling, update the dictionary, here:
        # https://github.com/en-wl/wordlist
    
        "accessor",
    
        "allocatable",
    
        "anisotropic",
    
        "anisotropy",
    
    Campbell Barton's avatar
    Campbell Barton committed
        "atomicity",
    
        "breaked",
    
        "canonicalization",
        "canonicalized",
        "canonicalizing",
    
        "catadioptric",
    
        "checksums",
    
        "compilable",
    
        "constructability",
    
        "coplanarity",
    
        "counterforce",
    
        "criterium",
    
        "crosstalk",
    
        "customizable",
    
        "deallocate",
        "deallocated",
        "deallocating",
    
        "decorrelated",
    
        "decrement",
        "decrementing",
    
        "degeneracies",
    
        "denoised",
        "denoiser",
        "denoising",
        "dereference",
        "dereferenced",
        "dereferencing",
    
        "designator",
    
        "discoverability",
    
        "discretization",
    
        "downcasting",
    
        "durations",
    
        "eachother",
    
        "enqueueing",
    
        "finalizer",
    
        "flushable",
    
        "formatter",
    
        "highlightable",
        "homogenous",
    
        "ideographic",
    
        "illuminant",
    
        "incrementation",
    
        "initializer",
        "initializers",
        "instancer",
        "instancers",
        "instantiable",
        "instantiation",
        "instantiations",
    
        "interferences",
    
        "interocular",
    
        "invariants",
    
        "invisibilities",
    
        "irradiance",
        "iteratively",
    
        "jitteryness",
    
        "luminances",
    
        "mergeable",
    
        "minimalistic",
    
        "misconfiguration",
        "misconfigured",
        "monoscopy",
    
        "monospaced",
    
    Campbell Barton's avatar
    Campbell Barton committed
        "natively",
    
        "optionals",
    
        "orthogonalize",
    
        "overridable",
    
        "paddings",
    
        "parameterization",
    
        "parentless",
    
        "passepartout",
    
        "passthrough",
        "pixelate",
        "pixelated",
        "pixelisation",
    
        "planarity",
    
        "polytope",
    
        "postprocessed",
    
        "pre-filtered",
    
        "precisions",
    
        "precomputations",
    
        "precompute",
        "precomputed",
        "precomputing",
        "prefetch",
        "prefetching",
        "prefilter",
        "prefiltered",
        "prefiltering",
        "premutliplied",
        "prepend",
        "prepending",
        "preprocess",
        "preprocessing",
        "preprocessor",
        "preprocessors",
    
        "preventively",
    
        "probabilistically",
    
        "procedurally",
    
        "profiler",
    
        "quadratically",
    
        "rasterizer",
    
        "rasterizes",
    
        "rasterizing",
    
        "rebalancing",
    
        "recomputation",
    
        "recursed",
    
        "recursivity",
    
        "redistributions",
        "registerable",
    
        "remappable",
        "remapper",
    
        "rendeder",
    
        "renderable",
        "renormalize",
    
        "reparameterization",
    
        "reparametization",
    
        "repurpose",
    
        "reusability",
    
        "serializers",
        "sharpnesses",
    
        "sidedness",
    
        "skippable",
    
        "stitchable",
    
        "subclass",
        "subclasses",
        "subclassing",
        "subdirectories",
        "subdirectory",
        "templating",
    
        "tertiarily",
    
        "triangulations",
    
        "triangulator",
    
        "trilinear",
        "tunable",
    
        "unbuffered",
        "unclamped",
        "uncomment",
    
        "unconfigured",
    
        "undisplaced",
    
        "uneditable",
    
        "unformatted",
    
        "unkeyframed",
    
        "unlinkable",
    
        "unlinked",
        "unlinking",
        "unmaximized",
        "unnormalized",
    
        "unparameterized",
    
        "unproject",
    
        "unsynchronized",
    
        "untrusted",
    
        "unvisited",
    
        "vectorial",
    
        "vectorization",
        "vectorized",
        "versionable",
        "videogrammetry",
    
        "virtualized",
    
        "visibilities",
    
        "volumetrics",
    
        # Accepted concatenations.
    
        "colospace",
    
        "datablock",
        "datablocks",
        "keyframe",
        "keyframing",
        "lookup",
        "lookups",
        "multithreaded",
        "multithreading",
    
        "namespace",
        "reparent",
        "tooltip",
        "unparent",
    
        # Accepted abbreviations.
    
        "ascii",
        "autocomplete",
    
        "boids",
        "booleans",
        "codepage",
    
        "decimator",
        "diff",
        "diffs",
        "endian",
    
        "endianness",
    
        "foo",
        "hashable",
        "http",
    
        "intelisense",
    
        "keymap",
        "lerp",
        "metadata",
    
        "quantized",
        "searchable",
    
        "threadsafe",
    
        "touchpad",
        "touchpads",
        "trackpad",
        "trackpads",
    
    
        # specific computer terms/brands
    
        "ffmpeg",
    
    Campbell Barton's avatar
    Campbell Barton committed
        "freebsd",
    
        "valgrind",
    
    Campbell Barton's avatar
    Campbell Barton committed
        "xinerama",
    
    
        # general computer graphics terms
    
        "barycentric",
        "bezier",
        "bicubic",
    
        "bitangent",
    
        "centroid",
        "colinear",
    
        "deinterlace",
        "emissive",
    
        "gaussian",
    
        "lossless",
        "lossy",
    
        "luma",
        "mipmap",
        "mipmapped",
        "mipmapping",
        "mipmaps",
    
        "quaternions",
        "radiosity",
        "reflectance",
        "shader",
        "shaders",
        "specular",
    
        # Blender specific terms.
    
    Campbell Barton's avatar
    Campbell Barton committed
        "animsys",
        "animviz",
    
    Campbell Barton's avatar
    Campbell Barton committed
        "depsgraph",
        "doctree",
    
    Campbell Barton's avatar
    Campbell Barton committed
        "eekadoodle",
        "fcurve",
    
    Campbell Barton's avatar
    Campbell Barton committed
        "mathutils",
    
        "userpref",
        "userprefs",
    
        # Should have apostrophe but ignore for now unless we want to get really picky!
    
        "indices",
        "vertices",
    }
    
    # incorrect spelling but ignore anyway
    dict_ignore = {
    
        "a-z",
        "animatable",
    
        "dirpath",
    
        "hardcoded",
    
        "inlined",
        "loc",
    
        "namespace",
    
        "polyline",
        "polylines",
        "premultiplied",
        "premultiply",
    
        "pylint",
        "quad",
        "readonly",
    
        "tooltips",
        "tri",
        "ui",
        "unfuzzy",
        "utils",
        "uv",
        "vec",
    
        "wireframe",
    
        "x-axis",
        "y-axis",
        "z-axis",
    
        "hg",
        "ik",
        "lhs",
        "nan",
    
    
        # tags
        "fixme",
        "todo",
    
        # sphinx/rst
        "rtype",
    
        # slang
        "automagically",
    
        "hacky",
        "hrmf",
    
    
        # Company names.
        "Logitech",
        "Wacom",
    
        # Project Names.
        "Wayland",
    
        # clang-tidy (for convenience).
        "bugprone-suspicious-enum-usage",
    
        "bugprone-use-after-move",
    
    
    # Allow: `un-word`, `re-word` ... etc, in this case only check `word`.
    dict_ignore_hyphenated_prefix = {
        "de",
        "mis",
        "non",
        "post",
        "pre",
        "re",
        "un",
    }
    
    dict_ignore_hyphenated_suffix = {
        "ish",
        "ness",
    }
    
    
    files_ignore = {
        "source/tools/utils_doc/rna_manual_reference_updater.py",  # Contains language ID references.
    }