Some suggestions about devcontainer.json, clang-tidy, cmake-format, and ubuntu jimmy.
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
Línea de trabajo
Comienza inspeccionando devcontainer.json, Dockerfile y .clang-tidy; después, comprueba cómo gestiona actualmente el proyecto el formateo de CMake y la compatibilidad con Ubuntu. Confirma qué sugerencias se aceptan antes de hacer cambios; se considera terminado cuando las actualizaciones acordadas del contenedor de desarrollo, el linting, el formateo, los nombres y Ubuntu están representadas de forma coherente.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Hello @lefticus. I admire your work. I have some suggestions and we can discuss about them and then I can create some PRs if they turn out to be good :
In devcontainer.json, add these settings for better automatically checking for Clang errors. VSCode shows nicely the problems and underlines the problematics line.
"C_Cpp.codeAnalysis.runAutomatically": true, // For automatically run code analysis on save
"C_Cpp.codeAnalysis.clangTidy.enabled": true, // Clang tidy checks are included when it is run code analysis
"C_Cpp.codeAnalysis.exclude": { // Exclude checking in out directory (using presets). Maybe need some other folders too.
"${workspaceFolder}/out/**": true
And add extension:
"cheshirekow.cmake-format" // For automatically run formating cmake files on save
This extension must have installed cmake-format. Because of this, we need to add in Dockerfile:
RUN python3 -m pip install cmake_format
In .clang-tidy I always like to add CheckOptions for example:
CheckOptions:
- { key: readability-identifier-naming.NamespaceCase, value: lower_case }
- { key: readability-identifier-naming.ClassCase, value: CamelCase }
- { key: readability-identifier-naming.StructCase, value: CamelCase }
- { key: readability-identifier-naming.TemplateParameterCase, value: CamelCase }
- { key: readability-identifier-naming.FunctionCase, value: CamelCase }
- { key: readability-identifier-naming.VariableCase, value: lower_case }
- { key: readability-identifier-naming.PrivateMemberSuffix, value: _ }
- { key: readability-identifier-naming.ProtectedMemberSuffix, value: _ }
- { key: readability-identifier-naming.MacroDefinitionCase, value: UPPER_CASE }
- { key: readability-identifier-naming.EnumConstantCase, value: CamelCase }
- { key: readability-identifier-naming.EnumConstantPrefix, value: k }
- { key: readability-identifier-naming.ConstexprVariableCase, value: CamelCase }
- { key: readability-identifier-naming.ConstexprVariablePrefix, value: k }
- { key: readability-identifier-naming.GlobalConstantCase, value: CamelCase }
- { key: readability-identifier-naming.GlobalConstantPrefix, value: k }
- { key: readability-identifier-naming.MemberConstantCase, value: CamelCase }
- { key: readability-identifier-naming.MemberConstantPrefix, value: k }
- { key: readability-identifier-naming.StaticConstantCase, value: CamelCase }
- { key: readability-identifier-naming.StaticConstantPrefix, value: k }
This force developers to use the same naming conventions. What do you think?
One more suggestion is to support the new ubuntu Jimmy.
- Lenguaje dominante
- CMake
- Estrellas
- 1.8k
- Forks
- 205
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de cpp-best-practices/cmake_template
-
Put back `-Wsign-conversion` for gcc in CompilerWarnings.cmakePosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 Menos de una hora Aptitud para principiantes 85/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
-
Enable sanitizers globallyAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
cpp-best-practices/cmake_template#140 · 2 comentarios ·
-
From-scratch clone/build fails on `src/ftxui_sample/CMakeFiles/intro.dir/main.cpp.obj`Posiblemente ocupada @leftibot la tomó hace 195 días. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 48/100
cpp-best-practices/cmake_template#139 · 2 comentarios ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
cpp-best-practices/cmake_template#91 · 2 comentarios ·
Todos los issues de cpp-best-practices/cmake_template
Issues similares
-
Font inlining cache is not created or reusedPosiblemente ocupada @nagahara-naoki la tomó hoy. Abiertoarea: @angular/build
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
angular/angular-cli#34719 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
osaurus-ai/osaurus#3422 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
foundation/foundation-emails#2127 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
mw00/project-maya#983 · 1 comentario ·
Los mantenedores suelen responder en 2 días