Add check for unicode replacement characters

This commit is contained in:
Ville Skyttä 2020-02-06 18:43:41 +02:00
parent a18c5af5d4
commit 9e417077fc
5 changed files with 55 additions and 0 deletions

View file

@ -22,6 +22,12 @@
entry: check-byte-order-marker
language: python
types: [text]
- id: check-unicode-replacement-char
name: Check for Unicode replacement character
description: Forbid files which have a UTF-8 Unicode replacement character
entry: check-unicode-replacement-char
language: python
types: [text]
- id: check-builtin-literals
name: Check builtin type constructor use
description: Require literal syntax when initializing empty or zero Python builtin types.