Detect any non-standard attribute that is not prefixed with data. List every tag without a alt= or data-ng-attr-alt= attribute HTML syntax validator using W3C v.Nu checker, with support for handlebars/jinja2 templates Insert a short license disclaimer as a header comment in source files Replace tabs by whitespaces before committing Forbid files containing tabs to be committed Replace CRLF end-lines by LF ones before committing Forbid files containing CRLF end-lines to be committed Executable shell script omits the filename extension Non-executable shell script filename ends in. Enforce Ruby style guide with rubocop and rubocop-rspec Protect first parent from foxtrot merges Check markdown files and flag style issues Detect if git tree contains modified, staged, or untracked files Use git to check for conflict markers and core.whitespace errors, respecting. Forbid binary files from being committed Use fasterer to suggest speed improvements in Ruby Detect if an email address needs to be added to mailmap Check for vulnerable gem versions and insecure sources Run PHPStan against all staged PHP files. Run php coding standards fixer against all staged PHP files. Run php codesniffer against all staged PHP files. Preference order is vendor/bin, phpunit and phpunit.phar. Checks which PHPUnit executable is available first and then runs it. Exits when it hits the first errored file Check PHP Syntax on ALL PHP staged files with user friendly messages and colors Lint cheetah code using flake8 and some other checks. This hook reorders imports in cheetah files. apply a consistent format to `setup.cfg` files Automatically remove unnecessary `# noqa` comments This hook reorders imports in python files. Automatically upgrade syntax for newer versions. Automatically add trailing commas to calls and literals. Forbid files which have a UTF-8 Unicode replacement character Detect mistake of inline code touching normal text in rst Detect mistake of rst directive not ending with double colon or space before the double colon Detect common mistake of using single backticks when writing rst Enforce that python3.6+ type annotations are used instead of type comments A quick check for the deprecated `.warn()` method of python loggers A quick check for the `eval()` built-in function Prevent common mistakes of `assert mck.not_called()`, `assert mck.called_once_with(.)` and `mck.assert_called`. Sample annotations: `# type: ignore`, `# type: ignore` Enforce that `# type: ignore` annotations always occur with specific codes. Enforce that `noqa` annotations always occur with specific codes. sorts simple yaml files which consist only of top-level keys, preserving comments and blocks. verifies that test files are named correctly. forbids any submodules in the repository prevents addition of new git submodules. adds # -*- coding: utf-8 -*- to the top of python files. you must provide list of target files as input in your. sorts the lines in specified files (defaults to alphabetical). ensures that a file is either empty, or ends with one newline. replaces double quoted strings with single quoted strings. detects *your* aws credentials from the aws cli credentials file. detects symlinks which are changed to regular files with a content of a path which that symlink was pointing to. checks for debugger imports and p圓7+ `breakpoint()` calls in python source. checks yaml files for parseable syntax. ensures that links to vcs websites are s. checks toml files for parseable syntax. checks for symlinks which do not point to anything. checks for files that contain merge conflict strings. sets a standard for formatting json files. ensures that (non-binary) files with a shebang are executable. checks json files for parseable syntax. ensures that (non-binary) executables have a shebang. checks a common error of defining a docstring after code. checks for files that would conflict in case-insensitive filesystems. requires literal syntax when initializing empty or zero python builtin types. forbids files which have a utf-8 byte-order marker. simply checks whether the files parse as valid python. prevents giant files from being committed.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |