Coder Social home page Coder Social logo

checker's Introduction

Checker

This checker is in it's second iteration. If you found any bugs and have features you would like me to add, or any QoL ideas, contact me and I'll try to implement them as soon as I can.

What's different from all the other checkers out there is that it uses a GUI instead of the old-school text based printing of results. It can run any test individually, it shows a diff of all the results and most importantly it will run more tasks at the same time.

For this checker to run at max capacity, we recommend allocating more CPU cores to your virtual machine.

alt-text

How to use the checker

Run the by using either one of these commands. You must be in the same directory as the other checker files, otherwise it won't work. For this checker to work, you will need a terminal of at least 52x24 (width x height).

$ ./check

# or

$ hw_checker

# If you only want to use the text only version, add the following flag to the command

$ ./hw_checker --legacy

Keybinds

To simplify the use of the checker, you can use the following keybinds:

  • enter - when on a test, to run it
  • left-arrow or right-arrow - switch from test window to log window
  • r - runs all the tests from both tasks
  • f - runs only the failed tasks that either have crashed or they got 0 points
  • v - enables or disables valgrind globally for the tests (valgrind is enabled when the Tests window is highlighted in red)
  • c - runs the coding style checker and shows a pop-up showing all the possible problems
  • ctrl+c or q - exit the program

Source code

You can find the source code here and the crates.io page here. If you would like to contribute to the project, or open any issues, you are welcomed to help.

checker's People

Contributors

robertgrancsa avatar rarescon avatar

Watchers

 avatar

checker's Issues

Parentheses around sizeof operand

The style checker currently enforces the use of sizeof(p) as opposed to sizeof p. Is this behavior intended?

As sizeof is a unary operator, the situation is analogous to using -(p) over -p. Enforcing parentheses where they can be avoided may give the impression that sizeof(p) is syntactically similar to the function call foo(p). However, in a function call, parentheses designate the function call operator, as opposed to a paranthesized expression as in the case of sizeof.

To illustrate, consider the expression sizeof(0) ["iocla"].

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.