# joyent/node

### Showing 9 of 2,859 total issues

#### Consider simplifying this complex logical expression. Open

``````  if (code >= 0x1100 && (
code <= 0x115f ||  // Hangul Jamo
0x2329 === code || // LEFT-POINTING ANGLE BRACKET
0x232a === code || // RIGHT-POINTING ANGLE BRACKET
// CJK Radicals Supplement .. Enclosed CJK Letters and Months``````

#### Consider simplifying this complex logical expression. Open

``````      if (byte == 0x8b or           # mov
byte == 0x89 or           # mov reg-reg
(byte & 0xf0) == 0x50 or  # push/pop
(sixty_four and (byte & 0xf0) == 0x40) or  # rex prefix
byte == 0xc3 or           # return``````
Found in deps/v8/tools/grokdump.py - About 3 hrs to fix

#### Consider simplifying this complex logical expression. Open

``````      if (is_last_code_in_line and
self._StatementCouldEndInContext() and
not is_multiline_string and
not is_end_of_block and
not is_continued_identifier and``````

#### Consider simplifying this complex logical expression. Open

``````      if ext in ('cc', 'cpp', 'cxx'):
command = 'cxx'
self.uses_cpp = True
elif ext == 'c' or (ext == 'S' and self.flavor != 'win'):
command = 'cc'``````
Found in tools/gyp/pylib/gyp/generator/ninja.py - About 2 hrs to fix

#### Consider simplifying this complex logical expression. Open

``````  if (keys.length <= 3
&& data.name
&& (keys.length === 1
|| keys.length === 3 && data.email && data.url
|| keys.length === 2 && (data.email || data.url))) {``````
Found in deps/npm/lib/view.js - About 1 hr to fix

#### Consider simplifying this complex logical expression. Open

``````          if (function.has_return and function.doc and
not is_immediately_called and
not function.doc.HasFlag('return') and
not function.doc.InheritsDocumentation() and
not function.doc.HasFlag('constructor')):``````
Found in tools/closure_linter/closure_linter/javascriptlintrules.py - About 1 hr to fix

#### Consider simplifying this complex logical expression. Open

``````    if token.type != TokenType.SEMICOLON:
next_code = tokenutil.SearchExcept(token, TokenType.NON_CODE_TYPES)
# A statement like if (x) does not need a semicolon after it
is_implied_block = self._context == EcmaContext.IMPLIED_BLOCK
is_last_code_in_line = token.IsCode() and (``````

#### Consider simplifying this complex logical expression. Open

``````    if isinstance(other, PBXNativeTarget) and \
'productType' in self._properties and \
self._properties['productType'] != static_library_type and \
'productType' in other._properties and \
(other._properties['productType'] == static_library_type or \``````
Found in tools/gyp/pylib/gyp/xcodeproj_file.py - About 1 hr to fix

#### Consider simplifying this complex logical expression. Open

``````  if (cb) {
this._reqCallbacks.splice(index, 1);
handled = true;

var err = res.success === false && (res.message || true) ||``````
Found in lib/_debugger.js - About 1 hr to fix