Kapil Anand

15 papers A* 2A 2B 1C 1Misc 2Journal 3Unranked 3
YearRankTypeTitle / Venue / Authors
2017 B conf
DIMVA
Danny Kim, Amir Majlesi-Kupaei, Julien Roy, Kapil Anand, Khaled ElWazeer, Daniel Buettner, Rajeev Barua
2017 conf
FEAST@CCS
Amir Majlesi-Kupaei, Danny Kim, Kapil Anand, Khaled ElWazeer, Rajeev Barua
2016 J jnl
ACM Trans. Softw. Eng. Methodol.
Kapil Anand, Khaled ElWazeer, Aparna Kotha, Matthew Smithson, Rajeev Barua, Angelos D. Keromytis
2015 J jnl
IEEE Trans. Parallel Distributed Syst.
Aparna Kotha, Kapil Anand, Timothy Creech, Khaled ElWazeer, Matthew Smithson, Greeshma Yellareddy, Rajeev Barua
2015 J jnl
ACM Trans. Embed. Comput. Syst.
Kapil Anand, Rajeev Barua
2014 A conf
ESOP
Aparna Kotha, Kapil Anand, Timothy Creech, Khaled ElWazeer, Matthew Smithson, Rajeev Barua
2013
Kapil Anand
2013 A conf
EuroSys
Kapil Anand, Matthew Smithson, Khaled ElWazeer, Aparna Kotha, Jim Gruen, Nathan Giles, Rajeev Barua
2013 conf
ICSM
Kapil Anand, Khaled ElWazeer, Aparna Kotha, Matthew Smithson, Rajeev Barua, Angelos D. Keromytis
2013 A* conf
PLDI
Khaled ElWazeer, Kapil Anand, Aparna Kotha, Matthew Smithson, Rajeev Barua
2013 conf
WCRE
Matthew Smithson, Khaled ElWazeer, Kapil Anand, Aparna Kotha, Rajeev Barua
2011 Misc conf
SEC
Pádraig O'Sullivan, Kapil Anand, Aparna Kotha, Matthew Smithson, Rajeev Barua, Angelos D. Keromytis
2010 A* conf
MICRO
Aparna Kotha, Kapil Anand, Matthew Smithson, Greeshma Yellareddy, Rajeev Barua
2009 Misc conf
CASES
Kapil Anand, Rajeev Barua
2008 C conf
IEEE International Workshop on Rapid System Prototyping
William Plishker, Nimish Sane, Mary Kiemb, Kapil Anand, Shuvra S. Bhattacharyya
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