Skip to content
Snippets Groups Projects
check_spelling_c_config.py 6.15 KiB
Newer Older
  • Learn to ignore specific revisions
  • # ##### BEGIN GPL LICENSE BLOCK #####
    #
    #  This program is free software; you can redistribute it and/or
    #  modify it under the terms of the GNU General Public License
    #  as published by the Free Software Foundation; either version 2
    #  of the License, or (at your option) any later version.
    #
    #  This program is distributed in the hope that it will be useful,
    #  but WITHOUT ANY WARRANTY; without even the implied warranty of
    #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    #  GNU General Public License for more details.
    #
    #  You should have received a copy of the GNU General Public License
    #  along with this program; if not, write to the Free Software Foundation,
    #  Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
    #
    # ##### END GPL LICENSE BLOCK #####
    
    # <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",
    
        "prepend", "prepends",
    
        "rasterize",
        "reachability",
        "runtime",
    
        "serializable",
        "unary",
        "variadic",
    
        # Correct spelling, update the dictionary, here:
        # https://github.com/en-wl/wordlist
    
        "adjoint", "adjugate",
    
        "allocator",
    
    Campbell Barton's avatar
    Campbell Barton committed
        "atomicity",
    
        "breaked",
    
        "catadioptric",
    
        "confusticate", "confusticated",
    
        "customizable",
    
        "decrement",
        "decrementing",
    
        "deduplication",
    
        "dereference", "dereferenced",
    
        "discretization",
    
        "eachother",
    
        "finalizer",
    
        "flushable",
    
        "incrementation",
    
        "initializer"
    
        "jitteryness",
    
        "monospaced",
    
        "mutators",
    
    Campbell Barton's avatar
    Campbell Barton committed
        "natively",
    
        "overridable",
    
        "paddings",
    
        "parameterization",
    
        "parentless",
    
        "polytope",
    
        "postprocessed",
    
        "prefetch", "prefetching",
    
        "probabilistically",
    
        "profiler",
    
        "psudocode",
        "rasterizer",
    
        "rasterizing",
    
        "recurse", "recurses",
    
        "recursed",
    
        "redistributions",
        "registerable",
        "rendeder",
        "reparametization",
    
        "sidedness",
    
        "subclass", "subclasses", "subclassing",
        "subdirectory",
    
        "tertiarily",
    
        "unassign",
    
        "unbuffered",
        "unclamped",
        "uncomment",
        "uneditable",
        "unparameterized",
        "unregister", "unregisters",
    
        "vectorial",
    
    
        # python types
        "enum", "enums",
        "int", "ints",
    
        "tuple", "tuples",
    
        # python functions
        "func",
    
        # Accepted abbreviations/concatenations.
    
        "addon", "addons",
        "autocomplete",
    
        "colospace",
    
        "coord", "coords",
        "dir",
    
        "keyframe", "keyframing",
        "lookup", "lookups",
        "multi",
    
        "multithreaded", "multithreading",
    
        "reparent",
    
        "struct", "structs",
        "subdir",
        "tooltip",
    
        "unparent",
    
        "ascii",
        "autocomplete",
    
        "blit", "blitting",
    
        "boids",
        "booleans",
        "codepage",
    
        "decimator",
        "diff",
        "diffs",
        "endian",
    
        "endianness",
    
        "env",
        "euler", "eulers",
        "foo",
        "hashable",
        "http",
    
        "jitter", "jittering",
    
        "keymap",
        "lerp",
        "metadata",
    
        "opengl",
        "preprocessor",
    
        "quantized",
        "searchable",
    
        "threadsafe",
    
        "touchpad", "touchpads",
        "trackpad", "trackpads",
        "unicode",
    
        "vert", "verts",
        "voxel", "voxels",
        "wiki",
    
    
        # specific computer terms/brands
    
        "ffmpeg",
    
    Campbell Barton's avatar
    Campbell Barton committed
        "freebsd",
    
        "mozilla",
        "netscape",
    
    Campbell Barton's avatar
    Campbell Barton committed
        "sdl",
    
        "valgrind",
    
    Campbell Barton's avatar
    Campbell Barton committed
        "xinerama",
    
    
        # general computer graphics terms
    
        "barycentric",
        "bezier",
        "bicubic",
    
        "bitangent",
    
        "centroid",
        "colinear",
    
        "deinterlace",
        "emissive",
    
        "gaussian",
    
        "lossless",
        "lossy",
    
        "mipmap", "mipmapping",
    
        "ngon", "ngons",
    
        "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",
        "mathutils",
    
        # 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",
        "dof",
    
        "eg",
        "filename", "filenames",
    
        "hardcoded",
    
        "inlined",
        "loc",
    
        "namespace",
    
        "param",
        "polyline", "polylines",
    
        "premultiply", "premultiplied",
    
        "pylint",
        "quad",
        "readonly",
        "submodule", "submodules",
        "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",