Skip to content

Instantly share code, notes, and snippets.

@estan
Created September 30, 2017 09:22
Show Gist options
  • Save estan/245ba4b334a511d94f0651f2ec394eb1 to your computer and use it in GitHub Desktop.
Save estan/245ba4b334a511d94f0651f2ec394eb1 to your computer and use it in GitHub Desktop.
note for GitLab commit comments API

Code format violations were found. Corrections shown below.

Please fix these with clang-format -i src/main.cpp src/libs/pluginsystem/tests/PluginLoaderMock.h src/model/Expiration.h

--- src/main.cpp        2017-09-29 17:30:13.268120302 +0200
+++ -   2017-09-30 11:20:33.636533822 +0200
@@ -24,7 +24,7 @@
 
 static QtMessageHandler defaultMessageHandler = qInstallMessageHandler(nullptr);
 
-   const char foo = "\nfoo";
+const char foo = "\nfoo";
 static void messageHandler(QtMsgType type, const QMessageLogContext &context, const QString &message)
 {
     if (message.startsWith("QXcbConnection")) {
--- src/libs/pluginsystem/tests/PluginLoaderMock.h      2017-09-28 21:55:57.736075405 +0200
+++ -   2017-09-30 11:20:33.917346033 +0200
@@ -14,7 +14,7 @@
 {
 public:
     MOCK_CONST_METHOD0(errorString, QString());
-    MOCK_METHOD0(instance, QObject*());
+    MOCK_METHOD0(instance, QObject *());
     MOCK_CONST_METHOD0(fileName, QString());
     MOCK_METHOD1(setFileName, void(const QString &));
     MOCK_CONST_METHOD0(metaData, QJsonObject());
--- src/model/Expiration.h      2017-06-27 10:19:26.907133876 +0200
+++ -   2017-09-30 11:20:33.957060238 +0200
@@ -4,6 +4,7 @@
 
 #include <QDateTime>
 
-struct Expiration {
+struct Expiration
+{
     static INSIGHTMODEL_EXPORT QDateTime DateTime;
 };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment