-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[openwrt] Improved multiple ip address output #59
Improved output of OpenWRT/LEDE UCI configuration when using multiple ip addresses. Cyclomatic complexity has been decreased thanks to the split of many instructions in separate methods. I tried to avoid changing the output of the library when using single ipv4 or ipv6 addresses: this should reduce the possibility of introducing bugs in systems that have been already deployed. Closes #59
- Loading branch information
1 parent
d296c71
commit 179659c
Showing
3 changed files
with
199 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
#!/bin/bash | ||
set -e | ||
complex="./netjsonconfig/backends/openwrt/converters.py" | ||
|
||
flake8 --max-line-length=110 --max-complexity=26 "$complex" || exit 1 | ||
flake8 --max-line-length=110 \ | ||
--max-complexity=12 \ | ||
--exclude=./docs/,./build/,./setup.py,$complex || exit 1 | ||
--exclude=./docs/,./build/,./setup.py || exit 1 |
Oops, something went wrong.