Skip to content

Commit dd91aeb

Browse files
authored
Library & CI maintenance (#1394)
1 parent 397b70f commit dd91aeb

File tree

180 files changed

+206
-185
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

180 files changed

+206
-185
lines changed

.ci/arduino.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!groovy
22
def buildArduino(config, String buildFlags, String sketch, String key) {
3-
def root = '/opt/arduino-1.8.9/'
3+
def root = '/opt/arduino-1.8.12/'
44
def build_path = 'build'
55
def build_path_cmd = ' -build-path '+build_path+' '
66
if (config.nightly_arduino_ide)

.ci/static_analysis.groovy

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,11 @@ def cppCheck(config) {
2323
violationConfigs: [[pattern: '.*/cppcheck-avr\\.xml$', parser: 'CPPCHECK', reporter: 'Cppcheck'],]
2424
]
2525
])
26+
// 20200226TK: Adjusted for CppCheck 1.90
2627
ret = sh(returnStatus: true,
2728
script: "#!/bin/bash +e\n"+
2829
"cd ${config.repository_root}\n"+
29-
"grep -q \"<td>0</td><td>total</td>\" cppcheck-avr_cppcheck_reports/index.html || exit_code=\$?\n"+
30+
"grep -q \"0 total\" cppcheck-avr_cppcheck_reports/index.html || exit_code=\$?\n"+
3031
"exit \$((exit_code == 0 ? 0 : 1))")
3132
if (ret == 1) {
3233
config.pr.setBuildStatus(config, 'ERROR', 'Toll gate (Code analysis - Cppcheck)', 'Issues found', '${BUILD_URL}CppCheck_20AVR/index.html')

MyASM.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* network topology allowing messages to be routed to nodes.
77
*
88
* Created by Henrik Ekblad <[email protected]>
9-
* Copyright (C) 2013-2019 Sensnology AB
9+
* Copyright (C) 2013-2020 Sensnology AB
1010
* Full contributor list: https://github.com/mysensors/MySensors/graphs/contributors
1111
*
1212
* Documentation: http://www.mysensors.org

MyConfig.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* network topology allowing messages to be routed to nodes.
77
*
88
* Created by Henrik Ekblad <[email protected]>
9-
* Copyright (C) 2013-2019 Sensnology AB
9+
* Copyright (C) 2013-2020 Sensnology AB
1010
* Full contributor list: https://github.com/mysensors/MySensors/graphs/contributors
1111
*
1212
* Documentation: http://www.mysensors.org

MySensors.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* network topology allowing messages to be routed to nodes.
77
*
88
* Created by Henrik Ekblad <[email protected]>
9-
* Copyright (C) 2013-2019 Sensnology AB
9+
* Copyright (C) 2013-2020 Sensnology AB
1010
* Full contributor list: https://github.com/mysensors/MySensors/graphs/contributors
1111
*
1212
* Documentation: http://www.mysensors.org

core/MyCapabilities.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* network topology allowing messages to be routed to nodes.
77
*
88
* Created by Henrik Ekblad <[email protected]>
9-
* Copyright (C) 2013-2019 Sensnology AB
9+
* Copyright (C) 2013-2020 Sensnology AB
1010
* Full contributor list: https://github.com/mysensors/MySensors/graphs/contributors
1111
*
1212
* Documentation: http://www.mysensors.org

core/MyEepromAddresses.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* network topology allowing messages to be routed to nodes.
77
*
88
* Created by Henrik Ekblad <[email protected]>
9-
* Copyright (C) 2013-2019 Sensnology AB
9+
* Copyright (C) 2013-2020 Sensnology AB
1010
* Full contributor list: https://github.com/mysensors/MySensors/graphs/contributors
1111
*
1212
* Documentation: http://www.mysensors.org

core/MyGatewayTransportEthernet.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ bool gatewayTransportInit(void)
245245
return true;
246246
}
247247

248+
// cppcheck-suppress constParameter
248249
bool gatewayTransportSend(MyMessage &message)
249250
{
250251
int nbytes = 0;

core/MyGatewayTransportMQTTClient.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* network topology allowing messages to be routed to nodes.
77
*
88
* Created by Henrik Ekblad <[email protected]>
9-
* Copyright (C) 2013-2019 Sensnology AB
9+
* Copyright (C) 2013-2020 Sensnology AB
1010
* Full contributor list: https://github.com/mysensors/MySensors/graphs/contributors
1111
*
1212
* Documentation: http://www.mysensors.org
@@ -110,6 +110,7 @@ static bool _MQTT_connecting = true;
110110
static bool _MQTT_available = false;
111111
static MyMessage _MQTT_msg;
112112

113+
// cppcheck-suppress constParameter
113114
bool gatewayTransportSend(MyMessage &message)
114115
{
115116
if (!_MQTT_client.connected()) {

core/MyGatewayTransportSerial.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* network topology allowing messages to be routed to nodes.
77
*
88
* Created by Henrik Ekblad <[email protected]>
9-
* Copyright (C) 2013-2019 Sensnology AB
9+
* Copyright (C) 2013-2020 Sensnology AB
1010
* Full contributor list: https://github.com/mysensors/MySensors/graphs/contributors
1111
*
1212
* Documentation: http://www.mysensors.org
@@ -30,6 +30,7 @@ char _serialInputString[MY_GATEWAY_MAX_RECEIVE_LENGTH]; // A buffer for incom
3030
uint8_t _serialInputPos;
3131
MyMessage _serialMsg;
3232

33+
// cppcheck-suppress constParameter
3334
bool gatewayTransportSend(MyMessage &message)
3435
{
3536
setIndication(INDICATION_GW_TX);

0 commit comments

Comments
 (0)