Skip to content

Instantly share code, notes, and snippets.

@luisfelipeas5
luisfelipeas5 / SonarQubeREADME.md
Last active February 6, 2024 12:27
Um guia para configurar o básico do SonarQube + Jacoco

Adicione o plugin do SonarQube

Primeiro, adicione ao build.gradle de nível de projeto:

buildscript {
   repositories {
       //...
       maven {
           url "https://plugins.gradle.org/m2/"
       }
@luisfelipeas5
luisfelipeas5 / get_it_null_impl.dart
Last active September 27, 2023 18:08
GetIt - get null implementation
//Possible solution for https://stackoverflow.com/questions/77187279/is-it-possible-to-provide-a-null-implementation-when-registering-something-on-fl/77187634#77187634
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:get_it/get_it.dart';
class OurOwnInterface {}
void main() {
if (kDebugMode) {
@luisfelipeas5
luisfelipeas5 / gist:cc1d11d6c80a93b53b640207371fa84c
Created November 6, 2023 12:46
Kustomer OutOfMemoryError stacktrace
Fatal Exception: java.lang.OutOfMemoryError: pthread_create (1040KB stack) failed: Try again
at java.lang.Thread.nativeCreate(Thread.java)
at java.lang.Thread.start(Thread.java:733)
at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:975)
at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1393)
at okhttp3.RealCall$AsyncCall.executeOn(RealCall.java:154)
at okhttp3.Dispatcher.promoteAndExecute(Dispatcher.java:204)
at okhttp3.Dispatcher.enqueue(Dispatcher.java:143)
at okhttp3.RealCall.enqueue(RealCall.java:93)
at retrofit2.OkHttpCall.enqueue(OkHttpCall.java:147)