Skip to content

different-Breed/FISK-DIMENSION-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

  • 👋 Hi, I’m @OTC15203
  • 👀 I’m interested in ...
  • 🌱 I’m currently learning ...
  • 💞️ I’m looking to collaborate on ...
  • 📫 How to reach me ...

// Fisk Dimension: Ignored File Patterns (C++ Context) // This C++ code simulates pattern recognition for ignored files in a multi-stack project. // Note: For actual ignore behavior, use a .gitignore file with Git.

#include #include #include #include

bool isIgnored(const std::string& filename) { std::vectorstd::regex ignorePatterns = { // OS & Environment Specific std::regex(".*\.DS_Store"), std::regex(".Thumbs\.db"), std::regex(".desktop\.ini"), std::regex(".\.env."),

    // Python
    std::regex("__pycache__/.*"), std::regex(".*\\.py[cod]"), std::regex(".*\\.pyo"),
    std::regex(".*\\.pyd"), std::regex(".*\\.egg(-info)?/.*"), std::regex(".*\\.manifest"), std::regex(".*\\.spec"),

    // Node.js
    std::regex("node_modules/.*"), std::regex(".*(npm|yarn|pnpm)-debug\\.log.*"),

    // IDEs
    std::regex("\.vscode/.*"), std::regex("\.idea/.*"), std::regex(".*\\.sublime.*"), std::regex(".*\\.code-workspace"),

    // Build
    std::regex("dist/.*"), std::regex("build/.*"), std::regex("coverage/.*"),
    std::regex(".*\\.(class|o|so|exe|dll|out|a|bin|apk|zip|tar\\.gz)"),

    // Logs & Debug
    std::regex("log[s]?/.*"), std::regex(".*\\.pid"), std::regex(".*\\.seed"),

    // Virtual Envs
    std::regex("(venv|ENV|env\\.bak|venv\\.bak|\\.env)/.*"),

    // Static & Cache
    std::regex("\\.cache/.*"), std::regex("__snapshots__/.*"), std::regex(".*\\.(bak|tmp|swp|swo|db)"),

    // Test Coverage
    std::regex("\\.coverage"), std::regex("\\.tox/.*"), std::regex("\\.nox/.*"), std::regex("\\.pytest_cache/.*"), std::regex("\\.jest/.*"),

    // Fisk Dimension Custom
    std::regex("fisk_wallet/.*"), std::regex("infoanalyst_temp/.*"), std::regex("innerconscience_saga/drafts/.*"),
    std::regex("collab_hub/temp_sessions/.*"),

    // Deployment & Secrets
    std::regex("Dockerfile"), std::regex("\\.dockerignore"), std::regex(".*\\.tfstate.*"), std::regex("\\.terraform/.*"),
    std::regex(".*\\.(pem|key|crt|csr)"), std::regex("secrets\\.json"),

    // System & Metadata
    std::regex(".*\\.(iml|orig|rej)"),

    // Misc
    std::regex(".*\\.(log.*|lock|sqlite3|pkl|gz|tar)"), std::regex("\\.ipynb_checkpoints/.*")
};

for (const auto& pattern : ignorePatterns) {
    if (std::regex_match(filename, pattern)) {
        return true;
    }
}
return false;

}

int main() { std::vectorstd::string testFiles = { ".DS_Store", "main.pyc", "build/app.exe", "node_modules/lodash.js", "fisk_wallet/data.json", "venv/bin/activate", "README.md" };

for (const auto& file : testFiles) {
    std::cout << file << (isIgnored(file) ? " is ignored." : " is tracked.") << std::endl;
}
return 0;

}

// Consolidated content from duplicate file // Example Usage: // Compile: g++ -std=c++11 -o ignore_patterns ignore_patterns.cpp // Run: ./ignore_patterns

About

Config files for my GitHub profile.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors