add editorconfig

pass on al file to reformat
This commit is contained in:
Antoine 2020-04-27 02:01:38 +02:00
parent 34bc39b252
commit 0d28f4f519
7 changed files with 53 additions and 26 deletions

27
.editorconfig Normal file
View File

@ -0,0 +1,27 @@
# formatting rule for this project
root = true
[*]
indent_size = 4
indent_style = space
end_of_line = lf
insert_final_newline = true
charset = utf-8
trim_trailing_whitespace = true
[*.cpp]
max_line_length = 119
# Ignored paths
[lib/**]
indent_size = unset
indent_style = unset
end_of_line = unset
insert_final_newline = unset
charset = unset
trim_trailing_whitespace = unset
# Makefiles always use tabs for indentation
[Makefile]
indent_style = tab

View File

@ -12,8 +12,8 @@ int main(int argc, char* argv[]) {
// Read the file to encrypt
unsigned char* file;
//******************************************************************* while a rajouté pour les gros fichier
// readFile fait l'aloccation mémoire !!! pensé au free
//******************************************************************* while a rajouté pour les gros fichier
// readFile made memory allocation !!! think to free arg
size_t fileLength = O->readFile(&file);
printf("%d bytes to be encrypted\n", (int)fileLength);
@ -40,7 +40,7 @@ int main(int argc, char* argv[]) {
free(encryptedFile);
free(file);
//******************************************************************
//******************************************************************
delete O;
return 0;