aureliancnx / bubulle-norminette Goto Github PK
View Code? Open in Web Editor NEWNorminette EPITECH 2025.
License: MIT License
Norminette EPITECH 2025.
License: MIT License
The line #endif /* !HEADER_H_ */ at the end of each .h file is always detected as a "L3 Extra spaces end of line" error
However this line is necessary :/
Bubulle doesn't let you have more than one -e
, only the last will be taken in account
Traceback (most recent call last):
File "/usr/local/lib/bubulle/bubulle-py/run_check.py", line 115, in run
ast = parse_file(tmp, use_cpp=True, cpp_args=c_utils.includes)
File "/home/maxim/.local/lib/python3.9/site-packages/pycparser/__init__.py", line 90, in parse_file
return parser.parse(text, filename)
File "/home/maxim/.local/lib/python3.9/site-packages/pycparser/c_parser.py", line 149, in parse
return self.cparser.parse(
File "/home/maxim/.local/lib/python3.9/site-packages/pycparser/ply/yacc.py", line 331, in parse
return self.parseopt_notrack(input, lexer, debug, tracking, tokenfunc)
File "/home/maxim/.local/lib/python3.9/site-packages/pycparser/ply/yacc.py", line 1199, in parseopt_notrack
tok = call_errorfunc(self.errorfunc, errtoken, self)
File "/home/maxim/.local/lib/python3.9/site-packages/pycparser/ply/yacc.py", line 193, in call_errorfunc
r = errorfunc(token)
File "/home/maxim/.local/lib/python3.9/site-packages/pycparser/c_parser.py", line 1863, in p_error
self._parse_error('At end of input', self.clex.filename)
File "/home/maxim/.local/lib/python3.9/site-packages/pycparser/plyparser.py", line 67, in _parse_error
raise ParseError("%s: %s" % (coord, msg))
pycparser.plyparser.ParseError: ./check_raw.c.tmp: At end of input
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/bubulle/bubulle-py/report_generator.py", line 122, in run_checks
runcheck.run()
File "/usr/local/lib/bubulle/bubulle-py/run_check.py", line 121, in run
BuErrors.print_error(self.full_path, self.file_name, int(line[1]) + header_lines,
ValueError: invalid literal for int() with base 10: ' At end of input'
invalid literal for int() with base 10: ' At end of input'
j'ai une belle erreur quand j'enleve le flag -ic
Hi, I didn't found any CONTRIBUTING.md
files in your repository.
This is very unfortunate as I was planning to contribute to the project.
Are you accepting pull request? In which conditions?
I'd also like to know if you are open for code-refactoring pr?
Have a nice day
When i write bubulle in my term, i get this error, and when i check the code in utils library, there is no reference of version_utils and open_config_file.
Traceback (most recent call last):
File "/usr/local/lib/bubulle/bubulle-py/bubulle.py", line 28, in
from args_handler import handle_args, parse_args, set_time_start
File "/usr/local/lib/bubulle/bubulle-py/args_handler.py", line 28, in
from utils import version_utils
ImportError: cannot import name 'version_utils' from 'utils'
Error : ImportError: cannot import name 'version_utils' from 'utils' (/home/axel_kde/.local/lib/python3.10/site-packages/utils.py)
The global variables are not detected, whereas they are detected by the Epitech norme.
Salut,
Je suis un étudiant de Epitech et j'aimerai prendre contacte avoir toi en rapport avec ce projet, tu peux m'écrire à l'adresse mail : [email protected].
J'aurais une idée de projets à te proposer. Je pense qu'elle peut te plaire.
Bonne journée
When a header is not closed properly, for example with "**/" instead of "*/", this isn't detected, whereas the Epitech norminette detects this wrong usage.
Traceback (most recent call last):
File "/usr/local/lib/bubulle/bubulle-py/bubulle.py", line 28, in
from args_handler import handle_args, parse_args, set_time_start
File "/usr/local/lib/bubulle/bubulle-py/args_handler.py", line 28, in
from utils import version_utils
ImportError: cannot import name 'version_utils' from 'utils' (/root/.local/lib/python3.9/site-packages/utils/init.py)
Expected Output is outdated:
Diff
-------------------------------------------------------------------------------
Bubulle Code Norme Report v1.31
Path: test/c_tests/
-------------------------------------------------------------------------------
File Error Line Severity Details
-------------------------------------------------------------------------------
- test.gcno O1 MAJOR Useless file for compilation
my_putstr.c G1 24 MAJOR EPITECH header misplaced/missing
my_putstr.c A3 36 INFO Missing line break end of file
- my_putstr.c G5 28 MINOR Missing static keyword in func declaration
- test_valist.c G1 1 MAJOR EPITECH header misplaced/missing
- test_valist.c A3 7 INFO Missing line break end of file
- test_valist.c F5 4 MAJOR Missing void parameter in func 'main'
- test_valist.c G5 4 MINOR Missing static keyword in func declaration
+ test.h.gch O1 MAJOR Useless file for compilation
test.h.gch O1 MAJOR Useless file for compilation
my_test.c H3 30 MINOR Macros shouldn't be used for constants
my_test.c H1 30 MINOR #define shouldn't be in source file
my_test.c V3 36 MINOR Misplaced pointer: 'char*'
my_test.c F3 37 MAJOR Line too long (102 > 80 chars)
my_test.c L3 41 MINOR Missing spaces in operator '='
my_test.c L3 49 INFO Extra spaces end of line
my_test.c L1 74 MINOR Multiple assignements on same line
my_test.c L3 120 MINOR Missing spaces in operator '=='
my_test.c L3 128 MINOR Missing space after keyword 'return('
my_test.c G1 24 MAJOR EPITECH header misplaced/missing
my_test.c L4 49 MINOR Misplaced curly brackets
my_test.c L2 124 MINOR Wrong indentation level
my_test.c L6 52 MINOR Extra lines
my_test.c L6 53 MINOR Extra lines
my_test.c L6 76 MINOR Extra lines
my_test.c L6 77 MINOR Extra lines
my_test.c L6 78 MINOR Extra lines
my_test.c L6 79 MINOR Extra lines
my_test.c L6 80 MINOR Extra lines
my_test.c L6 81 MINOR Extra lines
my_test.c L6 82 MINOR Extra lines
my_test.c L6 83 MINOR Extra lines
my_test.c L6 84 MINOR Extra lines
my_test.c L6 85 MINOR Extra lines
my_test.c L6 86 MINOR Extra lines
my_test.c L6 87 MINOR Extra lines
my_test.c L6 88 MINOR Extra lines
my_test.c L6 89 MINOR Extra lines
my_test.c L6 90 MINOR Extra lines
my_test.c L6 91 MINOR Extra lines
my_test.c L6 92 MINOR Extra lines
my_test.c L6 93 MINOR Extra lines
my_test.c L6 94 MINOR Extra lines
my_test.c L6 95 MINOR Extra lines
my_test.c L6 96 MINOR Extra lines
my_test.c L6 97 MINOR Extra lines
my_test.c L6 147 MINOR Extra lines
my_test.c L6 148 MINOR Extra lines
my_test.c F2 142 MAJOR Func 'FonCtionPasEnSnake_CaSE' not in snake_case
my_test.c L4 131 MINOR Misplaced curly brackets
my_test.c O3 131 MAJOR Too many functions (8 > 5)
my_test.c O3 135 MAJOR Too many functions (8 > 5)
my_test.c O3 142 MAJOR Too many functions (8 > 5)
my_test.c C1 65 MINOR Too many conditional branches
my_test.c C1 67 MINOR Too many conditional branches
my_test.c L4 44 MINOR Misplaced brackets of 'for' keyword
- my_test.c G5 34 MINOR Missing static keyword in func declaration
my_test.c -42? 50 MAJOR Forbidden function 'printf'?
- my_test.c G5 101 MINOR Missing static keyword in func declaration
- my_test.c G5 106 MINOR Missing static keyword in func declaration
my_test.c T010 108 INFO Unclear variable name: 'o'
my_test.c F5 112 MAJOR Func 'test' has too many args
- my_test.c G5 112 MINOR Missing static keyword in func declaration
my_test.c F5 117 MAJOR Missing void parameter in func 'fonctionsansargsetsansvoid'
my_test.c L2 125 MINOR Indentation must be 4 spaces but it's 8
- my_test.c G5 117 MINOR Missing static keyword in func declaration
my_test.c V1 126 MAJOR Variable 'VARIABLE_pas_En_Snake_Case' not in snake_case format.
- my_test.c G5 131 MINOR Missing static keyword in func declaration
my_test.c F5 135 MAJOR Missing void parameter in func 'variable_degueu'
- my_test.c G5 135 MINOR Missing static keyword in func declaration
my_test.c T010 137 INFO Unclear variable name: 'o'
my_test.c T010 138 INFO Unclear variable name: 'l'
- my_test.c G5 142 MINOR Missing static keyword in func declaration
test.h G1 1 MAJOR EPITECH header misplaced/missing
test.h A3 1 INFO Missing line break end of file
+ test_valist.c G1 1 MAJOR EPITECH header misplaced/missing
+ test_valist.c A3 7 INFO Missing line break end of file
+ test_valist.c F5 4 MAJOR Missing void parameter in func 'main'
+ test.gcno O1 MAJOR Useless file for compilation
- test.h.gch O1 MAJOR Useless file for compilation
test_valist.c G1 1 MAJOR EPITECH header misplaced/missing
test_valist.c A3 7 INFO Missing line break end of file
test_valist.c F5 4 MAJOR Missing void parameter in func 'main'
test.gcno O1 MAJOR Useless file for compilation
frofro.c V3 29 MINOR Misplaced pointer: 'char*'
frofro.c G1 24 MAJOR EPITECH header misplaced/missing
frofro.c A3 31 INFO Missing line break end of file
frofro.c F5 27 MAJOR Missing void parameter in func 'main'
- frofro.c G5 27 MINOR Missing static keyword in func declaration
-------------------------------------------------------------------------------
- TOTAL Major: 19 Minor: 52 Info: 8 Note: -109
+ TOTAL Major: 19 Minor: 41 Info: 8 Note: -98
-------------------------------------------------------------------------------
Add H1 check:
TODO 👍
Hello, I've got this error when I'm launching the simple command :
Traceback (most recent call last):
File "/usr/local/lib/bubulle/bubulle-py/bubulle.py", line 28, in <module>
from args_handler import handle_args, parse_args, set_time_start
File "/usr/local/lib/bubulle/bubulle-py/args_handler.py", line 28, in <module>
from utils import version_utils
File "/usr/local/lib/bubulle/bubulle-py/utils/version_utils.py", line 32, in <module>
import file_utils
ModuleNotFoundError: No module named 'file_utils'
I tried to reinstall it but no effect (or success)...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.