Skip to content
Snippets Groups Projects
check_spelling_c_config.py 4.24 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
    
    # correct spelling but ignore
    dict_custom = {
    
        "adjoint", "adjugate",
    
        "allocator",
    
    Campbell Barton's avatar
    Campbell Barton committed
        "atomicity",
    
        "boolean",
        "decrement",
        "decrementing",
        "desaturate",
        "enqueue",
        "equiangular",
    
        "instantiation",
        "iterable",
        "merchantability",
    
    Campbell Barton's avatar
    Campbell Barton committed
        "natively",
    
    Campbell Barton's avatar
    Campbell Barton committed
        "parallelization",
    
        "parallelized",
    
        "prepend",
        "probabilistically",
        "recurse",
        "subclass", "subclasses", "subclassing",
        "subdirectory",
    
        "unregister",
        "unselected",
    
    Campbell Barton's avatar
    Campbell Barton committed
        "variadic",
    
    
        # python types
        "enum", "enums",
        "int", "ints",
    
        "tuple", "tuples",
    
        # python functions
        "func",
    
    
        # accepted abbreviations
        "addon", "addons",
        "autocomplete",
    
        "coord", "coords",
        "dir",
    
        "keyframe", "keyframing",
        "lookup", "lookups",
        "multi",
    
    Campbell Barton's avatar
    Campbell Barton committed
        "multithreading",
    
        "namespace",
        "recalc",
        "struct", "structs",
        "subdir",
        "tooltip",
    
    
        # general computer terms
    
        "XXX",
        "app",
        "autorepeat",
    
        "blit", "blitting",
    
        "boids",
        "booleans",
        "codepage",
    
        "decimator",
        "diff",
        "diffs",
        "endian",
        "env",
        "euler", "eulers",
        "foo",
        "hashable",
        "http",
        "intrinsics",
    
        "jitter", "jittering",
    
        "keymap",
        "lerp",
        "metadata",
        "opengl",
        "preprocessor",
    
        "quantized",
        "searchable",
    
        "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",
        "posix",
    
    Campbell Barton's avatar
    Campbell Barton committed
        "sdl",
    
    Campbell Barton's avatar
    Campbell Barton committed
        "xinerama",
    
    
        # general computer graphics terms
    
        "barycentric",
        "bezier",
        "bicubic",
    
        "centroid",
        "colinear",
    
        "deinterlace",
        "emissive",
    
        "fresnel",
        "kerning",
    
        "lacunarity",
        "musgrave",
    
        "ngon", "ngons",
    
        "nurbs",
        "quaternions",
        "radiosity",
        "reflectance",
        "shader",
        "shaders",
        "specular",
    
    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",
    
        "obdata",
    
        # should have apostrophe but ignore for now
        # unless we want to get really picky!
        "indices",
        "vertices",
    }
    
    # incorrect spelling but ignore anyway
    dict_ignore = {
        "tri",
        "quad",
        "eg",
        "ok",
        "ui",
        "uv",
        "arg", "args",
        "vec",
        "loc",
        "dof",
        "bool",
        "dupli",
        "readonly",
        "filepath",
        "filepaths",
        "filename", "filenames",
        "submodule", "submodules",
        "dirpath",
        "x-axis",
        "y-axis",
        "z-axis",
        "a-z",
        "id-block",
        "node-trees",
        "pylint",
    
        # acronyms
        "cpu",
        "gpu",
        "nan",
        "utf",
        "rgb",
        "gzip",
        "ppc",
        "gpl",
        "rna",
        "nla",
        "api",
        "rhs",
        "lhs",
        "ik",
        "smpte",
        "svn",
        "hg",
        "gl",
    
        # extensions
        "xpm",
        "xml",
        "py",
        "rst",
    
        # tags
        "fixme",
        "todo",
    
        # sphinx/rst
        "rtype",
    
        # slang
        "hrmf",
        "automagically",
    
        # names
        "jahka",
        "campbell",
        "mikkelsen", "morten",
    }