Skip to content

Commit b86f10e

Browse files
committed
Initial commit
0 parents  commit b86f10e

36 files changed

Lines changed: 1818 additions & 0 deletions

‎.github/FUNDING.yml‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# These are supported funding model platforms
2+
3+
github: [pboling] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4+
patreon: galtzo # Replace with a single Patreon username
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: pboling # Replace with a single Ko-fi username
7+
tidelift: rubygems/rubocop-ruby2_3 # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: pboling # Replace with a single Liberapay username
10+
issuehunt: pboling # Replace with a single IssueHunt username
11+
otechie: # Replace with a single Otechie username
12+
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
13+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

‎.github/dependabot.yml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: bundler
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
time: "04:31"
8+
open-pull-requests-limit: 10
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL"
13+
14+
on:
15+
push:
16+
branches: [ main, "*-stable" ]
17+
pull_request:
18+
# The branches below must be a subset of the branches above
19+
branches: [ main, "*-stable" ]
20+
schedule:
21+
- cron: '35 1 * * 5'
22+
23+
jobs:
24+
analyze:
25+
name: Analyze
26+
runs-on: ubuntu-latest
27+
permissions:
28+
actions: read
29+
contents: read
30+
security-events: write
31+
32+
strategy:
33+
fail-fast: false
34+
matrix:
35+
language: [ 'ruby' ]
36+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
37+
# Learn more about CodeQL language support at https://git.io/codeql-language-support
38+
39+
steps:
40+
- name: Checkout repository
41+
uses: actions/checkout@v3
42+
43+
# Initializes the CodeQL tools for scanning.
44+
- name: Initialize CodeQL
45+
uses: github/codeql-action/init@v1
46+
with:
47+
languages: ${{ matrix.language }}
48+
# If you wish to specify custom queries, you can do so here or in a config file.
49+
# By default, queries listed here will override any specified in a config file.
50+
# Prefix the list here with "+" to use these queries and those in the config file.
51+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
52+
53+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
54+
# If this step fails, then you should remove it and run the build manually (see below)
55+
- name: Autobuild
56+
uses: github/codeql-action/autobuild@v1
57+
58+
# ℹ️ Command-line programs to run using the OS shell.
59+
# 📚 https://git.io/JvXDl
60+
61+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
62+
# and modify them (or add more) to build your code if your project
63+
# uses a compiled language
64+
65+
#- run: |
66+
# make bootstrap
67+
# make release
68+
69+
- name: Perform CodeQL Analysis
70+
uses: github/codeql-action/analyze@v1

‎.github/workflows/style.yml‎

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Code Style Checks
2+
3+
on:
4+
push:
5+
branches:
6+
- 'main'
7+
- '*-maintenance'
8+
- '*-dev'
9+
- '*-stable'
10+
tags:
11+
- '!*' # Do not execute on tags
12+
pull_request:
13+
branches:
14+
- '*'
15+
16+
jobs:
17+
rubocop:
18+
name: Rubocop
19+
if: "!contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]')"
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
experimental: [false]
24+
rubygems:
25+
- latest
26+
bundler:
27+
- latest
28+
ruby:
29+
- "2.3"
30+
runs-on: ubuntu-latest
31+
steps:
32+
- name: Checkout
33+
uses: actions/checkout@v3
34+
- name: Setup Ruby & Bundle
35+
uses: ruby/setup-ruby@v1
36+
with:
37+
ruby-version: ${{ matrix.ruby }}
38+
rubygems: ${{ matrix.rubygems }}
39+
bundler: ${{ matrix.bundler }}
40+
bundler-cache: true
41+
- name: Run Rubocop
42+
run: bundle exec rubocop -DESP

