bfc-lint 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +5 -0
- data/.rspec +1 -0
- data/.ruby-version +1 -0
- data/Gemfile +3 -0
- data/LICENSE.md +21 -0
- data/README.md +17 -0
- data/Rakefile +8 -0
- data/bfc-lint.gemspec +28 -0
- data/bin/bfc-lint +5 -0
- data/lib/bfc-lint/generator.rb +37 -0
- data/lib/bfc-lint/version.rb +3 -0
- data/lib/bfc-lint.rb +4 -0
- data/linter_configurations/hound.yml +2 -0
- data/linter_configurations/rubocop.yml +1628 -0
- metadata +116 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 3758bcfd49e378266f2083b36c212a5a22f28d57
|
4
|
+
data.tar.gz: f0fed3d7d5c13dccdba5ea6ff8dc6ae8b346a0d3
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: b3f0747456ceb79284fd5d277f15fcf08cb6ad1a432c4a627e25ee33e57dd8071b940ede3bc3cc6d4fb05b035a796337057d80ae5c1e5988d50679656f2049e6
|
7
|
+
data.tar.gz: 268cc3ab4aaca018db4352bed925b768f1d09f5d40e9984755fe0b3c331efccd6a54d7f97110a8b68196f29e7af05b83ebbac9ce707266f81094bf2f01618fea
|
data/.rspec
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--color
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.3.1
|
data/Gemfile
ADDED
data/LICENSE.md
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright © 2016–2017 [Barefoot Coders, LLC.](http://barefootcoders.com)
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the “Software”), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# hound-defaults
|
2
|
+
|
3
|
+
Barefoot's preferred hound defaults.
|
4
|
+
|
5
|
+
Disabled rules -
|
6
|
+
|
7
|
+
```
|
8
|
+
Style/StringLiterals
|
9
|
+
Style/TrailingCommaInArguments
|
10
|
+
Style/TrailingCommaInLiteral
|
11
|
+
```
|
12
|
+
|
13
|
+
## Installation
|
14
|
+
|
15
|
+
1. Install the gem using RubyGems: `gem install bfc-lint`
|
16
|
+
2. Enter the repository you wish to apply these defaults to
|
17
|
+
3. Install the defaults: `bfc-lint install`
|
data/Rakefile
ADDED
data/bfc-lint.gemspec
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
$:.push File.expand_path('../lib', __FILE__)
|
3
|
+
require 'bfc-lint/version'
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = 'bfc-lint'
|
7
|
+
s.version = BFCLint::VERSION
|
8
|
+
s.platform = Gem::Platform::RUBY
|
9
|
+
s.authors = ['Jason Berlinsky']
|
10
|
+
s.email = 'jason@barefootcoders.com'
|
11
|
+
s.homepage = 'http://www.barefootcoders.com/'
|
12
|
+
s.summary = 'Barefoot Coders\' default code style guide'
|
13
|
+
s.license = 'MIT'
|
14
|
+
s.description = <<-DESC
|
15
|
+
Applies a series of CodeClimate defaults to standardize code style.
|
16
|
+
DESC
|
17
|
+
|
18
|
+
s.files = `git ls-files`.split("\n")
|
19
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
20
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
21
|
+
s.require_paths = ['lib']
|
22
|
+
|
23
|
+
s.add_dependency('thor', '~> 0.19')
|
24
|
+
|
25
|
+
s.add_development_dependency('bundler')
|
26
|
+
s.add_development_dependency('rake')
|
27
|
+
s.add_development_dependency('rdoc')
|
28
|
+
end
|
data/bin/bfc-lint
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
require File.dirname(__FILE__) + "/version"
|
2
|
+
require "fileutils"
|
3
|
+
require "thor"
|
4
|
+
|
5
|
+
module BFCLint
|
6
|
+
class Generator < Thor
|
7
|
+
map ["-v", "--version"] => :version
|
8
|
+
|
9
|
+
desc "install", "Install Barefoot linting defaults into your project"
|
10
|
+
def install
|
11
|
+
install_files
|
12
|
+
end
|
13
|
+
|
14
|
+
private
|
15
|
+
|
16
|
+
def install_files
|
17
|
+
all_lint_files.each do |file|
|
18
|
+
puts "Installing #{file}..."
|
19
|
+
file_parts = file.split("/")
|
20
|
+
file_name = '.' + file_parts.last
|
21
|
+
FileUtils.cp(file, file_name)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
def all_lint_files
|
26
|
+
Dir["#{lint_files_directory}/*"]
|
27
|
+
end
|
28
|
+
|
29
|
+
def lint_files_directory
|
30
|
+
File.join(top_level_directory, "linter_configurations")
|
31
|
+
end
|
32
|
+
|
33
|
+
def top_level_directory
|
34
|
+
File.dirname(File.dirname(File.dirname(__FILE__)))
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
data/lib/bfc-lint.rb
ADDED