GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||
GeezerVison is showing github.com — Add clang-format checks in Danger by robertodr · Pull Request #3 · PCMSolver/danger-cpp-example Conversation
|
There was an error while loading. Please reload this page.
Code Style CheckCode style violations detected in the following files:
Execute one of the following actions and commit again:
hello_world.cpp--- hello_world.cpp +++ hello_world.cpp @@ -4,13 +4,11 @@ std::vector<int> myVector(); -std::string message() { - return "Hello, Danger world!"; -} +std::string message() { return "Hello, Danger world!"; } int main() { std::cout << message() << std::endl; - std::vector< int > v = myVector(); - return EXIT_SUCCESS; + std::vector<int> v = myVector(); + return EXIT_SUCCESS; } vector.cpp--- vector.cpp +++ vector.cpp @@ -1,13 +1,13 @@ #include <vector> std::vector<int> myVector() { -int arr[] = {16, 2, 77, 29}; -// Create a vector containing integers -std::vector<int> v (arr, arr + sizeof(arr) /sizeof(arr[0]) ); + int arr[] = {16, 2, 77, 29}; + // Create a vector containing integers + std::vector<int> v(arr, arr + sizeof(arr) / sizeof(arr[0])); -// Add two more integers to vector -v.push_back(25); -v.push_back(13); + // Add two more integers to vector + v.push_back(25); + v.push_back(13); -return v; + return v; } Generated by 🚫 Danger |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
fd406ca to
d31022e
Compare
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.