summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2020-03-13 12:20:02 +0100
committerClaudiu Popa <pcmanticore@gmail.com>2020-03-13 12:20:02 +0100
commitbd85d3b70d76b94bfb5b104bfe46daab965c51af (patch)
tree37f008fe79b68544594de7ca4ec63b01bec46b3c /examples
parent9d25804b91205f9815ea5b3dd767eb4a0329cbce (diff)
downloadpylint-git-bd85d3b70d76b94bfb5b104bfe46daab965c51af.tar.gz
Refresh the docs a bit in preparation for the release
Diffstat (limited to 'examples')
-rw-r--r--examples/pylintrc140
1 files changed, 76 insertions, 64 deletions
diff --git a/examples/pylintrc b/examples/pylintrc
index 7196a8203..f6aad454e 100644
--- a/examples/pylintrc
+++ b/examples/pylintrc
@@ -5,6 +5,9 @@
# run arbitrary code.
extension-pkg-whitelist=
+# Specify a score threshold to be exceeded before program exits with error.
+fail-under=10
+
# Add files or directories to the blacklist. They should be base names, not
# paths.
ignore=CVS
@@ -33,9 +36,6 @@ load-plugins=
# Pickle collected data for later comparisons.
persistent=yes
-# Specify a configuration file.
-#rcfile=
-
# When enabled, pylint would attempt to guess common misconfiguration and emit
# user-friendly hints instead of false-positive error messages.
suggestion-mode=yes
@@ -184,6 +184,48 @@ max-nested-blocks=5
never-returning-functions=sys.exit
+[LOGGING]
+
+# Format style used to check logging format string. `old` means using %
+# formatting, `new` is for `{}` formatting,and `fstr` is for f-strings.
+logging-format-style=old
+
+# Logging modules to check that the string format arguments are in logging
+# function parameter format.
+logging-modules=logging
+
+
+[SPELLING]
+
+# Limits count of emitted suggestions for spelling mistakes.
+max-spelling-suggestions=4
+
+# Spelling dictionary name. Available dictionaries: none. To make it work,
+# install the python-enchant package.
+spelling-dict=
+
+# List of comma separated words that should not be checked.
+spelling-ignore-words=
+
+# A path to a file that contains the private dictionary; one word per line.
+spelling-private-dict-file=
+
+# Tells whether to store unknown words to the private dictionary (see the
+# --spelling-private-dict-file option) instead of raising a message.
+spelling-store-unknown-words=no
+
+
+[MISCELLANEOUS]
+
+# List of note tags to take in consideration, separated by a comma.
+notes=FIXME,
+ XXX,
+ TODO
+
+# Regular expression of note tags to take in consideration.
+#notes-rgx=
+
+
[TYPECHECK]
# List of decorators that produce context managers, such as
@@ -239,32 +281,6 @@ missing-member-max-choices=1
signature-mutators=
-[LOGGING]
-
-# Format style used to check logging format string. `old` means using %
-# formatting, `new` is for `{}` formatting, and `fstr` is for f-strings.
-logging-format-style=old
-
-# Logging modules to check that the string format arguments are in logging
-# function parameter format.
-logging-modules=logging
-
-
-[SIMILARITIES]
-
-# Ignore comments when computing similarities.
-ignore-comments=yes
-
-# Ignore docstrings when computing similarities.
-ignore-docstrings=yes
-
-# Ignore imports when computing similarities.
-ignore-imports=no
-
-# Minimum lines number of a similarity.
-min-similarity-lines=4
-
-
[VARIABLES]
# List of additional names supposed to be defined in builtins. Remember that
@@ -295,26 +311,6 @@ init-import=no
redefining-builtins-modules=six.moves,past.builtins,future.builtins,builtins,io
-[SPELLING]
-
-# Limits count of emitted suggestions for spelling mistakes.
-max-spelling-suggestions=4
-
-# Spelling dictionary name. Available dictionaries: none. To make it work,
-# install the python-enchant package.
-spelling-dict=
-
-# List of comma separated words that should not be checked.
-spelling-ignore-words=
-
-# A path to a file that contains the private dictionary; one word per line.
-spelling-private-dict-file=
-
-# Tells whether to store unknown words to the private dictionary (see the
-# --spelling-private-dict-file option) instead of raising a message.
-spelling-store-unknown-words=no
-
-
[FORMAT]
# Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
@@ -352,6 +348,21 @@ single-line-class-stmt=no
single-line-if-stmt=no
+[SIMILARITIES]
+
+# Ignore comments when computing similarities.
+ignore-comments=yes
+
+# Ignore docstrings when computing similarities.
+ignore-docstrings=yes
+
+# Ignore imports when computing similarities.
+ignore-imports=no
+
+# Minimum lines number of a similarity.
+min-similarity-lines=4
+
+
[BASIC]
# Naming style matching correct argument names.
@@ -376,6 +387,10 @@ bad-names=foo,
tutu,
tata
+# Bad variable names regexes, separated by a comma. If names match any regex,
+# they will always be refused
+bad-names-rgxs=
+
# Naming style matching correct class attribute names.
class-attribute-naming-style=any
@@ -416,6 +431,10 @@ good-names=i,
Run,
_
+# Good variable names regexes, separated by a comma. If names match any regex,
+# they will always be accepted
+good-names-rgxs=
+
# Include a hint for the correct naming format with invalid-name.
include-naming-hint=no
@@ -461,30 +480,23 @@ variable-naming-style=snake_case
#variable-rgx=
-[MISCELLANEOUS]
-
-# List of note tags to take in consideration, separated by a comma.
-notes=FIXME,
- XXX,
- TODO
-
-# Regular expressio of note tags to take in consideration.
-notes-rgx=a^
-
[STRING]
-# This flag controls whether the implicit-str-concat-in-sequence should
-# generate a warning on implicit string concatenation in sequences defined over
-# several lines.
-check-str-concat-over-line-jumps=no
-
# This flag controls whether inconsistent-quotes generates a warning when the
# character used as a quote delimiter is used inconsistently within a module.
check-quote-consistency=no
+# This flag controls whether the implicit-str-concat should generate a warning
+# on implicit string concatenation in sequences defined over several lines.
+check-str-concat-over-line-jumps=no
+
[IMPORTS]
+# List of modules that can be imported at any level, not just the top level
+# one.
+allow-any-import-level=
+
# Allow wildcard imports from modules that define __all__.
allow-wildcard-with-all=no