Things to check at work:
- Is the rubocop.yml actually in the installed gem? It may be, that it hasn't been included in the install version.
- Is there a
~/.rubocop.ymlwith the same content? - Is Rubocop up-to-date?
~/.rubocop.yml:
| diff --git a/tests/ui/auxiliary/macro_rules.rs b/tests/ui/auxiliary/macro_rules.rs | |
| index 486e419b..2d8d571d 100644 | |
| --- a/tests/ui/auxiliary/macro_rules.rs | |
| +++ b/tests/ui/auxiliary/macro_rules.rs | |
| @@ -7,3 +7,9 @@ macro_rules! foofoo { | |
| loop {} | |
| }; | |
| } | |
| + | |
| +macro_rules! must_use_unit { |
| FROM i386/buildpack-deps:stretch | |
| # The rustup installation code is taken from https://github.com/rust-lang-nursery/docker-rust/blob/master/1.30.0/stretch/Dockerfile | |
| ENV RUSTUP_HOME=/usr/local/rustup \ | |
| CARGO_HOME=/usr/local/cargo \ | |
| PATH=/usr/local/cargo/bin:$PATH \ | |
| RUST_VERSION=1.30.0 | |
| RUN set -eux; \ |
| #!/usr/bin/ruby | |
| bucket_name = 's3_bucket_name' | |
| region = 's3_region' | |
| images_dir = "#{Dir.home}/Pictures/screenshots/*" | |
| newest_file = Dir.glob(images_dir).max_by { |f| File.mtime(f) } | |
| filename = File.basename(newest_file) | |
| cmd = "aws s3 cp #{newest_file} s3://#{bucket_name}/#{filename} --region #{region} --acl public-read" |
forked from https://gist.github.com/chetan/1827484 which is from early 2012 and contains outdated information.
Templates to remind you of the options and formatting for the different types of objects you might want to document using YARD.
| # Run with `ruby association_testcase.rb` | |
| begin | |
| require "bundler/inline" | |
| rescue LoadError => e | |
| $stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler" | |
| raise e | |
| end | |
| gemfile(true) do | |
| source "https://rubygems.org" |
So for some reason, attach_file is not setting the content_type when uploading .ics files.
| text_styles = %w(code del em ins sub sup strong) | |
| text_styles.each do |m| | |
| para = app.app.para(app.app.send(m, m, stroke: '#ccc')) | |
| expect(para.text).to eq(m) | |
| end |
| #!/bin/bash | |
| # Author: Philipp Hansch | |
| # | |
| # This script assumes Linux Mint 15 Xfce as a base distribution | |
| # Make sure you have access to this script when you setup your system | |
| # Use at your own risk. | |
| aptget='sudo apt-get' | |
| gh_user='phansch' |
| function shorten-path([string] $path) { | |
| $loc = $path.Replace($HOME, '~') | |
| # remove prefix for UNC paths | |
| $loc = $loc -replace '^[^:]+::', '' | |
| # make path shorter like tabs in Vim, | |
| # handle paths starting with \\ and . correctly | |
| return ($loc -replace '\\(\.?)([^\\])[^\\]*(?=\\)','\$1$2') | |
| } | |
| function prompt { |