Skip to content

Commit f885506

Browse files
committed
init
0 parents  commit f885506

28 files changed

+581
-0
lines changed

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "bundler"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"

.github/workflows/main.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
workflow_dispatch:
9+
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v3
16+
- name: Set up Ruby
17+
uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1
18+
with:
19+
ruby-version: '2.7.0'
20+
- name: Install dependencies
21+
run: bundle install
22+
- name: Run tests
23+
run: bundle exec rake test
24+
- name: Publish code coverage
25+
uses: paambaati/[email protected]
26+
env:
27+
CC_TEST_REPORTER_ID: ${{secrets.CLIMATE_REPORTER_ID}}
28+
with:
29+
coverageLocations: |
30+
/home/runner/work/checkstyle-suppression-generator/checkstyle-suppression-generator/coverage/coverage.json:simplecov
31+
32+
lint:
33+
runs-on: ubuntu-latest
34+
35+
steps:
36+
- uses: actions/checkout@v3
37+
- name: Set up Ruby
38+
uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1
39+
with:
40+
ruby-version: '2.7.0'
41+
- name: Install dependencies
42+
run: bundle install
43+
- name: Rubocop
44+
run: rubocop

.gitignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/.bundle/
2+
/.yardoc
3+
/_yardoc/
4+
/coverage/
5+
/doc/
6+
/pkg/
7+
/spec/reports/
8+
/tmp/
9+
*.bundle
10+
*.so
11+
*.o
12+
*.a
13+
mkmf.log
14+
Gemfile.lock
15+
.irb_history
16+
errors.txt
17+
suppressions.xml

.irbrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# frozen_string_literal: true
2+
3+
def require_all_files(directory)
4+
Dir["#{directory}/**/*.rb"].sort.each { |file| require file }
5+
end
6+
7+
# Require all files in the project_root directory and its subdirectories
8+
require_all_files(File.expand_path(__dir__))

.rubocop.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
inherit_from: .rubocop_todo.yml

.rubocop_todo.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Configuration parameters: CountComments, CountAsOne.
2+
Metrics/ClassLength:
3+
Exclude:
4+
- 'test/**/*'
5+
# Configuration parameters: AllowedConstants.
6+
Style/Documentation:
7+
Exclude:
8+
- 'spec/**/*'
9+
- 'test/**/*'
10+
Metrics/MethodLength:
11+
Exclude:
12+
- 'test/**/*'
13+
Metrics/AbcSize:
14+
Exclude:
15+
- 'test/**/*'

.ruby-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2.7.0

Gemfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# frozen_string_literal: true
2+
3+
source 'https://rubygems.org'
4+
5+
gemspec

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023 Tyler Matthews
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.

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Checkstyle Suppression Generator
2+

0 commit comments

Comments
 (0)