Code Monkey home page Code Monkey logo

kevinbacon-ci-config's Introduction

kevinbacon-ci-config

Global Linter Config's for KevinBacon-CI.

If you wish to modify one of the configs below is a list of where all of the docs are for each of the linters

Current Linters

Editor Configurations

Sublime

Follow the steps below to config Sublime text with all of the KevinBacon support linters and configs.

  1. Clone this repo with git clone https://github.com/gateway-church/kevinbacon-ci-config.git
  2. Install SublimeLint Package CMD + SHIFT + P - SublimeLint
  3. Install the following SublimeLint packages using the package manager like above
  • SublimeLinter-haml-lint
  • SublimeLinter-contrib-scss-lint
  • SublimeLinter-jshint
  • SublimeLinter-coffeelint
  • SublimeLinter-rubocop
  1. Once those are installed navigate to Sublime Text -> Preferences -> Package Settings -> SublimeLinter -> Settings
  2. Replace the config with the one below Note: Be sure to swap out the {path-to-repo} with the place you cloned the repo to

Config

// SublimeLinter Settings - User
{
  "debug": false,
  "delay": 0,
  "gutter_theme": "",
  "lint_mode": "background",
  "linters": {
    "coffeelint": {
      "disable": false,
      "args": [
        "--config",
        "{path-to-repo}/kevinbacon-ci-config/coffeescript/.coffee-lint.json"
      ]
    },
    "haml": {
      "disable": false,
      "args": [
        "--config",
        "{path-to-repo}/kevinbacon-ci-config/haml/.haml-lint.yml"
      ]
    },
    "hamllint": {
      "disable": false,
      "args": [
        "--config",
        "{path-to-repo}/kevinbacon-ci-config/haml/.haml-lint.yml"
      ]
    },
    "jshint": {
      "disable": false,
      "args": [
        "--config",
        "{path-to-repo}/kevinbacon-ci-config/javascript/.jshintrc"
      ]
    },
    "rubocop": {
      "disable": false,
      "args": [
        "--config",
        "{path-to-repo}/kevinbacon-ci-config/ruby/.rubocop.yml"
      ]
    },
    "scsslint": {
      "disable": false,
      "args": [
        "--config",
        "{path-to-repo}/kevinbacon-ci-config/scss/.scss-lint.yml"
      ]
    }
  },
  "paths": {
    "linux": [],
    "osx": [
      "~/.rbenv/shims"
    ],
    "windows": []
  }
}

Visual Studio Code

Follow the steps below to config KevinBacon Linters in Visual Studio Code

  1. Clone this repo with git clone https://github.com/gateway-church/kevinbacon-ci-config.git
  2. Install the extensions below

Note: Haml Lint isn't support by Visual Studio Code quite yet

  1. Navigate to your user settings Code -> Preferences -> Settings or CMD + ,
  2. Add the settings below to your user config Note: Be sure to swap out the paths with the place you cloned the repo to

Config

"jshint.config": "/path/to/where/you/cloned/kevinbacon-ci-config/javascript/.jshintrc",
"jshint.excludePath": "/path/to/where/you/cloned/kevinbacon-ci-config/javascript/.jshintignore",
"scssLint.showHighlights": false,
"scssLint.errorBackgroundColor": "rgba(200, 0, 0, .8)",
"scssLint.warningBackgroundColor": "rgba(200, 120, 0, .8)",
"scssLint.languages": [
    "css",
    "scss"
],
"scssLint.statusBarText": "`$(telescope) scss-lint  ${errors.length} $(x)  ${warnings.length} $(alert)`",
"scssLint.configDir": "/path/to/where/you/cloned/kevinbacon-ci-config/scss/.scss-lint.yml",
"ruby.rubocop.configFilePath": "/path/to/where/you/cloned/kevinbacon-ci-config/ruby/.rubocop.yml",
"coffeelinter.defaultRules": "/path/to/where/you/cloned/kevinbacon-ci-config/coffeescript/.coffee-lint.json"

