Rajesh Kumar Bhatia

27 papers Journal 19Unranked 8
YearRankTypeTitle / Venue / Authors
2023 J jnl
Int. J. Inf. Retr. Res.
Diksha Malhotra, Rajesh Kumar Bhatia, Manish Kumar
2020 J jnl
Inf. Softw. Technol.
Vinay Arora, Maninder Singh, Rajesh Kumar Bhatia
2018 J jnl
Int. J. Inf. Commun. Technol.
Dhavleesh Rattan, Rajesh Kumar Bhatia, Maninder Singh
2018 J jnl
J. Web Eng.
Manish Kumar, Rajesh Kumar Bhatia
2018 J jnl
J. Supercomput.
Rajkumar Tekchandani, Rajesh Kumar Bhatia, Maninder Singh
2017 J jnl
WIREs Data Mining Knowl. Discov.
Manish Kumar, Rajesh Kumar Bhatia, Dhavleesh Rattan
2017 J jnl
Comput. Electr. Eng.
Rajkumar Tekchandani, Rajesh Kumar Bhatia, Maninder Singh
2017 J jnl
Comput. Lang. Syst. Struct.
Vinay Arora, Rajesh Kumar Bhatia, Maninder Singh
2016 J jnl
Concurr. Comput. Pract. Exp.
Vinay Arora, Rajesh Kumar Bhatia, Maninder Singh
2016 conf
RAIT
Manish Kumar, Rajesh Kumar Bhatia
2016 J jnl
IET Softw.
Sumit Dahiya, Rajesh Kumar Bhatia, Dhavleesh Rattan
2013 J jnl
Inf. Softw. Technol.
Dhavleesh Rattan, Rajesh Kumar Bhatia, Maninder Singh
2012 conf
ICISTM
Sunint Kaur Khalsa, Rajesh Kumar Bhatia, Jitender Kumar Chhabra, Maninder Singh
2010 J jnl
ACM SIGSOFT Softw. Eng. Notes
Rajesh Kumar Bhatia, Mayank Dave, Ramesh Chandra Joshi
2010 J jnl
ACM SIGSOFT Softw. Eng. Notes
Amit Gupta, Rajesh Kumar Bhatia
2009 J jnl
ACM SIGSOFT Softw. Eng. Notes
Avadhesh Kumar, Rajesh Kumar Bhatia, P. S. Grover
2009 J jnl
ACM SIGSOFT Softw. Eng. Notes
Arun Sharma, Pritam S. Grover, Rajesh Kumar Bhatia
2008 conf
ISEC
Rajesh Kumar Bhatia, Mayank Dave, Ramesh C. Joshi
2008 J jnl
Int. J. Softw. Eng. Knowl. Eng.
Arun Sharma, Rajesh Kumar Bhatia, Pritam S. Grover
2008 J jnl
ACM SIGSOFT Softw. Eng. Notes
Arun Sharma, Rajesh Kumar Bhatia, Pritam S. Grover
2008 J jnl
ACM SIGSOFT Softw. Eng. Notes
P. S. Grover, Rajesh Kumar Bhatia, Avadhesh Kumar
2008 conf
Australian Software Engineering Conference
Avadhesh Kumar, Rajesh Kumar Bhatia, P. S. Grover
2007 J jnl
ACM SIGSOFT Softw. Eng. Notes
Pritam S. Grover, Rajesh Kumar Bhatia, Arun Sharma
2006 conf
Software Engineering Research and Practice
Rajesh Kumar Bhatia, Mayank Dave, Ramesh C. Joshi
2005 conf
IICAI
Rajesh Kumar Bhatia, Navneet Kaur
2003 conf
Software Engineering Research and Practice
Mandeep Singh Gill, Rajesh Kumar Bhatia
2003 conf
Software Engineering Research and Practice
Simarjot Singh, Rajesh Kumar Bhatia
lint.sh
← Index lint.sh bash
#!/bin/bash

# Linting script for REDB project
# Usage: ./lint.sh [--fix] [--check-only]

set -e

# Colors for output
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
NC='\033[0m' # No Color

# Default values
FIX=false
CHECK_ONLY=false

# Parse arguments
while [[ $# -gt 0 ]]; do
    case $1 in
        --fix)
            FIX=true
            shift
            ;;
        --check-only)
            CHECK_ONLY=true
            shift
            ;;
        *)
            echo "Unknown option: $1"
            echo "Usage: $0 [--fix] [--check-only]"
            exit 1
            ;;
    esac
done

echo -e "${GREEN}Running linting checks on REDB project...${NC}"

# Check if we're in a virtual environment
if [[ "$VIRTUAL_ENV" == "" ]]; then
    echo -e "${YELLOW}Warning: Not in a virtual environment. Consider activating one.${NC}"
fi

# Function to run a command and check its exit status
run_check() {
    local name="$1"
    local command="$2"
    
    echo -e "\n${YELLOW}Running $name...${NC}"
    if eval "$command"; then
        echo -e "${GREEN}✓ $name passed${NC}"
    else
        echo -e "${RED}✗ $name failed${NC}"
        return 1
    fi
}

# Track overall success
overall_success=true

# 1. isort (import sorting)
if [[ "$FIX" == true ]]; then
    run_check "isort" "isort redb/" || overall_success=false
else
    run_check "isort" "isort --check-only --diff redb/" || overall_success=false
fi

# 2. black (code formatting)
if [[ "$FIX" == true ]]; then
    run_check "black" "black redb/" || overall_success=false
else
    run_check "black" "black --check --diff redb/" || overall_success=false
fi

# 3. flake8 (style and error checking)
run_check "flake8" "flake8 redb/" || overall_success=false

# 4. pylint (comprehensive analysis)
run_check "pylint" "pylint --rcfile=pyproject.toml redb/" || overall_success=false

echo -e "\n${GREEN}Linting completed!${NC}"

if [[ "$overall_success" == true ]]; then
    echo -e "${GREEN}All checks passed! ✨${NC}"
    exit 0
else
    echo -e "${RED}Some checks failed. Please fix the issues above.${NC}"
    exit 1
fi