‎.github/workflows/supported.yml‎

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Official Support
2+
3+
on:
4+
push:
5+
branches:
6+
- 'main'
7+
- '*-maintenance'
8+
- '*-dev'
9+
- '*-stable'
10+
tags:
11+
- '!*' # Do not execute on tags
12+
pull_request:
13+
branches:
14+
- '*'
15+
# Allow manually triggering the workflow.
16+
workflow_dispatch:
17+
18+
# Cancels all previous workflow runs for the same branch that have not yet completed.
19+
concurrency:
20+
# The concurrency group contains the workflow name and the branch name.
21+
group: ${{ github.workflow }}-${{ github.ref }}
22+
cancel-in-progress: true
23+
24+
jobs:
25+
test:
26+
name: Specs - Ruby ${{ matrix.ruby }} ${{matrix.gemfile}} ${{ matrix.name_extra || '' }}
27+
env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps
28+
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
29+
if: "!contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]')"
30+
strategy:
31+
fail-fast: false
32+
matrix:
33+
experimental: [false]
34+
gemfile:
35+
- ruby
36+
- rails
37+
rubygems:
38+
- latest
39+
bundler:
40+
- latest
41+
ruby:
42+
- "2.3"
43+
44+
runs-on: ubuntu-latest
45+
continue-on-error: ${{ matrix.experimental || endsWith(matrix.ruby, 'head') }}
46+
steps:
47+
- name: Checkout
48+
uses: actions/checkout@v3
49+
- name: Setup Ruby & Bundle
50+
uses: ruby/setup-ruby@v1
51+
with:
52+
ruby-version: ${{ matrix.ruby }}
53+
rubygems: ${{ matrix.rubygems }}
54+
bundler: ${{ matrix.bundler }}
55+
bundler-cache: true
56+
- name: Run tests
57+
run: bundle exec rake test

‎.gitignore‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/.bundle/
2+
/.yardoc
3+
/_yardoc/
4+
/doc/
5+
/pkg/
6+
/spec/reports/
7+
/tmp/
8+
9+
# rspec failure tracking
10+
.rspec_status
11+
12+
# Gemfile Lock files
13+
Gemfile.lock

‎.rspec‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
--format documentation
2+
--color
3+
--require spec_helper

‎.rubocop.yml‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
inherit_from: .rubocop_todo.yml
2+
3+
AllCops:
4+
TargetRubyVersion: 2.3
5+
6+
Style/StringLiterals:
7+
Enabled: true
8+
EnforcedStyle: double_quotes
9+
10+
Style/StringLiteralsInInterpolation:
11+
Enabled: true
12+
EnforcedStyle: double_quotes
13+
14+
Lint/RaiseException:
15+
Enabled: true
16+
17+
Lint/StructNewOverride:
18+
Enabled: true
19+
20+
Style/HashEachMethods:
21+
Enabled: true
22+
23+
Style/HashTransformKeys:
24+
Enabled: true
25+
26+
Style/HashTransformValues:
27+
Enabled: true
28+
29+
Layout/LineLength:
30+
Max: 120

‎.rubocop_todo.yml‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# This configuration was generated by
2+
# `rubocop --auto-gen-config`
3+
# on 2022-04-30 19:16:14 UTC using RuboCop version 1.28.2.
4+
# The point is for the user to remove these configuration records
5+
# one by one as the offenses are removed from the code base.
6+
# Note that changes in the inspected code, or installation of new
7+
# versions of RuboCop, may require this file to be generated again.
8+
9+
# Offense count: 1
10+
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
11+
# IgnoredMethods: refine
12+
Metrics/BlockLength:
13+
Max: 26

‎CHANGELOG.md‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Changelog
2+
All notable changes to this project will be documented in this file.
3+
4+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6+
7+
## [Unreleased]
8+
### Added
9+
10+
### Changed
11+
12+
### Fixed
13+
14+
### Removed
15+
16+
## [1.0.0] 2022-04-30
17+
### Added
18+
* Initial release
19+
20+
### Changed
21+
22+
### Fixed
23+
24+
### Removed
25+
26+
[Unreleased]: https://github.com/rubocop-semver/rubocop-ruby2_3/compare/.v1.0.0...HEAD
27+
[1.0.0]: https://github.com/rubocop-semver/rubocop-ruby2_3/compare/496ae0431f229da4ce2ca472954773af32f27078...v1.0.0

0 commit comments

Comments
 (0)