Showing 1,982 of 1,982 total issues
Function _methodHead
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function _methodHead(node: Object) {
const kind = node.kind;
const key = node.key;
if (kind === "get" || kind === "set") {
Function getTokenType
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getTokenType(match) {
const [offset, text] = match.slice(-2);
const token = matchToToken(match);
if (token.type === "name") {
Function TupleExpression
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function TupleExpression(node: Object) {
const elems = node.elements;
const len = elems.length;
let startToken;
Function VariableDeclaration
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function VariableDeclaration(node: Object, parent: Object) {
if (node.declare) {
// TS
this.word("declare");
this.space();
Function resolveRootMode
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function* resolveRootMode(
rootDir: string,
rootMode: RootMode,
): Handler<string> {
switch (rootMode) {
Function isExecutionUncertain
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function isExecutionUncertain(type, key) {
switch (type) {
// a && FOO
// a || FOO
case "LogicalExpression":
Function default
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function () {
return {
name: "regenerator-usage",
pre() {
this.usesRegenerator = false;
Function rename
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
rename(block?) {
const { binding, oldName, newName } = this;
const { scope, path } = binding;
const parentDeclar = path.find(
Function getThisBinding
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getThisBinding(thisEnvFn, inConstructor) {
return getBinding(thisEnvFn, "this", thisBinding => {
if (!inConstructor || !hasSuperClass(thisEnvFn)) return t.thisExpression();
const supers = new WeakSet();
Function _verifyNodeList
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function _verifyNodeList(nodes) {
if (!nodes) {
return [];
}
Function getAttachmentPath
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getAttachmentPath() {
let path = this._getAttachmentPath();
if (!path) return;
let targetScope = path.scope;
Function checkConstants
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
checkConstants() {
const scope = this.scope;
const state = this.state;
for (const name of Object.keys(scope.bindings)) {
Consider simplifying this complex logical expression. Open
Open
} else if (
stmt.isTSTypeAliasDeclaration() ||
stmt.isTSDeclareFunction() ||
stmt.isTSInterfaceDeclaration() ||
stmt.isClassDeclaration({ declare: true }) ||
Consider simplifying this complex logical expression. Open
Open
if (
(node.type === "ImportDeclaration" &&
(node.importKind === "type" || node.importKind === "typeof")) ||
(node.type === "ExportNamedDeclaration" &&
node.exportKind === "type") ||
Consider simplifying this complex logical expression. Open
Open
if (
(hasDefault && parseAfterDefault && !hasStar && !hasSpecifiers) ||
(hasNamespace && parseAfterNamespace && !hasSpecifiers)
) {
throw this.unexpected(null, tt.braceL);
Consider simplifying this complex logical expression. Open
Open
if (
(result.type === "ExportNamedDeclaration" &&
(!result.exportKind || result.exportKind === "value")) ||
(result.type === "ExportAllDeclaration" &&
(!result.exportKind || result.exportKind === "value")) ||
Consider simplifying this complex logical expression. Open
Open
if (
nodeType === "Terminatorless" ||
"BreakStatement" === nodeType ||
"ContinueStatement" === nodeType ||
"ReturnStatement" === nodeType ||
Consider simplifying this complex logical expression. Open
Open
if (
nodeType === "ModuleSpecifier" ||
"ExportSpecifier" === nodeType ||
"ImportDefaultSpecifier" === nodeType ||
"ImportNamespaceSpecifier" === nodeType ||
Consider simplifying this complex logical expression. Open
Open
if (
nodeType === "FunctionParent" ||
"FunctionDeclaration" === nodeType ||
"FunctionExpression" === nodeType ||
"ObjectMethod" === nodeType ||
Consider simplifying this complex logical expression. Open
Open
if (
nodeType === "Function" ||
"FunctionDeclaration" === nodeType ||
"FunctionExpression" === nodeType ||
"ObjectMethod" === nodeType ||