Git Product home page Git Product logo

bubulle-norminette's People

Contributors

aureliancnx avatar beafowl-pull avatar faurealexis avatar ftorto avatar maximcosta avatar mlbonniec avatar sigmanificient avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

bubulle-norminette's Issues

python error compilation

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

CONTRIBUTING.md is missing...open for contributions?

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

utils module can't find version_utils and open_config_file

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'

ImportError

Error : ImportError: cannot import name 'version_utils' from 'utils' (/home/axel_kde/.local/lib/python3.10/site-packages/utils.py)

Demande de contact

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

run Bubulle error

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)

:test_tube: Outdated Tests

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
  -------------------------------------------------------------------------------

Missing H1 check

Add H1 check:

  • Check if function content is in a header file
  • Check if non-global variable is in a header file
  • Check if a structure is in a source file
  • Check if a DEFINE is in a source file

TODO 👍

Error when launching the bubulle command

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)...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.