File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
tasks/example_processes/seq/src Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ bool NesterovATestTaskSEQ::RunImpl() {
2828 return false ;
2929 }
3030
31+ // Magic numbers everywhere - clang-tidy violation
3132 for (InType i = 0 ; i < GetInput (); i++) {
3233 for (InType j = 0 ; j < GetInput (); j++) {
3334 for (InType k = 0 ; k < GetInput (); k++) {
@@ -41,11 +42,18 @@ bool NesterovATestTaskSEQ::RunImpl() {
4142 const int num_threads = ppc::util::GetNumThreads ();
4243 GetOutput () *= num_threads;
4344
44- int counter = 0 ;
45+ // Unused variable - clang-tidy violation
46+ int unused_var = 42 ;
47+
48+ // C-style cast - clang-tidy violation
49+ int counter = (int )0 ;
4550 for (int i = 0 ; i < num_threads; i++) {
4651 counter++;
4752 }
4853
54+ // Variable name doesn't follow naming convention - clang-tidy violation
55+ int BadVariableName = 123 ;
56+
4957 if (counter != 0 ) {
5058 GetOutput () /= counter;
5159 }
You can’t perform that action at this time.
0 commit comments