Atom

If you have not installed Atom, follow the instructions below for "Installing Atom".

Then go through the instructions below for "Installing and Configuring Atom Linters". Use the instructions for "Installing Atom Plugins", anytime you are asked to install a plugin.

Installing Atom

Download it from, https://atom.io/. For Mac, unzip, and copy app to Applications folder. Double click file to run.

Verify Basic Editor Settings From the menu bar, Click (select) "Atom" -> "Preferences" to open the settings page, and then click on "Editor" located in the left column. Make sure that:

  • The following are checked: "Atomic Soft Tabs", "Auto Indent", "Auto Indent on Paste", "Confirm Checkout HEAD revision".
  • The "Preferred line length" is set to "120".
  • That "Soft tabs" is checked.
  • That "Tab length" is "2". That should be the editor's default value.
  • "Tab type" is set to "Soft"

Other settings you may want enabled: "Show Cursor on Selection", "Show Indent Guide", "Show Invisibles", "Show Line Numbers".

Then click on the Packages tab, and search for "Whitespace". Click "Settings" under the "Whitespace" plugin, and make sure the following are checked: "Ensure Single Trailing New Line", "Keep Markdown Line Break Whitespace", and "Removing Trailing Whitespace". Make sure the following are not checked: "Ignore Whitespace on Current Line", and "Ignore Whitespace Only Lines".

Installing Atom plugins

As you go through the "Installing and Configuring linters" section, you will need to reference these instructions.

  1. In the menu click (select) "Atom" -> "Preferences". This should open the setting page.

  2. On the settings page, click (select) "Install" from the left column.

  3. Search for the plugin to install, and click the install button for that plugin.

  4. Click on Settings to modify settings.

    In the instructions below you will be asked to install and configure plugins. When a plugin configuration has {path-to-repo} you will need to replace that with the path to kevinbacon-ci-config. For Mac an easy way to find this is to open finder and locate the folder, right click, then click "get info". Then copy the path from the "Where" field, and add '/kevinbacon-ci-config'.

Installing and Configuring Atom Linters.

  1. Clone this repo with git clone https://github.com/gateway-church/kevinbacon-ci-config.git.

  2. Make sure you have installed the following ruby gems. If not install them.

    • rubocop ( Is it installed: gem list rubocop. To install: gem install rubocop )
    • scss_lint ( Is it installed: gem list scss_lint. To install: gem install scss_lint )
  3. Install the following Atom plugins (see Installing Atom Plugins)

    • linter-ui-default

    • linter Settings: verify the following are enabled: "lint preview tabs", "lint on open", "lint on change".

    • linter-haml Settings: set "the coffeelint.json path" to "{path-to-repo}/coffeescript/.coffee-lint.json"

    • linter-jshint Settings: set "Global Haml lint yml file" to {path-to-repo}/haml/.haml-lint.yml.

    • linter-rubocop Settings: set "Command" to "{path-to-rubocop-gem} --config path-to-repo}/ruby/.rubocop.yml"

      "{path-to-rubocop-gem}" should be replaced with the actual path to the gem file. To get that go to a command prompt and run which rubocop

    • linter-scss-lint Settings: set "Config Name" to "{path-to-repo}/scss/.scss-lint.yml", and "Executable Path" to the path to the lint-scss ruby gem.

      To get the path to your lint-scss gem, go to a command prompt and run which scss-lint.

    • linter-coffeelint Settings: set "coffeelint.json Path" to "{path-to-repo}/coffeescript/.coffee-lint.json"

kevinbacon-ci-config's People

Contributors

streamrunner avatar

Watchers

Tad Preston avatar James Cloos avatar Jonathan Simmons avatar Evan Agee avatar Absolom avatar  avatar  avatar Chris Hickingbottom avatar Lindsay Hannon avatar Marquis Nobles avatar Blake Prudhomme avatar Marc  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.