mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-15 18:31:05 +00:00
CI: chore (#3957)
* CI: chore * CI: lsof and jq are installed * CI: generate docs with deps * CI: remove check width, fmt checks it * CI: simplify rules * CI: make CI image variable * CI: more chore * rm check_line_width.sh * CI: fix spellcheck; fix check-transaction * CI: return installing jq * lint: remove dupes
This commit is contained in:
@@ -1,51 +0,0 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# check if line width of rust source files is not beyond x characters
|
||||
#
|
||||
set -e
|
||||
|
||||
BASE_BRANCH="origin/master"
|
||||
LINE_WIDTH="121"
|
||||
GOOD_LINE_WIDTH="101"
|
||||
|
||||
git diff --name-only "${BASE_BRANCH}...${CI_COMMIT_SHA}" -- \*.rs :^bridges | ( while read -r file
|
||||
do
|
||||
if [ ! -f "${file}" ];
|
||||
then
|
||||
echo "Skipping removed file."
|
||||
elif git diff "${BASE_BRANCH}...${CI_COMMIT_SHA}" -- "${file}" | grep -q "^+.\{${LINE_WIDTH}\}"
|
||||
then
|
||||
if [ -z "${FAIL}" ]
|
||||
then
|
||||
echo "| warning!"
|
||||
echo "| Lines should not be longer than 120 characters."
|
||||
echo "| "
|
||||
echo "| see more https://wiki.parity.io/Substrate-Style-Guide"
|
||||
echo "|"
|
||||
FAIL="true"
|
||||
fi
|
||||
echo "| file: ${file}"
|
||||
git diff "${BASE_BRANCH}...${CI_COMMIT_SHA}" -- "${file}" \
|
||||
| grep -n "^+.\{${LINE_WIDTH}\}"
|
||||
echo "|"
|
||||
else
|
||||
if git diff "${BASE_BRANCH}...${CI_COMMIT_SHA}" -- "${file}" | grep -q "^+.\{${GOOD_LINE_WIDTH}\}"
|
||||
then
|
||||
if [ -z "${FAIL}" ]
|
||||
then
|
||||
echo "| warning!"
|
||||
echo "| Lines should be longer than 100 characters only in exceptional circumstances!"
|
||||
echo "| "
|
||||
echo "| see more https://wiki.parity.io/Substrate-Style-Guide"
|
||||
echo "|"
|
||||
fi
|
||||
echo "| file: ${file}"
|
||||
git diff "${BASE_BRANCH}...${CI_COMMIT_SHA}" -- "${file}" \
|
||||
| grep -n "^+.\{${LINE_WIDTH}\}"
|
||||
echo "|"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
test -z "${FAIL}"
|
||||
)
|
||||
@@ -1,4 +1,5 @@
|
||||
150
|
||||
A&V
|
||||
accessor/MS
|
||||
AccountId
|
||||
activations
|
||||
@@ -15,7 +16,6 @@ assignee/SM
|
||||
async
|
||||
asynchrony
|
||||
autogenerated
|
||||
A&V
|
||||
backable
|
||||
backend/MS
|
||||
benchmark/DSMG
|
||||
@@ -47,6 +47,7 @@ customizable/B
|
||||
DDoS
|
||||
Debian/M
|
||||
decodable/MS
|
||||
decrement
|
||||
deduplicated
|
||||
deinitializing
|
||||
dequeue/SD
|
||||
@@ -56,6 +57,7 @@ DHT
|
||||
disincentivize/D
|
||||
dispatchable/SM
|
||||
DLEQ
|
||||
DM
|
||||
DMP/SM
|
||||
DMQ
|
||||
DoS
|
||||
@@ -78,6 +80,7 @@ fedora/M
|
||||
finalize/B
|
||||
FRAME/MS
|
||||
FSMs
|
||||
functor
|
||||
fungibility
|
||||
gameable
|
||||
getter/MS
|
||||
@@ -156,21 +159,24 @@ mutex
|
||||
natively
|
||||
NFA
|
||||
NFT/SM
|
||||
no_std
|
||||
nonces
|
||||
NPoS
|
||||
no_std
|
||||
NTB
|
||||
offboard/DMSG
|
||||
onboard/DMSG
|
||||
oneshot/MS
|
||||
onwards
|
||||
OOM/S
|
||||
OPENISH
|
||||
others'
|
||||
ourself
|
||||
overseer/MS
|
||||
ownerless
|
||||
p2p
|
||||
parablock/MS
|
||||
parachain/MS
|
||||
ParaId
|
||||
parameterization
|
||||
parameterize/D
|
||||
parathread/MS
|
||||
@@ -178,6 +184,7 @@ passthrough
|
||||
PDK
|
||||
peerset/MS
|
||||
permission/D
|
||||
pessimization
|
||||
phragmen
|
||||
picosecond/SM
|
||||
PoA/MS
|
||||
@@ -201,7 +208,6 @@ proxy/G
|
||||
proxying
|
||||
PRs
|
||||
PVF/S
|
||||
p2p
|
||||
README/MS
|
||||
redhat/M
|
||||
register/CD
|
||||
@@ -217,10 +223,9 @@ rpc
|
||||
RPC/MS
|
||||
runtime/MS
|
||||
rustc/MS
|
||||
sybil
|
||||
SAFT
|
||||
scalable
|
||||
scalability
|
||||
scalable
|
||||
Schnorr
|
||||
schnorrkel
|
||||
SDF
|
||||
@@ -230,8 +235,8 @@ shareable
|
||||
Simnet/MS
|
||||
spawn/SR
|
||||
spawner
|
||||
SS58
|
||||
sr25519
|
||||
SS58
|
||||
SSL
|
||||
startup/MS
|
||||
stateful
|
||||
@@ -243,18 +248,19 @@ subsystem/MS
|
||||
subsystems'
|
||||
supermajority
|
||||
SURI
|
||||
sybil
|
||||
systemwide
|
||||
taskmanager/MS
|
||||
TCP
|
||||
teleport/D
|
||||
teleport/RG
|
||||
teleports
|
||||
teleportation/SM
|
||||
teleporter/SM
|
||||
teleporters
|
||||
teleports
|
||||
testnet/MS
|
||||
timestamp/MS
|
||||
timeframe
|
||||
timestamp/MS
|
||||
tradeoff
|
||||
transitionary
|
||||
trie/MS
|
||||
@@ -309,7 +315,4 @@ XCM/S
|
||||
XCMP/M
|
||||
yeet
|
||||
yml
|
||||
decrement
|
||||
DM
|
||||
ParaId
|
||||
functor
|
||||
zsh
|
||||
|
||||
Reference in New Issue
Block a user