ID 5787762
Пользователь Доманский Игорь Сергеевич
Время 16.11.2021 22:35 (27 д. 20:36) 22:38>>
Обработка 22:35 ... 22:35 (3,47 сек.)
Файл SmartPointer.hpp (CLang++ 5.0.0 + Address Sanitizer)
Турнир 2 курс. Программирование на C++. Турнир 2, осень 2021
Задача C: Smart Pointer
Набор тестов
Ограничения Время: 25с Память: 512Мб
Состояние  [?]
LI Ошибка проверки исходного кода
код | результаты
SmartPointer.hpp:8:  Do not indent within a namespace  [runtime/indentation_namespace] [4]
SmartPointer.hpp:19:  Do not indent within a namespace  [runtime/indentation_namespace] [4]
SmartPointer.hpp:22:  public: should be indented +1 space inside class SmartPointer  [whitespace/indent] [3]
SmartPointer.hpp:22:  "public:" should be preceded by a blank line  [whitespace/blank_line] [3]
SmartPointer.hpp:25:  Constructors callable with one argument should be marked explicit.  [runtime/explicit] [5]
SmartPointer.hpp:27:  Else clause should never be on same line as else (use 2 lines)  [whitespace/newline] [4]
SmartPointer.hpp:85:  Else clause should never be on same line as else (use 2 lines)  [whitespace/newline] [4]
SmartPointer.hpp:97:  Else clause should never be on same line as else (use 2 lines)  [whitespace/newline] [4]
SmartPointer.hpp:101:  Else clause should never be on same line as else (use 2 lines)  [whitespace/newline] [4]
SmartPointer.hpp:122:  Lines should be <= 80 characters long  [whitespace/line_length] [2]
SmartPointer.hpp:123:  Lines should be <= 80 characters long  [whitespace/line_length] [2]
SmartPointer.hpp:123:  Using C-style cast.  Use reinterpret_cast<void*>(...) instead  [readability/casting] [4]
SmartPointer.hpp:128:  Lines should be <= 80 characters long  [whitespace/line_length] [2]
SmartPointer.hpp:129:  Lines should be <= 80 characters long  [whitespace/line_length] [2]
SmartPointer.hpp:129:  Using C-style cast.  Use reinterpret_cast<void*>(...) instead  [readability/casting] [4]
SmartPointer.hpp:137:  You don't need a ; after a }  [readability/braces] [4]
SmartPointer.hpp:136:  Else clause should never be on same line as else (use 2 lines)  [whitespace/newline] [4]
SmartPointer.hpp:139:  private: should be indented +1 space inside class SmartPointer  [whitespace/indent] [3]
SmartPointer.hpp:141:  public: should be indented +1 space inside class Core  [whitespace/indent] [3]
SmartPointer.hpp:145:  Single-parameter constructors should be marked explicit.  [runtime/explicit] [5]
SmartPointer.hpp:158:  Closing brace should be aligned with beginning of class SmartPointer  [whitespace/indent] [3]
SmartPointer.hpp:160:  Namespace should be terminated with "// namespace smart_pointer"  [readability/namespace] [5]
SmartPointer.hpp:160:  Could not find a newline character at the end of the file.  [whitespace/ending_newline] [5]
Done processing SmartPointer.hpp
Total errors found: 23
0.068s 0.016s 9