Xiaofeng Ding

12 papers C 2Journal 9Unranked 1
YearRankTypeTitle / Venue / Authors
2025 J jnl
CoRR
Falguni Roy, Yiduo Shen, Na Zhao, Xiaofeng Ding, Md. Omar Faruk
2025 J jnl
Inf. Process. Manag.
Falguni Roy, Na Zhao, Xiaofeng Ding
2023 J jnl
J. Intell. Inf. Syst.
Hashan Ratnayake, Lin Chen, Xiaofeng Ding
2022 J jnl
IEEE Trans. Comput. Aided Des. Integr. Circuits Syst.
Xiaofeng Ding, Chengliang Wang, Heping Liu, Zhihai Zhang, Xianzhang Chen, Yujuan Tan, Duo Liu, Ao Ren
2021 J jnl
Comput. Graph.
You Wu, Guiqing Li, Chuhua Xian, Xiaofeng Ding, Yunhui Xiong
2017 C conf
IECON
Yuan Cao, Zongxia Jiao, Tianyi Wang, Lu Zhang, Liang Yan, Xiaofeng Ding
2017 C conf
IECON
Feida Chen, Xu Jiang, Xiaofeng Ding, Chuanchuan Lin
2015 J jnl
Graphs Comb.
Jiaao Li, Xinmin Hou, Zhen-Mu Hong, Xiaofeng Ding
2014 J jnl
J. Res. Pract. Inf. Technol.
Ailing Qian, Xiaofeng Ding, Yansheng Lu
2011 J jnl
Expert Syst. Appl.
Wei Song, Lim Cheon Choi, Soon Cheol Park, Xiaofeng Ding
2011 J jnl
J. Circuits Syst. Comput.
Xiaofeng Ding, Chris Mi
2009 conf
CIT (1)
Aling Qian, Yansheng Lu, Xiaofeng Ding, Lei Zou, Zhicheng Li
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