Showing 1,088 of 2,665 total issues
Method StorCli.collectMegaRaidDrives
has 6 return statements (exceeds 4 allowed). Open
Open
func (s *StorCli) collectMegaRaidDrives(mx map[string]int64, resp *drivesInfoResponse) error {
if resp == nil {
return nil
}
Function ReadLastLine
has 6 return statements (exceeds 4 allowed). Open
Open
func ReadLastLine(filename string, maxLineWidth int64) ([]byte, error) {
if maxLineWidth <= 0 {
maxLineWidth = DefaultMaxLineWidth
}
f, err := os.Open(filename)
Consider simplifying this complex logical expression. Open
Open
if (typeof this.plugins_[len].plugin.ylabel_div_ !== 'undefined'
&& this.plugins_[len].plugin.ylabel_div_ !== null
&& typeof this.plugins_[len].plugin.ylabel_div_.children !== 'undefined'
&& this.plugins_[len].plugin.ylabel_div_.children !== null
&& typeof this.plugins_[len].plugin.ylabel_div_.children[0].children !== 'undefined'
Consider simplifying this complex logical expression. Open
Open
if (typeof this.plugins_[len].plugin.ylabel_div_ !== 'undefined'
&& this.plugins_[len].plugin.ylabel_div_ !== null
&& typeof this.plugins_[len].plugin.ylabel_div_.children !== 'undefined'
&& this.plugins_[len].plugin.ylabel_div_.children !== null
&& typeof this.plugins_[len].plugin.ylabel_div_.children[0].children !== 'undefined'
Consider simplifying this complex logical expression. Open
Open
if (status === true && (after === null || before === null || after <= 0 || before <= 0 || after >= before)) {
status = false;
after = 0;
before = 0;
}
Consider simplifying this complex logical expression. Open
Open
if (typeof tmpSnapshotData.highlight_after_ms !== 'undefined'
&& tmpSnapshotData.highlight_after_ms !== null
&& tmpSnapshotData.highlight_after_ms > 0
&& typeof tmpSnapshotData.highlight_before_ms !== 'undefined'
&& tmpSnapshotData.highlight_before_ms !== null
Consider simplifying this complex logical expression. Open
Open
if ch in '\0 \t\r\n\x85\u2028\u2029' \
or (not self.flow_level and ch == ':' and
self.peek(length+1) in '\0 \t\r\n\x85\u2028\u2029') \
or (self.flow_level and ch in ',:?[]{}'):
break
Consider simplifying this complex logical expression. Open
Open
if isinstance(self.event, DocumentStartEvent):
if (self.event.version or self.event.tags) and self.open_ended:
self.write_indicator('...', True)
self.write_indent()
if self.event.version:
Consider simplifying this complex logical expression. Open
Open
if '0' <= ch <= '9' or 'A' <= ch <= 'Z' or 'a' <= ch <= 'z' \
or ch in '-;/?:@&=+$,_.~*\'()[]' \
or (ch == '!' and handle != '!'):
end += 1
else:
Consider simplifying this complex logical expression. Open
Open
if ch is None or ch in '"\\\x85\u2028\u2029\uFEFF' \
or not ('\x20' <= ch <= '\x7E'
or (self.allow_unicode
and ('\xA0' <= ch <= '\uD7FF'
or '\uE000' <= ch <= '\uFFFD'))):
Consider simplifying this complex logical expression. Open
Open
if self.context_mark is not None \
and (self.problem is None or self.problem_mark is None
or self.context_mark.name != self.problem_mark.name
or self.context_mark.line != self.problem_mark.line
or self.context_mark.column != self.problem_mark.column):
Consider simplifying this complex logical expression. Open
Open
if ((not self.canonical or tag is None) and
((self.style == '' and self.event.implicit[0])
or (self.style != '' and self.event.implicit[1]))):
self.prepared_tag = None
return
Method Consul.collectGauge
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func (c *Consul) collectGauge(mx map[string]int64, mfs prometheus.MetricFamilies, name string, mul float64, aliases ...string) {
Function highlightCallback
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
highlightCallback: function (event, x, points, row, seriesName) {
Function dimensionStatus
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
let dimensionStatus = function (parent, label, name_div, value_div, color) {
Function set
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
set: function (state, after, before, view_after, view_before) {
Function genLabel
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
const genLabel = function (state, parent, dim, name, count) {
Function init
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
init: function (state, after, before, view_after, view_before) {
Function genLabel
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
const genLabel = function (state, parent, dim, name, count) {
Function init
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
init: function (state, after, before, view_after, view_before) {