mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-09-01 10:52:33 +01:00
Initial commit of open source Workload Automation.
This commit is contained in:
12
extras/README
Normal file
12
extras/README
Normal file
@@ -0,0 +1,12 @@
|
||||
This directory is intended for miscellaneous extra stuff that may be useful while developing
|
||||
Workload Automation. It should *NOT* contain anything necessary for *using* workload automation.
|
||||
Whenever you add something to this directory, please also add a short description of what it is in
|
||||
this file.
|
||||
|
||||
pylintrc
|
||||
pylint configuration file set up for WA development (see comment at the top of the file
|
||||
for how to use).
|
||||
|
||||
walog.vim
|
||||
Vim syntax file for WA logs; adds highlighting similar to what comes out
|
||||
in the console. See comment in the file for how to enable it.
|
70
extras/pylintrc
Normal file
70
extras/pylintrc
Normal file
@@ -0,0 +1,70 @@
|
||||
#
|
||||
# pylint configuration for Workload Automation.
|
||||
#
|
||||
# To install pylint run
|
||||
#
|
||||
# sudo apt-get install pylint
|
||||
#
|
||||
# copy this file to ~/.pylintrc in order for pylint to pick it up.
|
||||
# (Or alternatively, specify it with --rcfile option on invocation.)
|
||||
#
|
||||
# Note: If you're adding something to disable setting, please also add the
|
||||
# explanation of the code in the comment above it. Messages should only
|
||||
# be added here we really don't *ever* care about them. For ignoring
|
||||
# messages on specific lines or in specific files, add the appropriate
|
||||
# pylint disable clause in the source.
|
||||
#
|
||||
[MASTER]
|
||||
|
||||
profile=no
|
||||
|
||||
ignore=external
|
||||
|
||||
[MESSAGES CONTROL]
|
||||
# Disable the following messags:
|
||||
# C0301: Line too long (%s/%s)
|
||||
# C0103: Invalid name "%s" (should match %s)
|
||||
# C0111: Missing docstring
|
||||
# W0142 - Used * or ** magic
|
||||
# R0903: Too few public methods
|
||||
# R0904: Too many public methods
|
||||
# R0922: Abstract class is only referenced 1 times
|
||||
# W0511: TODO Note: this is disabled for a cleaner output, but should be reenabled
|
||||
# occasionally (through command line argument) to make sure all
|
||||
# TODO's are addressed, e.g. before a release.
|
||||
# W0141: Used builtin function (map|filter)
|
||||
# I0011: Locally disabling %s
|
||||
# R0921: %s: Abstract class not referenced
|
||||
# Note: this needs to be in the rc file due to a known bug in pylint:
|
||||
# http://www.logilab.org/ticket/111138
|
||||
# W1401: nomalous-backslash-in-string, due to:
|
||||
# https://bitbucket.org/logilab/pylint/issue/272/anomalous-backslash-in-string-for-raw
|
||||
# C0330: bad continuation, due to:
|
||||
# https://bitbucket.org/logilab/pylint/issue/232/wrong-hanging-indentation-false-positive
|
||||
disable=C0301,C0103,C0111,W0142,R0903,R0904,R0922,W0511,W0141,I0011,R0921,W1401,C0330
|
||||
|
||||
[FORMAT]
|
||||
max-module-lines=4000
|
||||
|
||||
[DESIGN]
|
||||
|
||||
# We have DeviceConfig classes that are basically just repositories of confuration
|
||||
# settings.
|
||||
max-args=30
|
||||
max-attributes=30
|
||||
|
||||
|
||||
[SIMILARITIES]
|
||||
|
||||
min-similarity-lines=10
|
||||
|
||||
[REPORTS]
|
||||
|
||||
output-format=colorized
|
||||
|
||||
reports=no
|
||||
|
||||
[IMPORTS]
|
||||
|
||||
# Parts of string are not deprecated. Throws too many false positives.
|
||||
deprecated-modules=
|
21
extras/walog.vim
Normal file
21
extras/walog.vim
Normal file
@@ -0,0 +1,21 @@
|
||||
" Copy this into ~/.vim/syntax/ and add the following to your ~/.vimrc:
|
||||
" au BufRead,BufNewFile run.log set filetype=walog
|
||||
"
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
syn region debugPreamble start='\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d,\d\d\d DEBUG' end=':'
|
||||
syn region infoPreamble start='\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d,\d\d\d INFO' end=':'
|
||||
syn region warningPreamble start='\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d,\d\d\d WARNING' end=':'
|
||||
syn region errorPreamble start='\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d,\d\d\d ERROR' end=':'
|
||||
syn region critPreamble start='\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d,\d\d\d CRITICAL' end=':'
|
||||
|
||||
hi debugPreamble guifg=Blue ctermfg=DarkBlue
|
||||
hi infoPreamble guifg=Green ctermfg=DarkGreen
|
||||
hi warningPreamble guifg=Yellow ctermfg=178
|
||||
hi errorPreamble guifg=Red ctermfg=DarkRed
|
||||
hi critPreamble guifg=Red ctermfg=DarkRed cterm=bold gui=bold
|
||||
|
||||
let b:current_syntax='walog'
|
||||
|
Reference in New Issue
Block a user