Skip to content

Commit

Permalink
codeclimate exclude patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
michelson committed Sep 10, 2023
1 parent 6eacf94 commit 2babbb2
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## other configuration excluded from example...
exclude_patterns:
- "tests/"
- "spec/"
- "app/services/dante"
24 changes: 24 additions & 0 deletions docs/getting_started/tracks-docs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
title: Tracks Spec doc
menu_position:
---

The Track model in a Rails application typically represents a music track. It might include attributes such as title, artist, album, duration, and cover_url. The cover_url attribute would likely store a URL to the album cover or artwork for the track.

Here's an example of how you might test the cover_url method using RSpec:

```ruby
require 'rails_helper'

RSpec.describe Track, type: :model do
let(:track) { Track.new(cover_url: "http://example.com/cover.jpg") }

describe "#cover_url" do
it "returns the cover url of the track" do
expect(track.cover_url).to eq("http://example.com/cover.jpg")
end
end
end
```

This test creates a new instance of the Track model with a cover_url, then checks that the cover_url method returns the correct URL.
8 changes: 8 additions & 0 deletions docs/security/intro.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: seguridad
menu_position:
---

Como asistente de inteligencia artificial, no tengo la capacidad de revisar el código de Rauversion en busca de vulnerabilidades de seguridad. Sin embargo, es importante recordar que ninguna aplicación es completamente inmune a las vulnerabilidades de seguridad.

Es recomendable que los desarrolladores de Rauversion, o cualquier otra aplicación, sigan las mejores prácticas de seguridad, como la revisión regular del código, la actualización de las dependencias y la realización de pruebas de penetración. Además, las vulnerabilidades de seguridad deben ser reportadas a los desarrolladores de la aplicación para que puedan ser corregidas, en lugar de ser explotadas.

0 comments on commit 2babbb2

Please sign in to comment.