Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
routersploit
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
czos-dpend
routersploit
Commits
ed0973b0
Commit
ed0973b0
authored
Sep 05, 2016
by
fwkz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More flexible run_linter.sh script
parent
e6a91149
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
run_linter.sh
run_linter.sh
+7
-2
No files found.
run_linter.sh
View file @
ed0973b0
...
@@ -4,11 +4,16 @@ GREEN='\033[0;32m'
...
@@ -4,11 +4,16 @@ GREEN='\033[0;32m'
YELLOW
=
'\033[0;33m'
YELLOW
=
'\033[0;33m'
RED
=
'\033[0;31m'
RED
=
'\033[0;31m'
NC
=
'\033[0m'
# No Color
NC
=
'\033[0m'
# No Color
MODULES_PATH
=
./routersploit/modules
MODULES_PATH
=
./routersploit
FAILURE
=
0
FAILURE
=
0
if
[
"
$1
"
]
;
then
MODULES_PATH
=
"
$MODULES_PATH
/
$1
"
fi
FLAKE8_IGNORED_RULES
=
'E501,W503'
FLAKE8_IGNORED_RULES
=
'E501,W503'
FLAKE8
=
$(
flake8
--ignore
=
$FLAKE8_IGNORED_RULES
$MODULES_PATH
)
FLAKE8
=
$(
flake8
--
exclude
=
__init__.py
--
ignore
=
$FLAKE8_IGNORED_RULES
$MODULES_PATH
)
if
[
"
$FLAKE8
"
]
;
then
if
[
"
$FLAKE8
"
]
;
then
echo
-e
"
\n
${
RED
}
- flake8 violations:
${
NC
}
"
echo
-e
"
\n
${
RED
}
- flake8 violations:
${
NC
}
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment