Project ReactNative
We have noticed that our online sonar ( * Community Edition
-
Version 7.9.1 (build 27448)) not updating the unit test coverage but locally configured sonar works well. then we check jenkin build and found about these errors. what can we about these?
15:23:48 ERROR: Parse error at line 66 column 51:
15:23:48
15:23:48 56: } else {
15:23:48 57: this.state.selectedItems.push(index);
15:23:48 58: this.setState({
15:23:48 59: selectedItems: […this.state.selectedItems]
15:23:48 60: });
15:23:48 61: }
15:23:48 62: this.props.onChangeSelection(index);
15:23:48 63: };
15:23:48 64:
15:23:48 65: renderCheckboxButton = (index) => {
15:23:48 66: const isSelected = this.props.data[index]?.isSelected || this.state.selectedItems.includes(index);