Showing 229 of 518 total issues
Constructor has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
createdAt: LocalDateTime,
name: String,
tagline: Option[String],
joinDate: Option[LocalDateTime],
roles: List[Role]
Constructor has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
apiKey: String,
apiUri: Uri,
breakerMaxFailures: Int,
breakerResetDur: FiniteDuration,
breakerTimeoutDur: FiniteDuration,
Method addStat
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
createEntryFunc: (InetString, String, Option[DbRef[User]]) => M,
entryCompanion: ModelCompanion.Aux[M, T],
describe: String,
addStatNow: F[Unit],
result: F[Result]
Constructor has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
val value: Int,
val title: String,
val fn: ProjectTableMain => ColumnOrdered[_],
val fragment: Fragment,
val apiName: String
Method getProjectList
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
categories: Option[String],
sort: Option[Int],
q: Option[String],
limit: Option[Long],
offset: Option[Long]
Method log
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
request: AuthRequest[_],
action: LoggedAction[Ctx],
actionContextId: DbRef[Ctx],
newState: String,
oldState: String
Constructor has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
apiKey: String,
channel: OptionT[IO, Model[Channel]],
recommended: Boolean,
createForumPost: Boolean,
changelog: Option[String]
Constructor has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
p: ProjectData,
v: Model[Version],
c: Model[Channel],
approvedBy: Option[String], // Reviewer if present
dependencies: Seq[(Dependency, Option[Model[Project]])]
Constructor has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
env: Environment,
conf: Configuration,
sourceMapper: OptionalSourceMapper,
router: Provider[Router],
val messagesApi: MessagesApi
Constructor has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
canPostAsOwnerOrga: Boolean = false,
uProjectFlags: Boolean = false,
starred: Boolean = false,
watching: Boolean = false,
permissions: Permission = Permission.None
Method listProjects
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
categories: Option[String],
sort: Option[Int],
q: Option[String],
limit: Option[Long],
offset: Option[Long]
Constructor has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
val value: Int,
val name: String,
val emptyMessage: String,
val title: String,
val filter: NotificationTable => Rep[Boolean]
Method getVersionList
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
pluginId: String,
channels: Option[String],
limit: Option[Int],
offset: Option[Int],
onlyPublic: Boolean
Constructor has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
name: String,
pluginId: String,
category: Category,
description: Option[String],
ownerId: Option[DbRef[User]],
Method writeVersion
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
v: Model[Version],
p: Project,
c: Channel,
author: Option[String],
tags: Seq[Model[VersionTag]]
Constructor has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
api: OreRestfulApiV1,
status: StatusZ,
forms: OreForms,
factory: ProjectFactory,
files: ProjectFiles
Function patch_addPadding
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
Open
diff_match_patch.prototype.patch_addPadding = function(patches) {
var paddingLength = this.Patch_Margin;
var nullPadding = '';
for (var x = 1; x <= paddingLength; x++) {
nullPadding += String.fromCharCode(x);
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Avoid too many return
statements within this function. Open
Open
return this.diff_lineMode_(text1, text2, deadline);
Avoid too many return
statements within this function. Open
Open
return 2;
Avoid too many return
statements within this function. Open
Open
return 0;