Searchsamsa /
Lumo-Discord-Annoucument-Bot-Source-Advanced
This repository offers an advanced Discord announcement bot named Lumo.
Loading repository data…
MaceTheWindu66 / repository
ANNOUNCEMENT: This repository is deprecated. All new code was moved to the KoalbyMQP Repo for continued use and updates at WPI. Custom Linter to ensure safe development in a robotics / embedded systems setting. Supports C, C++, and Python code. Follows MISRA C/C++and PEP8 guidelines, as well as The Power of 10.
https://github.com/KoalbyMQP/Tools
RoLint is designed to be a robust and strict linter for robotics / embedded systems. It was originally developed for the Humanoid Robot Project at Worcester Polytechnic Institute. This Linter is designed with MISRA-C, MISRA-C++, PEP8, and The Power Of 10 Standards in mind. Below is how to install and use RoLint, as well as an overview of the rules for the linter.
Bug Fixes:
Raised minimum python version to 3.12 Fixed rolint: ignore bug where it would ignore the comment instead of the intended line itself. Fixed versioning issue in pyproject.toml, leading to some issues with versioning and causing traceback issues.
Structs no longer have false positive issue with implicit casting.
Features:
Flags: Ignores / Overrides are now flagged and appear in stdout.
JSON: Updated JSON output to support flags.
Stdout: Cleaned up STDOUT, made it easy to discern between flags and violations.
Using Rich formatting for clean output to console rolint: extern flag to tell rolint an extern var doesn't need initialization here
RoLint is registtered on PyPi, and you can install it with
pip install rolint
This will install the RoLint linter. Additionally, you can install by cloning the github for the project at https://github.com/MaceTheWindu66/RoLint
rolint check [OPTIONS] [PATH] <-- Runs the linter on file[s] in specified path.
rolint set-config [OPTIONS] <-- Changes configuration as specified in options.
rolint show-config <-- Shows current configuration.
For C/C++, RoLint is to be ran on an uncompiled C/C++ file. RoLint is not built to run off of C/C++ binaries, however their text files. RoLint should be used in conjunction with a compiler for most effective results. The rules for common compilers and this linter have overlap, but cover slightly different areas.
When linting a specific file using the check command, options must be defined. These options define the language and output.
Options:
--lang c | cpp | python <-- Specifies language
--output | json <-- Changes output format
--output-path -p | [PATH] <-- Overrides output path if output specified.Examples:
rolint check --output json -p results.json main.c
RoLint comes with an override feature built in for all 3 languages.
" rolint: ignore" <-- Ignores the next line
" rolint: ignore-block" <-- Ignores a code block
For example, RoLint will ignore a for loop, and all of the code inside of the for loop, if rolint: ignore-block is commented immediately before the loop.
"// rolint: ignore"
"// rolint: ignore-block"
"# rolint: ignore"
"# rolint: ignore-block"
There are a lot of rules spanning over the 3 separate languages used for the original project that ROLINT was created for. These rules are primarily based on MIRSA C/C++, The Power of 10, and PEP8 Standards.
gets, printf, fprintf, sprintf, vsprintf, strcpy, strncpy, strcat, strncat, scanf, sscanf, fscanf, strtok, atoi, atol, atof, atoll, setjmp, longjmp, malloc, calloc, free, realloc
int x; <-- NOT ALLOWED
int x = 5; <-- ALLOWED
EXAMPLE: printf(x++) <-- NOT ALLOWED
int x = 3.14 <-- NOT ALLOWED
Casting floats to ints, ints to shorts, etc.
malloc, calloc, realloc, free, printf, sprintf, scanf, gets, fgets, rand, srand, time, clock, gettimeofday, system, fork, exec, exit, va_start, va_arg, va_end, cin, cout, cerr, delete, new
x : int = 5
def func() -> int:
def func(x:int) -> int:
eval, exec, pickles
Selected from shared topics, language and repository description—not editorial ratings.
Searchsamsa /
This repository offers an advanced Discord announcement bot named Lumo.
ybeth-gonzaga /
This repository contains code and documentation for an analysis project on Taylor Swift's Spotify Charts behavior on the artist's news and announcements.
ABUCKY0 /
This repository contains the script that posts to HelioHost's Discord Server, Twitter, Instagram, and Facebook when an announcement post is made on their forums.
DipakHalkude /
This repository is announcements of all railway trains passing through Mumbai railway station in .mp3 form. I collect the real time data of railways and convert it into xlsx file. In main.py I made .mp3 files to announce the train coming and going event. I used pyaudio, pydub, pandas, gtts in this.
zshah-HBKU /
Welcome to the Principles of Computing course by Dr. Zubair Shah! This GitHub repository serves as a hub for all course materials related to the Python programming language, CPEG110. Stay tuned for announcements and updates regarding this face-to-face course on HBKU Canvas.
garg-aryan /
This repository contains the code for railway announcement coded in python