Skip to content

Commit 9ff962a

Browse files
committed
Squashed 'lint-configs/' content from commit 418d2eb
git-subtree-dir: lint-configs git-subtree-split: 418d2eb45bca36aa81294653bd19305eb685613b
1 parent 7c31ede commit 9ff962a

File tree

3 files changed

+64
-0
lines changed

3 files changed

+64
-0
lines changed

README.md

+29
Original file line numberDiff line numberDiff line change
@@ -1 +1,30 @@
1+
# StackStorm Lint Configs
12

3+
This repository contains lint configs for different programming languages and
4+
tools (flake8, pylint, etc.) used by different StackStorm repositories.
5+
6+
Configs are grouped in sub-directories by programming language.
7+
8+
## Usage
9+
10+
To use those configs, add this repository as a git subtree to the repository
11+
where you want to utilize those configs. After that is done, update make
12+
targets (or similar) to correctly pass path to the configs to the tools
13+
in question.
14+
15+
```bash
16+
git subtree add --prefix lint-configs https://github.com/StackStorm/lint-configs.git master --squash
17+
```
18+
19+
To use it (example with pylint)
20+
21+
```bash
22+
pylint -E --rcfile=./lint-configs/python/.pylintrc
23+
...
24+
```
25+
26+
And once you want to pull changes / updates from the lint-configs repository:
27+
28+
```bash
29+
git subtree pull --prefix lint-configs https://github.com/StackStorm/lint-configs.git master --squash
30+
```

python/.flake8

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[flake8]
2+
max-line-length = 100
3+
ignore = E128,E402,E722,W504
4+
exclude=*.egg/*,build,dist

python/.pylintrc

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
[MESSAGES CONTROL]
2+
# C0111 Missing docstring
3+
# I0011 Warning locally suppressed using disable-msg
4+
# I0012 Warning locally suppressed using disable-msg
5+
# W0704 Except doesn't do anything Used when an except clause does nothing but "pass" and there is no "else" clause
6+
# W0142 Used * or * magic* Used when a function or method is called using *args or **kwargs to dispatch arguments.
7+
# W0212 Access to a protected member %s of a client class
8+
# W0232 Class has no __init__ method Used when a class has no __init__ method, neither its parent classes.
9+
# W0613 Unused argument %r Used when a function or method argument is not used.
10+
# W0702 No exception's type specified Used when an except clause doesn't specify exceptions type to catch.
11+
# R0201 Method could be a function
12+
# W0614 Unused import XYZ from wildcard import
13+
# R0914 Too many local variables
14+
# R0912 Too many branches
15+
# R0915 Too many statements
16+
# R0913 Too many arguments
17+
# R0904 Too many public methods
18+
# E0211: Method has no argument
19+
# E1128: Assigning to function call which only returns None Used when an assignment is done on a function call but the inferred function returns nothing but None.
20+
# E1129: Context manager ‘%s’ doesn’t implement __enter__ and __exit__. Used when an instance in a with statement doesn’t implement the context manager protocol(__enter__/__exit__).
21+
disable=C0103,C0111,I0011,I0012,W0704,W0142,W0212,W0232,W0613,W0702,R0201,W0614,R0914,R0912,R0915,R0913,R0904,R0801,not-context-manager,assignment-from-none
22+
23+
[TYPECHECK]
24+
# Note: This modules are manipulated during the runtime so we can't detect all the properties during
25+
# static analysis
26+
ignored-modules=distutils,eventlet.green.subprocess,six,six.moves
27+
28+
[FORMAT]
29+
max-line-length=100
30+
max-module-lines=1000
31+
indent-string=' '

0 commit comments

Comments
 (0)